pkirsch Posted March 19, 2007 Share Posted March 19, 2007 Hello Everyone! I am having troubles trying to figure out how to make a Dynamic Breadcrumbs trail! Yes I have indeed searched Google and I haven't found any really good ways to do this! This is really annoying! Please Help Me with ideas on how to make this possible! Thank You So Much For Your Time! Link to comment https://forums.phpfreaks.com/topic/43361-dynamic-breadcrumbs/ Share on other sites More sharing options...
per1os Posted March 19, 2007 Share Posted March 19, 2007 Some code would be helpful. Link to comment https://forums.phpfreaks.com/topic/43361-dynamic-breadcrumbs/#findComment-210575 Share on other sites More sharing options...
pkirsch Posted March 19, 2007 Author Share Posted March 19, 2007 I don't Have any code yet! Thats the problem! I need help with the concept of making a Dynamic Bread Crumb Trail! But if you want some code Here's some sample code I've found on the Interweb! ----------------------------------------------------------------------------- <? $ul_id='crumbs'; $bc=explode("/",$_SERVER["PHP_SELF"]); echo '<ul id="'.$ul_id.'"><li><a href="/">Home</a></li>'; while(list($key,$val)=each($bc)){ $dir=''; if($key > 1){ $n=1; while($n < $key){ $dir.='/'.$bc[$n]; $val=$bc[$n]; $n++; } if($key < count($bc)-1) echo '<li><a href="'.$dir.'">'.$val.'</a></li>'; } } echo '<li>'.$pagetitle.'</li>'; echo '</ul>'; ?> Then Wherever You want it to appear: <? $pagetitle="Insert Page Title"; include("http://www.yourdomain.com/breadcrumbs.php"); ?> ------------------------------------------------------------------------ Now this seems like it would work well but will it automatically insert the Page Name? Because i want to have this code (or something similar; can you suggest any good Bread Crumbs Scripts?) in a separate file, then I will include() it in the target page! What do I need To do? Link to comment https://forums.phpfreaks.com/topic/43361-dynamic-breadcrumbs/#findComment-210781 Share on other sites More sharing options...
pkirsch Posted March 19, 2007 Author Share Posted March 19, 2007 This is Not Making Any Sense To me! Please Help! Link to comment https://forums.phpfreaks.com/topic/43361-dynamic-breadcrumbs/#findComment-210809 Share on other sites More sharing options...
suttercain Posted March 31, 2007 Share Posted March 31, 2007 No one can help this guy? I am curious to see how this would work too. Link to comment https://forums.phpfreaks.com/topic/43361-dynamic-breadcrumbs/#findComment-218819 Share on other sites More sharing options...
MadTechie Posted March 31, 2007 Share Posted March 31, 2007 we will try to help you with the code or how to solve a problem but you need to build the concept and have started the process of developing the system first. Link to comment https://forums.phpfreaks.com/topic/43361-dynamic-breadcrumbs/#findComment-218846 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.