Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Changing FAQS  (Read 2268 times)

0 Members and 1 Guest are viewing this topic.

Colliope

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 126
Changing FAQS
« on: February 10, 2006, 02:10:05 am »

I searched on this and while I did find a few posts with similiar questions, they were unanswered.

I know where to change the FAQ text and I know about using the special symbols to display apostrophe's & quotes.
What I'm not sure on are the extra bits in the arrays and how they work?

offline
allow_user_registration
allow_private_albums

followed by either a 1 or a 0.

I have a hazy understanding that these options are related to the choices made in Config settings, and that the particular Q/A will either display or not display depending on that setting and whether it is marked in the file as a 1 or a 0?

For the questions/answers where I just want to re-write the text, I wouln't worry about these additional strings, I'd just leave them as is. But, for new questions/answers I want to add, I don't know what I need to write for the additional string, if anything. (I am allowing user registrations, I am not allowing private albums.)

I customized the FAQS on my forum and that was a piece o' cake; getting it done on my Gallery is the last big thing I need to do, so, as always, help appreciated and thankyou,

C


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Changing FAQS
« Reply #1 on: February 10, 2006, 09:20:28 am »

Quote
allow_user_registration, 1
reads
Code: [Select]
if ($CONFIG['allow_user_registration'] == '1') {
    // display the FAQ entry
}
In other words: the first parameter determines what config pattern will be checked, the second parameter determines what value it should be set to to match.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.