Changing FAQS Changing FAQS
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Changing FAQS

Started by Colliope, February 10, 2006, 02:10:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Colliope

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



Joachim Müller

Quoteallow_user_registration, 1
readsif ($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.