kazooter Posted May 22, 2011 Author Report Share Posted May 22, 2011 Hi kazooter,I have redone my folios section using your very latest files and all ok while there, but when clicking on a link in the left hand menu, I get a 404 Not Found error message. Here's an example , if I click on 'What's New' I getThis happens with the other links too but of course the php file that is not found is different. The system seems to expect the various files to be in the corresponding individual folio folder.When in a folio section I have drop-down menus showing and the links in them work as expected.Any ideas please?ThanksHi, LoK.One of the most frequent problems I have doing anything that does not take place in the TNG root directory is getting all the links correctly defined. I'm not a registered user of your websites, so I can't see exactly what you are talking about, but I can see your nav links in the left panel are relative to the TNG root, which means they will not work outside the root. One way to fix this is to edit the include file containing these links and place a forward slash at the beginning of the link path right after href=" like so:<a class="vnav" href="/dolphin.php" title="The Dolphin Public House, Queen Street">The Dolphin PH</a>This tells the server to look for dolphin.php in the TNG root, not in your folio directory where it is looking for it now.By the way, I'm about ready to release a new version (3.0) of folios which no longer requires you to deal with, or even know about mediaID numbers. It has a redesigned header and allows you to customize your tool tips and magnifier. It includes an initialization (.ini) file where you can setup your global preferences, so when you upgrade Folios, you will not have to redefine them. Global preferences can be overridden in any of the index files just to apply to one particular folio. And everything should be backward compatible with the index.php files you already have. Stay tuned. Quote Link to comment Share on other sites More sharing options...
LordOfKent Posted May 22, 2011 Report Share Posted May 22, 2011 Hi KazooterThe line in the my version of topmenu.php reads echo "<li><a href=\"whatsnew.php\" class=\"lightlink\">$text[mnuwhatsnew]</a></li><br />\n"; if I add a forward slash it looks like echo "<li><a href=\"/whatsnew.php\" class=\"lightlink\">$text[mnuwhatsnew]</a></li><br />\n";This does not work either giving the following error message,The requested URL /myfamilygenes/folios/turner/cwhturner/whatsnew.php was not found on this server.Added 24 May 2011Sorry, I forgot some other info.The folio.php is in the root of my tng install, the full paths for my individual folders for each case is \myfamilygenes\folios\turner\cwhturner and \myfamilygenes\folios\longhurst\lclonghurst.When do you think you will release the v3 of Folios? sound good. Quote Link to comment Share on other sites More sharing options...
kazooter Posted May 25, 2011 Author Report Share Posted May 25, 2011 Hi KazooterThe line in the my version of topmenu.php reads echo "<li><a href=\"whatsnew.php\" class=\"lightlink\">$text[mnuwhatsnew]</a></li><br />\n"; if I add a forward slash it looks like echo "<li><a href=\"/whatsnew.php\" class=\"lightlink\">$text[mnuwhatsnew]</a></li><br />\n";This does not work either giving the following error message,Added 24 May 2011Sorry, I forgot some other info.The folio.php is in the root of my tng install, the full paths for my individual folders for each case is \myfamilygenes\folios\turner\cwhturner and \myfamilygenes\folios\longhurst\lclonghurst.When do you think you will release the v3 of Folios? sound good.Okay. It seems your TNG root (myfamilygenes) is one level below the server's document root. Try the following to see if it works everywhere. Instead of adding just the forward slash to the links, add '/myfamilygenes/' to the beginning of the links, giving you '/myfamilygenes/whatsnew.php' for example. That should take you to the document root and bring you back down into the TNG root directory. You might have to do something similar with links to your css files: '/myfamilygenes/css/mytngstyle.css.' I will get the new version 3.0 of Folios posted in the next couple of days as soon as I finish another project. ;) Quote Link to comment Share on other sites More sharing options...
LordOfKent Posted May 26, 2011 Report Share Posted May 26, 2011 Okay. It seems your TNG root (myfamilygenes) is one level below the server's document root. Try the following to see if it works everywhere. Instead of adding just the forward slash to the links, add '/myfamilygenes/' to the beginning of the links, giving you '/myfamilygenes/whatsnew.php' for example. That should take you to the document root and bring you back down into the TNG root directory. You might have to do something similar with links to your css files: '/myfamilygenes/css/mytngstyle.css.' I will get the new version 3.0 of Folios posted in the next couple of days as soon as I finish another project. Hi againI tried adding '/myfamilygenes/' to the links in question and that fixed the path problem. Another way of doing it is to add '$cms[tngpath]' in the same place, I think that is the preferred way because it would not need to be changed if the TNG folder 'myfamilygenes' was renamed, whereas all instances of '/myfamilygenes/' would.Thanks again for your 'folios' project it is very helpfull, and I've already had a quick look at 'Easy Accordian' nice. Quote Link to comment Share on other sites More sharing options...
Larry Harrell Posted June 8, 2011 Report Share Posted June 8, 2011 Thanks for the encouragement. I've been working with Ken Roy and think we have already improved the script and its implementation. Stay tuned. Does the " Magnifier" come with folios MOD or where can I get that ?Larry Quote Link to comment Share on other sites More sharing options...
kazooter Posted June 8, 2011 Author Report Share Posted June 8, 2011 Does the " Magnifier" come with folios MOD or where can I get that ?LarryHi, Larry. I think I learned my lesson here. Since the only thing that changed from v3.00 was the one file, folio.php, I did not include the other files in V.301. Please go back and download the package again and it will contain all the necessary files including the magnifier. Sorry for the confusion. Quote Link to comment Share on other sites More sharing options...
msohlberg Posted June 15, 2011 Report Share Posted June 15, 2011 I have just installed Folio 3 to TNG version 8 but I am having a problem with my template appearing correctly. The Folio appears and seems to work correctly, but the page is missing the header image and the usual tabs that appear for document pages. Any Ideas?Martin Quote Link to comment Share on other sites More sharing options...
kazooter Posted June 15, 2011 Author Report Share Posted June 15, 2011 I have just installed Folio 3 to TNG version 8 but I am having a problem with my template appearing correctly. The Folio appears and seems to work correctly, but the page is missing the header image and the usual tabs that appear for document pages. Any Ideas?MartinMartin, could you give me an URL to one of your folio pages so I can see what is happening? Usually when this happens it is because the path to the header photo/image is incorrect. You can see it if you look in your browser at the folio 'Page source'. This path is set in your topmenu.php file and it should begin something like <a href="<?php echo $cms['tngpath']; ?>index.php"><img src="<?php echo $cms['tngpath'] . $templatepath; ?>Sometimes folks change the images and neglect to include the path which is found in the $cms['tngpath'] variable. Quote Link to comment Share on other sites More sharing options...
Roger Posted August 5, 2011 Report Share Posted August 5, 2011 I think you are on to a winner with this idea. It's brilliant and not difficult to install or use.I am having a problem though. I have set up a test folio to check out how everything works (so ignore the content completely, its not formatted or anything at the moment). If you go to my site, you will see straight away what is happening; it's screwing up the t8 template somehow, but only on the folio pages. Try the one and only folio on this page: FoliosIm not so sure that this is your problem, more likely mine, but I'd be grateful if you would take a look for me.Many thanksRoger Quote Link to comment Share on other sites More sharing options...
bsl20b50 Posted August 5, 2011 Report Share Posted August 5, 2011 I think you are on to a winner with this idea. It's brilliant and not difficult to install or use.I am having a problem though. I have set up a test folio to check out how everything works (so ignore the content completely, its not formatted or anything at the moment). If you go to my site, you will see straight away what is happening; it's screwing up the t8 template somehow, but only on the folio pages. Try the one and only folio on this page: FoliosIm not so sure that this is your problem, more likely mine, but I'd be grateful if you would take a look for me.Many thanksRoger Roger,I noticed that problem too. I'm not sure of the cause, but I solved it by changing the name of the folio php pages from 'index.php' to 'init.php'.Bryan Quote Link to comment Share on other sites More sharing options...
Roger Posted August 5, 2011 Report Share Posted August 5, 2011 Roger,I noticed that problem too. I'm not sure of the cause, but I solved it by changing the name of the folio php pages from 'index.php' to 'init.php'.BryanThat's weird! I just changed the filename to init.php too and your are spot-on. It has corrected the problem. Thank your very much for your suggestion Bryan. But why....?RegardsRoger Quote Link to comment Share on other sites More sharing options...
Roger Posted August 5, 2011 Report Share Posted August 5, 2011 That's weird! I just changed the filename to init.php too and your are spot-on. It has corrected the problem. Thank your very much for your suggestion Bryan. But why....?RegardsRoger Uuum, not quite (spoke too soon!) I'm now noticing that there is one more page than the actual document contains. I think it is seeing init.php as another page to add to the folio.RegardsRoger :sad: Quote Link to comment Share on other sites More sharing options...
Roger Posted August 5, 2011 Report Share Posted August 5, 2011 Uuum, not quite (spoke too soon!) I'm now noticing that there is one more page than the actual document contains. I think it is seeing init.php as another page to add to the folio.RegardsRoger Ive now changed the filename back to index.php as per kazooters request. The problem is now back. The extra page was a bit of a red herring. I had left a copy of index.php in the same folder.RegardsRoger Quote Link to comment Share on other sites More sharing options...
kazooter Posted August 5, 2011 Author Report Share Posted August 5, 2011 Ive now changed the filename back to index.php as per kazooters request. The problem is now back. The extra page was a bit of a red herring. I had left a copy of index.php in the same folder.RegardsRogerOkay, I've found the problem. In TNG template 8, the topmenu.php file treats any file named index.php, no matter where it is located, as if it were the home page and styles it differently from all the other pages, and the styling does not work with folios. When you rename the folios init file to init.php, or any other name, template 8 treats it as a normal TNG page and it works fine. The simplest solution is to do what you've already discovered -- name the folios init files init.php. You are still vulnerable to directory browsing, but you can place an index.htm file in your folio directory to redirect a browser, perhaps to your init.php file, then exclude .htm file types in init.php. Any .html file types would still be accepted by folios if you need to use them. I will put a caveat in the TNGWiki about template 8. Thanks for alerting me to the problem. Quote Link to comment Share on other sites More sharing options...
genhcn Posted March 22, 2012 Report Share Posted March 22, 2012 Error in localhost for the folio Yet I followed the instructions ....An idea?The test is currently offline, I can show the errorWarning: Invalid argument supplied for foreach() in G:\xampp\htdocs\folio.php on line 36Warning: Cannot modify header information - headers already sent by (output started at G:\xampp\htdocs\folio.php:36) in G:\xampp\htdocs\genlib.php on line 57Thank you for helpNat Quote Link to comment Share on other sites More sharing options...
genhcn Posted March 22, 2012 Report Share Posted March 22, 2012 strange, the test online http://genhcn.net/villages/1977/07-Tadoussac/index.phpNo errors.....Why? on localhost the errors is Quote Link to comment Share on other sites More sharing options...
reverendspam Posted March 25, 2012 Report Share Posted March 25, 2012 In folio.php file change line 22from: include($cms['tngpath'] ."genlib.php");to:include_once($cms['tngpath'] ."genlib.php");See if that helps.-joe Quote Link to comment Share on other sites More sharing options...
genhcn Posted March 28, 2012 Report Share Posted March 28, 2012 In folio.php file change line 22from: include($cms['tngpath'] ."genlib.php");to:include_once($cms['tngpath'] ."genlib.php");See if that helps.-joeNe donne aucun changementno change thank you anyway Quote Link to comment Share on other sites More sharing options...
HeatherFeuer Posted October 3, 2013 Report Share Posted October 3, 2013 Hi! I love the idea of using folios. I've just updated TNG to 9.2.2 and I am trying to install Folio v. 9.0.0.9. I have the folio folder installed at the root level and folio.php in the extensions folder. When I browse to the file and try to run it, I get the following error: 96: unable to locate mediakey in /tng/extensions/folio.php!I have a WordPress-TNG integrated site using my own customized theme and the template files from Template 9. The site is http://www.larleegenealogy.org. What am I doing wrong? Thanks! Quote Link to comment Share on other sites More sharing options...
Hiraeth Posted October 4, 2013 Report Share Posted October 4, 2013 Hi! I love the idea of using folios. I've just updated TNG to 9.2.2 and I am trying to install Folio v. 9.0.0.9. I have the folio folder installed at the root level and folio.php in the extensions folder. When I browse to the file and try to run it, I get the following error: 96: unable to locate mediakey in /tng/extensions/folio.php!I have a WordPress-TNG integrated site using my own customized theme and the template files from Template 9. The site is http://www.larleegenealogy.org. What am I doing wrong? Thanks!Folios functionality is not accessed directly through folio.php. You need to read the Installation instructions carefully on the Folios wiki page. If still in doubt use the 'Support for Folios v9' link in the summary section of the wiki page. 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.