![]() |
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. |
Quote:
|
I've worked out how to do this through templates, no file hacking required - and it works perfectly. :)
|
Quote:
If you've ever seen any of my hacks that were in response to requests, then you should know that I always give credit for the idea. I am sorry I happened to have the same idea, but I promise you that your post had nothing to do with it. |
Quote:
|
Me too. Templates, that is.
In the navbar template, all you have to do is put the site url before the bburl. The BBURL is a static thing in all of the navbars, and you can put whatever you want in front of it. Amy |
Granted. That works. Only thing is that it applies to any file (i.e. an addon) that uses the navbar templates. If you don't have any such files, then your method is effective and easy.
|
But, to reiterate, template modifications will produce half-assed results.
|
Any idea how to do this in vb3?
|
I'd am also spending a good deal of time trying to figure a way to make this work in vB3.0.7.
Any help would so be appreciated. |
All times are GMT. The time now is 09:15 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:
|