Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Forum Links Details »»
Forum Links
Version: 1.00, by JJR512 JJR512 is offline
Developer Last Online: Jun 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-09-2002 Last Update: Never Installs: 3
 
No support by the author.

This hack puts links to all forums a user has access to at the top of the page (or anywhere else you want it). I've been using hard-coded links on my own forums ever since my site opened over two years ago, and many people love them. For the record, the idea of having links to all forums at the top of the page is not my original idea; I originally saw it at Hardware Central. This is also something I requested once, long ago, at vbulletin.com, and Tubedogg came up with something that worked fairly well. However, his version never had any permission-checking features, so links to all forums were displayed. My version, written from the ground up by myself, does check permissions.

Some assistance was also provided by FireFly, who showed me how to keep the separation character from appearing after the last link. Thanks, FireFly!

This hack is basically very simple. You just add a few lines of code to one file, and a variable to your header template to show the output. But you can take this and customize it greatly, by formatting how the output is displayed, by surrounding the variable with various tags to center it or control the font style and size, or you could make it into a table; it's all up to you.

For a simple example, look at http://testvb.jjr512.com All I've done there is put the variable at the top of the header template, inside smallfont and center tags. For a more elaborate example, take a look at http://www.jjr512.com I've built it into a table with a different background color and a thin line border with curved corners. It's also duplicated in the footer. How you do it on your site is up to you. The possibilities are endless. If you come up with something you feel is neat and unique, maybe you could share it with us to give others an idea or two.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-10-2002, 02:58 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wasn't too sure if what I described in my previous message was very clear, so I've attached an image of my admin cp/forums setup page, so you can see my displayorders.
Reply With Quote
  #23  
Old 08-10-2002, 03:01 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin
The more forums you have, the more queries. And all these queries will be on EVERY page of your forum. So watch out! Have a look and see how forumjump does the query for forum permissions - forumjump only uses 1 extra query, no matter how many forums.
Yes, the more forums, the more queries, but the scary thing is that it's not just one additional query per forum, because I don't have that many forums! I think the getperms is adding a few queries per each forum, meaning that the queries will grow bigger by greater amounts as you have more forums!

So, I will be closely examining the forumjump feature to see if I can learn anything from it. Until then, heavy-usage board owners may wish to not install it. Personally, I haven't noticed any difference, but I wouldn't exactly call my board very active...
Reply With Quote
  #24  
Old 08-10-2002, 03:18 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, you explained it perfectly. I was doing mine like 1 for the category and 1...2...3...4...5 for the forums on every one of them. I should have known better than to do it that way. DOH!!! Now everything is listed as it should be. Thanks for taking the time to explain it.

Here is a link to that function I told you about. The one Firefly wrote. Hope it helps.

https://vborg.vbsupport.ru/showthrea...202#post281202

Quote:
Originally posted by JJR512
I wasn't too sure if what I described in my previous message was very clear, so I've attached an image of my admin cp/forums setup page, so you can see my display-orders.
Reply With Quote
  #25  
Old 08-10-2002, 04:33 AM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JJR512
OK, I see what you mean about the zero thing now. Yes, there is no provision in my hack to ignore forums with a displayorder of 0. Actually, I had no idea that vBulletin wouldn't display forums like that, because it's never even occurred to me to try. When I want a forum to not show up anymore, I edit the forum properties and set "Is active?" to No. Incidentally, if you do this, the forum actually still is active, if someone gets into it manually with putting that forum's forumid number in a forumdisplay.php URL. But the forum does not show up at all on the message board or in the list generated by this hack. On my board, we call this a "hidden forum", and have one hidden forum in use. So, if you want these forums to not show up in this list, just set the active status to no. Or, if you really insist, I could throw in some additional code to ignore a forum if its displayorder is 0.

Actually I could just tell you how to do it...In the first query, change
Code:
WHERE active='1'
To
Code:
WHERE active='1' AND displayorder>'0'
Now I haven't tested that, but that should work in theory. (Note: Unless this proves to be a common problem, I do not plan on putting this change into the official release.)

But I strongly suggest setting the active status to no; this will solve the problem not just with my hack, but also with the Spider Friendly hack, too!
Thanks JJR512 ... I took your advice and changed the status to no and that did work. Unfortunately, even doing this, I still have too many forums and/or their names are too long ... making the many lines sit unattractively at the top of my pages. Great hack though and thanks for taking the time to help me.

Destee
Reply With Quote
  #26  
Old 08-10-2002, 04:45 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome looking hack, I may just have to consider this

edit:
whoops, saw the queries thing...is there a possible way around? Without having to use the forumjump-thingy?
Reply With Quote
  #27  
Old 08-10-2002, 04:24 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JJR512
If you're going to use it as a drop-down, like the forum jump, why not just use the forum jump instead?
That way i can ait to my portal and all pages and take off the forum jump . ill have this set in my header, kinda like overgrow.com
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 11:32 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
  • Page Generation 0.06655 seconds
  • Memory Usage 2,271KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete