The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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
|
Comments |
#12
|
|||
|
|||
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. |
#13
|
|||
|
|||
Sorry I didn't notice that change.
I think they ripped out some code to do that and isn't a hack really. |
#14
|
|||
|
|||
can you plz tell me which part to rip out???
that would be so awesome! Or just which file should i tweak? Thanks!!! |
#15
|
|||
|
|||
Novel idea...
Set "categoriesonly" to yes. |
#16
|
|||
|
|||
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... |
#17
|
|||
|
|||
mike, where did u go?
|
#18
|
|||
|
|||
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; } Code:
$selcategoryid=0; Code:
$categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder"); 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"); } [Edited by wluke on 01-07-2001 at 01:44 PM] |
#19
|
|||
|
|||
THANKS
Wayne!!! You da man! |
#20
|
|||
|
|||
Quote:
|
#21
|
|||
|
|||
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
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|