Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-31-2000 Last Update: Never Installs: 0
 
No support by the author.

Hey Ed,
gotta a quick question for ya:
what hack does this site use?
http://www.carforums.com/forums/
as you can see, they use "category-only view",
and when you click on a category it takes you to a DIFFERENT page, NOT just expand to show that category.
Do you have this hack somewhere?
I really need it since I have almost 70 categories and almost 700 forums.

Thanks!

Show Your Support

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

Comments
  #12  
Old 01-07-2001, 12:25 PM
Guest
 
Posts: n/a
Default

oh man!!!
thats not what i was talking about
that's available in any version, not just the 1.1.5...

What I was talking about was....ok go to http://www.carforums.com/forums
you there? good
now click on "Acura"
once you do this, it will take you to a completely new page that ONLY lists the forums that are under "Acura".
vBulletin expands the categories to show the forums inside. This website uses a hack or something of that sort, because if you have 70 forums, it's not going to work morally to expand it and all that, the visitors will die because of the load time.

If you still aren't sure what I'm talking about gimme a beep:

ICQ # 83417350
AIM - tennisboy

.....and no, I REALLY SERIOUSLY can't wait 'till v 2.0 for this

thanks.
Reply With Quote
  #13  
Old 01-07-2001, 12:51 PM
Guest
 
Posts: n/a
Default

Sorry I didn't notice that change.

I think they ripped out some code to do that and isn't a hack really.
Reply With Quote
  #14  
Old 01-07-2001, 12:54 PM
Guest
 
Posts: n/a
Default

can you plz tell me which part to rip out???
that would be so awesome!
Or just which file should i tweak?
Thanks!!!
Reply With Quote
  #15  
Old 01-07-2001, 01:31 PM
Guest
 
Posts: n/a
Default

Novel idea...

Set "categoriesonly" to yes.
Reply With Quote
  #16  
Old 01-07-2001, 01:48 PM
Guest
 
Posts: n/a
Default

yes Mike, that is a very novel idea, but unfortunately that is not the issue, since I know that.
You're thinking what vboard.co.uk was thinking in the beginning and he said that the option is available in 1.1.5
Read the posts before these.
My porblem is this:
Once I switch to vB, I will have 70 categories and around 700 forums in them.
Of course I will use, category-only view.
I don't like the way vB works with categories only. If you click on a category, it will expand that category to show the forums inside, but it will still be a list of all other categories too.
for example:
http://www.vbulletin.com/forum/index.php?categoryid=2
you see that it display forum under "General" but you still see "vBulletin", "vBulletin 2.0 Development"...etc.
What I want my board to do when someone clicks on a category is to take him to a new page that ONLY lists the forums in that category, without displaying the whole list of other categories.

HERE IS EXACTLY HOW I WANT MY FORUM TO BEHAVE:
http://www.carforums.com/forums/
It uses vB. It is tweaked to just what I want.
Once you click on "Acura" for example, it takes to a page with ONLY the list of forums under "Audi".
You do not see the list of other categories.

I hope I made sense...
Reply With Quote
  #17  
Old 01-07-2001, 02:16 PM
Guest
 
Posts: n/a
Default

mike, where did u go?
Reply With Quote
  #18  
Old 01-07-2001, 04:40 PM
Guest
 
Posts: n/a
Default

Here is how to do this... In INDEX.PHP

look for
Code:
  if (isset($categoryid)!=0 and $categoryid!=0) {
    $categoryid = verifyid("category",$categoryid);
    $selcategoryid=$categoryid;
    $categoriesonly=1;
  }
above that add:
Code:
  $selcategoryid=0;
Then look for:
Code:
  $categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder");
and replace with:
Code:
  if ($selcategoryid==0) {
    $categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder");
  } else {
    $categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE categoryid=$selcategoryid AND displayorder<>0 ORDER BY displayorder");
  }
You can see this is in effect at http://sitepointforums.com just click on any category.,


[Edited by wluke on 01-07-2001 at 01:44 PM]
Reply With Quote
  #19  
Old 01-07-2001, 04:44 PM
Guest
 
Posts: n/a
Default

THANKS
Wayne!!!
You da man!
Reply With Quote
  #20  
Old 01-09-2001, 01:10 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by wluke
Here is how to do this... In INDEX.PHP

look for
Code:
  if (isset($categoryid)!=0 and $categoryid!=0) {
    $categoryid = verifyid("category",$categoryid);
    $selcategoryid=$categoryid;
    $categoriesonly=1;
  }
above that add:
Code:
  $selcategoryid=0;
Then look for:
Code:
  $categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder");
and replace with:
Code:
  if ($selcategoryid==0) {
    $categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder");
  } else {
    $categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE categoryid=$selcategoryid AND displayorder<>0 ORDER BY displayorder");
  }
You can see this is in effect at http://sitepointforums.com just click on any category.,


[Edited by wluke on 01-07-2001 at 01:44 PM]
oh man.. never knew i needed this until it fell in my lap
Reply With Quote
  #21  
Old 01-09-2001, 01:22 PM
Guest
 
Posts: n/a
Default

works perfectly on a renamed index.php to cat_index.php and just edited the categorybit template to point the cats to cat_index.php instead
Reply With Quote
Reply


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 06:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07386 seconds
  • Memory Usage 2,283KB
  • Queries Executed 27 (?)
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
  • (8)bbcode_code
  • (1)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
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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
  • 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