vBulletin Modifications

Miscellaneous Hacks - Better Breadcrumbs

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Hacker Forum

Reply
 
LinkBack (1) Thread Tools
Old 10-31-2006, 10:46 PM   1 links from elsewhere to this Post. Click to view. #1
Coder
SirAdrian's Avatar
Join Date: Jun 2006
SirAdrian is on a distinguished road

Default Miscellaneous Hacks - Better Breadcrumbs

What would be really cool is changing the breadcrumbs (for forums) to dropdowns so you can either see all of its siblings in a dropdown menu. This can probably be used in other places as well.

But, of course the major drawback is the amount of extra HTML you are downloading. So a workaround would be to store it as a javascript arrays and build them all on the fly. It could probably be used in a bunch of other places as well.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 11-01-2006, 02:07 AM   #2
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

what the hell is a breadcrumb?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-01-2006, 02:07 AM   #3
Coder
SirAdrian's Avatar
Join Date: Jun 2006
SirAdrian is on a distinguished road

Default

"navbits"

vBHackers.com - vBulletin Modifications, Hacks, and Help > General vBulletin Section > vBulletin Hacker Forum > Miscellaneous Hacks
Better Breadcrumbs Better Breadcrumbs




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-01-2006, 11:52 AM   #4
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

Actually, the major drawback would be the added queries for a small return.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-01-2006, 01:38 PM   #5
Coder
SirAdrian's Avatar
Join Date: Jun 2006
SirAdrian is on a distinguished road

Default

Forumcache... no extra queries.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-01-2006, 02:57 PM   #6
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

I would just have a script that you can run when you change forum layouts. It would write a delineated list of a forums subforum id's and names. Save these as text files and name them after the parent forums id.

Then you could hard code the link structure in javascript and create the output on the fly using AJAX.

You could put the empty table or div in the html with the display:none. Then just write to it using DOM and change the display propery. And those without js would just cruz along not even knowing they were missing something.

Last edited by Code Monkey; 11-01-2006 at 03:01 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-01-2006, 03:04 PM   #7
Coder
SirAdrian's Avatar
Join Date: Jun 2006
SirAdrian is on a distinguished road

Default

Yeah I was thinking about storing it like that too, but then the whole permissions problem comes into play.

AJAX isn't a bad idea... most users won't know the feature exists so it is probably less of a performance hit this way as long as the server responds quickly. This would solve permission checking because you could use the server for it.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-01-2006, 03:09 PM   #8
Coder
Code Monkey's Avatar
Join Date: May 2006
Code Monkey is on a distinguished road

Default

Well, does the current forumlist select box not show forums you can't see? I have never looked at that. Just because they click doesn't mean they can enter.

You could also save the text files based on permisions as well and call them accordingly. It's not like you will have to run the script very often on an established site.

Text files are much smaller than xml and most servers have mod_deflate or mod_gzip so they open extremely fast.

and example of a file would be.

forum1:1|forum2:2|forum3:3|etc:4

Then you just use the delineator's to make your arrays in javascript.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2006, 10:10 PM   #9
Colonel Ingus
Master Coder
Colonel Ingus's Avatar
Join Date: Jun 2006
Real Name: The Wizard of Oz
Location: ...in a van, down by the river.
Colonel Ingus is on a distinguished road

Smile

For a while there we were playing around with Flash breadcrumbs, but we got sidetracked and never finished it :p
__________________

Colonel Ingus - N.A.P.P Member   

Vbulletin Coding Guru / vBHackers.com
vBSEO 3.1 GOLD Released vB Blogs Compatible | Non-Encrypted | Branding Removal Option | Sitemaps 2.1 | Language Packs

Crawlability Network: vBulletin SEO | vBulletin Hackers




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



LinkBacks (?)
LinkBack to this Thread: http://www.vbhackers.com/f103/miscellaneous-hacks-better-breadcrumbs-5885/
Posted By For Type Date
Statistics for vbmodder.com (2006-11) This thread Refback 11-11-2006 11:35 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -3. The time now is 10:50 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)