vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Single Forum Format?? (https://vborg.vbsupport.ru/showthread.php?t=215617)

djcaseanova 06-08-2009 02:55 AM

Single Forum Format??
 
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.

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:

Code:

<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:

Code:

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

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


All times are GMT. The time now is 07:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01675 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete