RPennington Posted February 25, 2009 Report Share Posted February 25, 2009 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.orgCan anyone help please. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted February 25, 2009 Report Share Posted February 25, 2009 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.orgCan 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. Quote Link to comment Share on other sites More sharing options...
RPennington Posted February 25, 2009 Author Report Share Posted February 25, 2009 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. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted February 25, 2009 Report Share Posted February 25, 2009 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. Quote Link to comment Share on other sites More sharing options...
RPennington Posted February 25, 2009 Author Report Share Posted February 25, 2009 Ok I got it all to work. Thank you for your help. :) Quote Link to comment Share on other sites More sharing options...
RPennington Posted February 25, 2009 Author Report Share Posted February 25, 2009 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 Quote Link to comment Share on other sites More sharing options...
jimflack Posted February 26, 2009 Report Share Posted February 26, 2009 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.phpWouldn'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. Quote Link to comment Share on other sites More sharing options...
RPennington Posted February 27, 2009 Author Report Share Posted February 27, 2009 That worked thanks. Quote Link to comment Share on other sites More sharing options...
Harold Posted March 9, 2009 Report Share Posted March 9, 2009 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/genealogyclick on info and you will see faqIf you need help either PM me, or send me an email.Harold Quote Link to comment Share on other sites More sharing options...
RPennington Posted March 13, 2009 Author Report Share Posted March 13, 2009 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/genealogyclick on info and you will see faqIf you need help either PM me, or send me an email.HaroldI just created one. I would like some help on the one you have. I like that one also and can maybe incorporate the 2. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.