Jump to content
TNG Community

Add New pages using TNG Admin Guide Histories - Header links dont work


brummie23

Recommended Posts

Hi I have just installed a Welcome page on my website falvey.id.au using the Histories pages and the David Freeman method and have noticed that once I open the page by clicking on the welcome link from the home page, non of the links at the top of the page in the header work ( Home Page, What's New, Photos, Histories, Headstones, Reports & Surnames). the only way back is to use the browser "Show the previous page" arrow.

Pressing them opens up an error page:

Not Found - The requested URL/extrapgs/index.phpwas not found on this server.

Additonally a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSl/0.9.8b mod_auth-passthrough.2.1 mod-bwlimited/1.4 FrontPage/5.0.2.2635 Sever at falvey.id.au Port 80

Each first line refers to it relative URL extrapgs: index, whatsnew, browsemedia, browsemedia, browsmedia, reports, surnames.

Any one have any idea as to what I have done wrong or not completed? I am a novice.

Thanks

Matt Falvey

Perth W Australia

Link to comment
Share on other sites

Hi I have just installed a Welcome page on my website falvey.id.au using the Histories pages and the David Freeman method and have noticed that once I open the page by clicking on the welcome link from the home page, non of the links at the top of the page in the header work ( Home Page, What's New, Photos, Histories, Headstones, Reports & Surnames). the only way back is to use the browser "Show the previous page" arrow.

Pressing them opens up an error page:

Not Found - The requested URL/extrapgs/index.phpwas not found on this server.

Additonally a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSl/0.9.8b mod_auth-passthrough.2.1 mod-bwlimited/1.4 FrontPage/5.0.2.2635 Sever at falvey.id.au Port 80

Each first line refers to it relative URL extrapgs: index, whatsnew, browsemedia, browsemedia, browsmedia, reports, surnames.

Any one have any idea as to what I have done wrong or not completed? I am a novice.

Thanks

Matt Falvey

Perth W Australia

Matt,

It looks like the template 2 topmenu.php file is one of those which did not get updated to use the $cms[tngpath] to find the location of the TNG install files. You can update your topmenu.php to add <?php echo $cms['tngpath'] ; ?> in front of each TNG script in the href statement such that lines 35 through 47 might look as follows


                        <a href="<?php echo $cms['tngpath']; ?>index.php" class="topmenu"><?php echo $text['mnuheader']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>whatsnew.php" class="topmenu"><?php echo $text['mnuwhatsnew']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=photos" class="topmenu"><?php echo $text['mnuphotos']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=histories" class="topmenu"><?php echo $text['mnuhistories']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=headstones" class="topmenu"><?php echo $text['mnutombstones']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>reports.php" class="topmenu"><?php echo $text['mnureports']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>surnames.php" class="topmenu"><?php echo $text['mnulastnames']; ?></a>
and then also add it for the search.php script on line 54
            <form action="<?php echo $cms['tngpath']; ?>search.php" method="get" id="topsearch" style="margin:0px">

Note that the above code is for the topmenu.php version of Custom Header for template 2. If you are using the html version of the file, you will need to adjust the paths so they are absolute.

Hope that helps.

Link to comment
Share on other sites

Hi Ken, thanks very much for these they worked straight away. Just one little problem that you may know the answer for off the top of your head. As I mentioned in the original post I have installed a Welcome Page and now it works fine.

So I then decided to add a "User Help" page following the same procedure and as I had moved Home page links around to accommodate the "Welcome", moved all of them around to reflect was I considered to be the most popular at the top. All of them are working in their new positions, so no problems there.

But the new User Help page, which should be located in the space on the top row 3rd from left, just will not show.

I have been over the Creating Extra Pages for USE in TNG install sheet till I think I know it off by heart.

I have created from scratch a userhelp.php

I have moved its position around. Switching Welcome with userhelp and whatever position I put Welcome in it is visible and whatever position I put userhelp in it is invisible.

I have copied the websitewelcome.php and loaded just the userhelp text into it (In the hope that had I done anything wrong following the instructions from scratch, by using one that is working to eliminate possible errors), saved it as userhelp.php and put it into the extrapgs folder.

I have done the lot again and created and extrapgs2 folder in case having the two new pages in one file is a problem.

Are you aware of any problem that may exist in having two extrapages created from the history template method? Or have any idea as to what I can do to fix it?

Thanks again.

Matt

Matt,

It looks like the template 2 topmenu.php file is one of those which did not get updated to use the $cms[tngpath] to find the location of the TNG install files. You can update your topmenu.php to add <?php echo $cms['tngpath'] ; ?> in front of each TNG script in the href statement such that lines 35 through 47 might look as follows


                        <a href="<?php echo $cms['tngpath']; ?>index.php" class="topmenu"><?php echo $text['mnuheader']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>whatsnew.php" class="topmenu"><?php echo $text['mnuwhatsnew']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=photos" class="topmenu"><?php echo $text['mnuphotos']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=histories" class="topmenu"><?php echo $text['mnuhistories']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>browsemedia.php?mediatypeID=headstones" class="topmenu"><?php echo $text['mnutombstones']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>reports.php" class="topmenu"><?php echo $text['mnureports']; ?></a>
                         |
                        <a href="<?php echo $cms['tngpath']; ?>surnames.php" class="topmenu"><?php echo $text['mnulastnames']; ?></a>
and then also add it for the search.php script on line 54
            <form action="<?php echo $cms['tngpath']; ?>search.php" method="get" id="topsearch" style="margin:0px">

Note that the above code is for the topmenu.php version of Custom Header for template 2. If you are using the html version of the file, you will need to adjust the paths so they are absolute.

Hope that helps.

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