![]() |
Navbar Mini-Hack
This mini-hack will add Forums to your navbar in folders and threads. This is useful if your forums are not the highest level of hierarchy on your site.
For example, if you have a thread title "Thread" in a forum "Folder", your navbar shows: MySite.com Forums > Folder > Thread But what if MySite.com is a thing of its own, and you want MySite.com to be the highest level in the hierarchy. This hack (combined with changing $bbtitle to your site title), will change that to: MySite.com > Forums > Folder > Thread It will only work in threads and forums, however, because I feel that the calendar, user cp, etc. are their own things and don't really need to be on a lower level than the forums. Also, these things can be edited in your templates if you really care. If you don't understand what this does, feel free to ask. Anyway, to do this little hack, open functions.php in your admin folder. In functions.php, find: PHP Code:
PHP Code:
|
Work! Great
but on my 2.2.9 This line navbits.=makenav($id,$idtype,$highlightlast); is withount the point after navbits :) |
ah, you're right...i need to modify my instructions a little bit. make sure you put that dot in or it won't work right.
|
Excellent Nick! I always find myself frustrated on other people's vBs that don't have a clear link back to the home page. (vBulletin.com being one obvious example!) It's poor UI since most people enter through the home page and expect that to be the top level of breadcrumb navigation.
|
Awesome idea :)
- miSt |
Remember that you should change other templates that don't use the makenavbar function to make the breadcrumb. But it's a really good idea! thanks!
|
Quote:
|
Quote:
thanks |
There only seems to be one problem with my hac of this: it shows it in the worng order. What do I do? Here's the example : http://www.metrodancecenter.com/vb/f...p?s=&forumid=2
Thanks!! :classic: |
Shouldn't I get a little credit for this idea?
I posted it here days ago! As far as I know www.dragonninja.co.uk was the first site to do this. |
All times are GMT. The time now is 04:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|