Log in

View Full Version : Single Forum Format??


djcaseanova
06-08-2009, 02:55 AM
Okay, I want people to go to my forum and see only the threads created. I do not want sub forums or really any forum for that matter. Simply when they go to the /forums/ url, the first thing I want them to see is all the posts and threads.

I had it setup where I had separate forums and sub forums under them, but I am trying to remove all the sub forums and having a single forum format.

Can anyone tell me an easy way to do this? I have a single forum I was testing with, but when you log in you are still required to click on the "forum" before being able to see the posts under it even though there is only one category... I don't want this.

Anyone help?? Thanks!!

Lynne
06-08-2009, 03:42 AM
How about just creating your own page which is how you want it - with only threads and no forums?

djcaseanova
06-08-2009, 03:43 AM
Well, I am unsure on how to do that I guess?

Lynne
06-08-2009, 03:52 AM
This may help - [How-To] vBulletin API Basics: Creating Custom Pages & Misc. (https://vborg.vbsupport.ru/showthread.php?t=98009)

Basically, you want to remove any code that you don't need from the index.php page and copy it to the new page. Same with the template. It's gonna take some trial and error playing around.

djcaseanova
06-08-2009, 06:06 PM
Ok, thanks for your time!!

I figured out how to do it. I did not have any luck simply with the .htaccess, but I did with the index.php recode. And in case anyone else is looking for a way to create it, do the following:

Once you've isolated it down to one forum, you can remove index.php and use a mod_rewrite to redirect index.php to forumdisplay.php?f=x, where x is your forum id.

Assuming if you're using Apache based web server and have mod_rewrite enabled, add this to your .htaccess file should do the trick:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index.php$ forumdisplay.php?f=X [R]
</IfModule>

To be on the safe side, you may also wish to create an additional index.php file with these contents:
Code:

<?php
header('Location: forumdisplay.php?f=X');
?>

Don't forget to replace X with your forum id.