Version: , by (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 08-28-2000
Last Update: Never
Installs: 0
No support by the author.
I share my forums with some other motorsport sites including some rally sites. What I would like to do for them is allow them to link to my front page but only see the rallying and one other category i.e. I have the categories[*]General[*]Racing[*]Rallying[*]Computers[*]Private Messaging
Want I want to do is create a new index.php say rallyindex.php which will only display[*]General[*]Rallying[*]Private Messaging
I've had a look around index.php but can't make head nor tail of it. Anyone be kind enough to help?
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I posted info on how to modify index.php to only display the forums that you want. Others have posted similiar info also. Just search for something like (index.php custom)
And you posted in it so I guess you forgot? Note John mentions an easy way to set custom styles per forum in the "Next Major Version". So I guess it would be prudent to just sit on this and wait for the release in a few weeks time and see if it is in there?
I am lost in confusion on those threads. Isn't there a simple disilled instructions anywhere or even just a hint as to how to make a customindex.php file to just show certain directories. All this stuff seems too much for my simple requirements.
And you posted in it so I guess you forgot? Note John mentions an easy way to set custom styles per forum in the "Next Major Version". So I guess it would be prudent to just sit on this and wait for the release in a few weeks time and see if it is in there?
yeah i lost the thread... i tried your way of doing it and it's alot easier i think...
Huss, why do you even post if you're not going to offer any help at all? I've seen a bunch of threads where you tease people with hacks and then never post about it again.
You need to replace the category names with the name that you are going to call each custom category list. Also, you need to change the numbers in each $yourcat variable to include the categories for that list. For example, in the above code, I will have a custom category called "Category 3" that contains categories 1, 2, 13, 4 and 14. The order of the categories here doesn't matter.
The final two else statements should contain all visible categories.
3) Find the following line:
Code:
$categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder");
replace it with the following:
Code:
$categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category HAVING categoryid=$yourcat ORDER BY displayorder");
4) In the forumhome template, you can insert the variable $catname wherever you want the custom list name to appear.
5) to call this script, simply add the parameter ?go=number of custom category. For example, if you have called this script index2.php, you would link to http://www.yourdomain.com/forum/index2.php?go=1 and you would only see the forums which you designated for category 1. The categories will appear in the order you have them designated in the control panel.
I hope this makes sense. I realized while trying to describe this that custom categories isn't the best wording as this still uses the set categories from the board. You can see an example of this here: http://www.bigsoccer.com/forum/boards.php?go=3