Jump to content
TNG Community

How to add FAQ to the Info drop down


RPennington

Recommended Posts

I tried to add the FAQ.php to the Info drop down menu on my site in the genlib but that didn't work. Im not good with coding so I'm not sure how to add a page to the drop down menus of my site.

http://www.jensen-phelps.org

Can anyone help please.

You can copy one of the Info pull down menu entries for example,

$menu .= "<li><a href=\"$whatsnew_url\"><img src=\"$cms[tngpath]tng_new.gif\" width=\"20\" height=\"20\" border=\"0\" hspace=\"4\" style=\"vertical-align:middle\" align=\"left\" alt=\"\" />$text[whatsnew]</a></li>\n";

and then modify it for your FAQ.php, for example

            $menu .= "<li><a href=\"FAQ.php\"><img src=\"$cms[tngpath]tng_new.gif\" width=\"20\" height=\"20\" border=\"0\" hspace=\"4\" style=\"vertical-align:middle\" align=\"left\" alt=\"\" />$text[faq]</a></li>\n";

Make sure you change the href= to point to where you saved your FAQ.php file. For example, if you saved FAQ.php in a user subdirectory, then it would be <a href=\"user/FAQ.php\"> You also need to create a $text[faq] in your cust_text.php in each language folder.

Link to comment
Share on other sites

You can copy one of the Info pull down menu entries for example, and then modify it for your FAQ.php, for example

            $menu .= "<li><a href=\"FAQ.php\"><img src=\"$cms[tngpath]tng_new.gif\" width=\"20\" height=\"20\" border=\"0\" hspace=\"4\" style=\"vertical-align:middle\" align=\"left\" alt=\"\" />$text[faq]</a></li>\n";

Make sure you change the href= to point to where you saved your FAQ.php file. For example, if you saved FAQ.php in a user subdirectory, then it would be <a href=\"user/FAQ.php\"> You also need to create a $text[faq] in your cust_text.php in each language folder.

Ok got that. Next question (sry for sounding like a dummy) but what is the code that goes in the $text[faq] for the custom_text.php? or what if its just a FAQ.php page and I just want to link it from te Info dropdown. Do I still have to add each to cust_text.php in each language folder.

Link to comment
Share on other sites

Ok got that. Next question (sry for sounding like a dummy) but what is the code that goes in the $text[faq] for the custom_text.php? or what if its just a FAQ.php page and I just want to link it from te Info dropdown. Do I still have to add each to cust_text.php in each language folder.

I would think that in your cust_text.php you would put something like

$text[faq] = "FAQ";

or you could hard-code the text you want to display in the genlib.php change, but then it would be the same for all languages used.

Link to comment
Share on other sites

One more question is how do I get the page to match my web site pages?

here it is without the matching website.

http://www.jensen-phelps.org/Faq.php

Wouldn't you just take the index page for example - re-save as FAQ.php - delete all the inner CONTENT - and just copy/paste your FAQ stuff in as the new content. Then all the normal header footer stuff will show as normal - it's just the NEW content will show on the newly named page.

Link to comment
Share on other sites

  • 2 weeks later...

What are you using for the FAQ.

You are running the same template as I, If you are running the original TNGFAQ originally written by shannon carpenter, I can help. I have been modifying the files for each new release, and have it installed on my website.

You can see an example at http://www.robertsfamilytree.org/genealogy

click on info and you will see faq

If you need help either PM me, or send me an email.

Harold

Link to comment
Share on other sites

RPennington

What are you using for the FAQ.

You are running the same template as I, If you are running the original TNGFAQ originally written by shannon carpenter, I can help. I have been modifying the files for each new release, and have it installed on my website.

You can see an example at http://www.robertsfamilytree.org/genealogy

click on info and you will see faq

If you need help either PM me, or send me an email.

Harold

I just created one. I would like some help on the one you have. I like that one also and can maybe incorporate the 2.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...