jonniejoejonson Posted February 19, 2008 Share Posted February 19, 2008 Hey guys... how do sites have navigation links, like the one at the top of this page... PHP Freaks Forums > PHP and MySQL > PHP Help > Start new topic I can see it is fairly simple to do IF there is only one root to for example 'Start new topic'... however if like on my site there are many roots to get to 'Start new topic', how do you keep track of the root they have taken. I can store it in session variables because what if a user clicks the back button or refreshes a page? thanks to any responders. Link to comment https://forums.phpfreaks.com/topic/91965-navigation/ Share on other sites More sharing options...
bank Posted February 19, 2008 Share Posted February 19, 2008 Well, it uses a breadcrumb trail, as I recall, if you're running a forum, you could run a mysql query to find sub directories. Link to comment https://forums.phpfreaks.com/topic/91965-navigation/#findComment-470992 Share on other sites More sharing options...
chronister Posted February 19, 2008 Share Posted February 19, 2008 here is a breadcrumb class that is easy to integrate and use. http://www.baskettcase.com/classes/breadcrumb/ Nate Link to comment https://forums.phpfreaks.com/topic/91965-navigation/#findComment-471141 Share on other sites More sharing options...
ILYAS415 Posted February 19, 2008 Share Posted February 19, 2008 Another way to do it is simply by doing something like this... Forum/website name > $forum > $category > Text here or maybe even if your viewing a thread... $threadname All you'll need to do is assign the variables before that text. e.g. by using $_GET probably? Link to comment https://forums.phpfreaks.com/topic/91965-navigation/#findComment-471164 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.