![]() |
BreadCrumb Navigation
Hey again!
i was wondering if someone could help me out. What i want to do, is use a breadcrumb style navigation script, what i want it to do it look at the url, and take certain things from it, so if the link is this: index.php?page=tutorials&page=list&cat=photoshop it would make "Site Name > Tutorials > Photoshop" Thanks to anyone that can help! :D |
PHP Code:
|
thanks :) i can use that to start off,
lol it was just a typo, the 2nd page= is act= :) thanks alot |
I've had fun writing this function :) ! Works like a dream. Even adds in the links for you and best of all, it's all automatic. Don't forget to give TalkPHP.com a mention if you use it! Please.
PHP Code:
|
Interesting function, Wildhoney, but sadly it won't cope (in terms of display order) if the key/value pairs come in a differently. E.g.
?act=list&cat=photoshop&page=tutorials rather than page, act, cat. |
Yep. I realise that. It's its only downfall really. However, for what he asked, it is perfect! The idea itself was flawed, not the code. As long as users don't go switching arguments then you're laughing.
|
Quote:
|
| All times are GMT. The time now is 02:47 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0