Jump to content
TNG Community

Folios - Easy Multipage Documents in TNG


kazooter

Recommended Posts

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 get

This 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?

Thanks

Hi, 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.

Link to comment
Share on other sites

  • Replies 69
  • Created
  • Last Reply

Top Posters In This Topic

  • kazooter

    22

  • LordOfKent

    6

  • Grrr_Not

    6

  • Chuchon

    6

LordOfKent

Hi Kazooter

The 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 2011

Sorry, 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.

Link to comment
Share on other sites

Hi Kazooter

The 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 2011

Sorry, 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.

;)

Link to comment
Share on other sites

LordOfKent

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 again

I 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. 8-)

Link to comment
Share on other sites

  • 2 weeks later...
Larry Harrell

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

Link to comment
Share on other sites

Does the " Magnifier" come with folios MOD or where can I get that ?

Larry

Hi, 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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Martin, 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.

Link to comment
Share on other sites

  • 1 month later...

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: Folios

Im 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 thanks

Roger :oops:

Link to comment
Share on other sites

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: Folios

Im 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 thanks

Roger :oops:

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

Link to comment
Share on other sites

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

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....?

Regards

Roger :?::D

Link to comment
Share on other sites

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....?

Regards

Roger :?::D

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.

Regards

Roger :sad:

Link to comment
Share on other sites

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.

Regards

Roger :sad:

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.

Regards

Roger

Link to comment
Share on other sites

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.

Regards

Roger

Okay, 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.

Link to comment
Share on other sites

  • 7 months later...

Error in localhost for the folio

:(

Yet I followed the instructions ....

An idea?

The test is currently offline, I can show the error

Warning: Invalid argument supplied for foreach() in G:\xampp\htdocs\folio.php on line 36

Warning: 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 57

Thank you for help

Nat

Link to comment
Share on other sites

In folio.php file change line 22

from:

include($cms['tngpath'] ."genlib.php");

to:

include_once($cms['tngpath'] ."genlib.php");

See if that helps.

-joe

Ne donne aucun changement

no change

:(

thank you anyway

Link to comment
Share on other sites

  • 1 year later...
HeatherFeuer

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!

Link to comment
Share on other sites

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.

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...