FAQ section of lang. file - need help fixing it please FAQ section of lang. file - need help fixing it please
 

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

FAQ section of lang. file - need help fixing it please

Started by Colliope, November 10, 2008, 01:32:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Colliope

I was working on modifying the FAQ section of the language file, customizing the answers to be more specific, and deleting some of the FAQ's I didn't think were necessary. Everything was going fine until my last round of changes & reload. Then boom! - clicking on the FAQ link from inside my gallery just took me to a blank white page.

I've gone over and over my FAQs, comparing them to the original FAQS, but I'm not seeing where I went wrong. I have reinstalled the FAQ section from the original lang file so things are working again, but I am hoping someone will be willing to look over my edited version of the FAQS and hopefully spot where I went wrong so that i can put my customized answers back in.

The code box below makes the text a little small to read easily, so here's also a text file of my edited FAQ section if that's easier: http://colliope.com/holdingbin/FAQS.txt

With my gallery, users have to be registered and logged in to be able to do anything other than read the FAQs, but once registered & logged in, they are permitted to create public user galleries (no private ones).  I know that factors in to the 0 or 1 and "offline" parts of each array, so I'm thinking that's likely where the error is, but as I said, I'm not seeing it when comparing to the original FAQs.

Thanks,
C

My customized FAQ section:

// ------------------------------------------------------------------------- //
// File faq.php
// ------------------------------------------------------------------------- //

if (defined('FAQ_PHP')) $lang_faq_php = array(
  'faq' => 'Frequently Asked Questions',
  'toc' => 'Table of contents',
  'question' => 'Question: ',
  'answer' => 'Answer: ',
);

if (defined('FAQ_PHP')) $lang_faq_data = array(
  'Login and Registration Issues',
  array('Why do I need to register?', 'Registration is required by the administrator. It keeps this a secure, private place we can all feel comfortable adding pictures too.', 'allow_user_registration', '1')

  array('How do I register?', 'Go to &quot;Register&quot; and fill out the required fields (and the optional ones if you want to).<br />After submitting your information you will recieve an email message at the address that you provided. The email will contain a link you <b>must</b> click on to activate your account. Your account must be activated in order for you to login. So please take care to enter your email address correctly.', 'allow_user_registration', '1'), //cpg1.4

  array('How Do I login?', 'Go to &quot;Login&quot;, submit your username and password and check &quot;Remember Me&quot; so you will be logged into the site automatcially each time you visit.<br />Note: Cookies must be enabled in your browser and the cookie from this site must not be deleted in order to use &quot;Remember Me&quot;.', 'offline', 0),

  array('Why can I not login?', 'Did you register and click the link that was sent to you via email?. The link will activate your account. For other login problems contact the <a href="mailto:GalleryHelp@keangenes.com">Administrator</a>.', 'offline', 0),

  array('What if I forgot my password?', 'Click the &quot;Forgot Password&quot; link and you will receive a new password via email.', 'offline', 0),

  //array('What if I changed my email address?', 'Just simply login and change your email address through &quot;Profile&quot;', 'offline', 0),

array('What are cookies?', 'Cookies are a plain text piece of data that is sent from a website and is put on to your computer.<br />Cookies used here allow a user to leave and return without having to login again.', 'offline', 0),

'Pictures and Albums',
  array('How do I save a picture to my &quot;My Favorites&quot; section?', 'Click on a picture then click on the &quot;picture info&quot; link (<img src="images/info.gif" width="16" height="16" border="0" alt="Picture Information" />); then scroll down and click &quot;Add to Favorites&quot;.<br />Note: Cookies must be enabled and the cookie from this site must not be deleted for this feature to work.', 'offline', 0),

  array('What about rating photos?', 'The ability to rate photos has been disabled for albums in the Old Family Albums and Community Albums categories. For albums in the Member Galleries section, it is up to the Member to allow ratings or not. If they chose to enable ratings, you can give their photos one to five gold stars.', 'offline', 0),

  array('How do I post a comment for a picture?', 'Type your comment in the comment box under the photo and click the OK button to the right to submit the comment. This is the really nifty part of this whole photo-sharing thing, so comment freely.', 'offline', 0),

  array('How do I create an Album?', '<a href="http://keangenes.com/howtos/create_album/index.html"><font color=blue>See Here</font></a>.', 'allow_private_albums', 1), //cpg1.4

array('How do I upload a file to it?', '<a href="http://keangenes.com/howtos/upload_pic/index.html"><font color=blue>See Here</font></a>.', 'allow_private_albums', 1), //cpg1.4

  array('What type and size of a file can I upload?', 'Images must be in .jpg format.  Maximum allowed width is 800 pixels. Maximum allowed height is 800 pixels. Maximum file size is 250KB.', 'offline', 0),

  array('How can I modify my albums?', 'Go to &quot;Modify My Albums&quot;. Under the &quot;Update Album&quot; bar, click the little down-pointing arrow to the right to open up a list of the albums you have created. Select the album you want to modify. Make you changes and click &quot;Update Album&quot;.',
'allow_private_albums', 0),
 
  'Navigating the Site',
  array('What\'s &quot;Album List&quot;?', 'This will show you the entire category you are currently in, with a link to each album. If you are not in a category, it will show you the entire gallery with a link to each category. Thumbnails are links to the category.', 'offline', 0),

  array('What\'s &quot;My Gallery&quot;?', 'This feature lets users create their own galleries and add, delete or modify albums as well as upload to them.', 'allow_private_albums', 1), //cpg1.4

  array('What\'s &quot;Last Uploads&quot;?', 'This feature shows the last uploads to the site.', 'offline', 0),

  array('What\'s &quot;Last Comments&quot;?', 'This feature shows which photos comments were recently made to', 'offline', 0),

  array('What\'s &quot;Most Viewed&quot;?', 'This feature shows the most viewed files by all users.', 'offline', 0),

  array('What\'s &quot;Top Rated&quot;?', 'This feature shows the top rated files rated by the users, showing the average rating (e.g: five users each gave a <img src="images/rating3.gif" width="65" height="14" border="0" alt="" />: the file would have an average rating of <img src="images/rating3.gif" width="65" height="14" border="0" alt="" /> ;Five users rated the file from 1 to 5 (1,2,3,4,5) would result in an average <img src="images/rating3.gif" width="65" height="14" border="0" alt="" /> .)<br />The ratings go from <img src="images/rating5.gif" width="65" height="14" border="0" alt="best" /> (best) to <img src="images/rating0.gif" width="65" height="14" border="0" alt="worst" /> (worst).', 'offline', 0),

  array('What\'s &quot;My Favorites&quot;?', 'This feature will let a user store a favorite file in the cookie that was sent to your computer.', 'offline', 0),
);



Nibbler

Missing comma at the end of this line


  array('Why do I need to register?', 'Registration is required by the administrator. It keeps this a secure, private place we can all feel comfortable adding pictures too.', 'allow_user_registration', '1')

Colliope

Wow! Great eyes, thankyou Nibbler- putting that one common back in fixed it.

Now I have 3 Q&A's that aren't appearing in the FAQS, whether logged in or logged out. Can I continue with that here or would you rather I start a new thread?   

Colliope

Nevermind, I fixed it. The 3 Q&As that weren't showing were all

'allow_private_albums', 0), //cpg1.4


I changed the 0 to 1 and now they show.

Thanks,

C

Colliope

Sorry, I have that wrong above - they were 1 (not showing) and I changed them to 0 (now showing.)

C