Jump to content

Forum Breadcrumb trail - help!


twsowerby

Recommended Posts

Hi guys,

 

I am building a forum for a university project and would like to implement a dynamic breadcrumb trail much like the one on this forum.

 

Something like: Home > Forum > *Category title* > *Post Title*.

 

I have searched on google for solutions but can only find static breadcrumbs and my php knowledge is too limited to enable me to adapt those solutions to suit my requirements.

 

My database structure is set up so that categories have their own table and then all the posts and replies are stored in another table linked to categories by a category id.

 

Happy to post any more informtaion you need and any help would be greatly appreciated.

 

Thanks!

 

Tom

Link to comment
https://forums.phpfreaks.com/topic/81909-forum-breadcrumb-trail-help/
Share on other sites

if your looking for somethign similar to what son phpfreaks?  at the top of the page?

 

PHP Freaks Forums > PHP and MySQL > PHP Help > Topic: Forum Breadcrumb trail - help!

 

 

well personally what i woudl do is to have every page statically define its location.  eg this page woudl define its name as "PHP Freaks Forums > PHP and MySQL > PHP Help > ***".  then what you woudl do is have a function that finds *** and replaces it with a $PAGE_NAME variable - or the name of a post or whatever.

 

 

another way you coudl do it is to have each new level in a new directory from teh root etc.  then you could simply play with your directories in PHP using **slice()???***  and then post it like that.  this way would work best becase you could change directories etc and you woudlnt have to change any code

 

gdlk

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.