Version: , by (Guest)
Developer Last Online: Jan 1970
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.
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
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.
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");
}
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");
}