You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 81 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Sitemap [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
JenOcide
Nuke Cadet
Nuke Cadet


Joined: May 24, 2003
Posts: 3


PostPosted: Sat May 24, 2003 10:25 am Reply with quoteBack to top

Hi, I hope this is the correct place to ask my question.

How would you go about adding a sitemap; by this I mean adding a 'Sitemap' link to the left navigation, a 'Sitemap' link to the top navigation, both of which open to a page with links to every page of the website (a sitemap).

I tried a search on this site, but came back with no matches on similar subjects.

If anyone could help it would be appreciated.

Sample code of how the sitemap will look (will obviously be more complicated than this when more pages are added).
Code:
<h2>Site Map</h2>
<h4>Please use the site map below:</h4>

<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr valign="top">
    <td>
      <ul>
        <li><a href="link1.php">Link 1</a></li>
        <li><a href="link2.php">Link 2</a></li>
        <li><a href="link3.php">Link 3</a>
          <ul>
            <li><a href="link3_1.php">Link 3.1</a></li>
            <li><a href="link3_2.php">Link 3.2</a></li>
          </ul>
        </li>
      </ul>
    </td>
  </tr>
</table>


Thank you once again.

Jennifer
Find all posts by JenOcideView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sat May 24, 2003 1:11 pm Reply with quoteBack to top

firstly, I'd create the sitemap as a module. That'll mean you can integrate it into your site easily.

The links will (pretty much) be modules.php?name=Module_Name

The Idiots Guide to Nuke has a basic introduction to Modules Creation in there, but just to make life simple, what I'd do is:

Create a file called index.php inside a new directory called Site_Map inside the Modules directory.

In that file, put this code:
Code:
<?php

if(!eregi("modules.php", $_SERVER['PHP_SELF'])){
    die("You can't access this file directly...");
}

include("header.php");

if(!isset($mainfile)){
include("mainfile.php");
}
OpenTable();
?>
<html>
Add your html stuff here with the site link info in
</html>
<?php
CloseTable();
include("footer.php");
?>


AI
Find all posts by ArtificialIntelView user's profileSend private message
JenOcide
Nuke Cadet
Nuke Cadet


Joined: May 24, 2003
Posts: 3


PostPosted: Sat May 24, 2003 2:05 pm Reply with quoteBack to top

Thank you for the reply ArtificialIntel,

I'd started working on a module (as below) after reading the idiots guide, but wasn't sure if I was on the right lines or not (because I'm an idiot Razz ).

After looking at your sample code, I think I'll quit working on mine and give yours a try instead Very Happy

Thank you once again for your help, and I'll let you know if everything works out ok Smile

Jennifer

Code:
<?PHP
if(!eregi("modules.php", $PHP_SELF)) {
       die("You can't access this file directly")
}

if(!isset($mainfile)){
       include("mainfile.php");
}

include("header.php");
echo "<ul>";
echo "<li><a href=\"postt100.html">Hack Detection List</a></li>";
echo "</ul>";
include("footer.php");
?>
Find all posts by JenOcideView user's profileSend private message
JenOcide
Nuke Cadet
Nuke Cadet


Joined: May 24, 2003
Posts: 3


PostPosted: Sun May 25, 2003 9:58 am Reply with quoteBack to top

Just wanted to say that I got it all working. I had a few problems at first to do with the links, but I figured it out eventually.

Anyway, thank you very much ArtificialIntel Very Happy
Find all posts by JenOcideView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.326 Seconds - 307 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::