vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Change Forum Display On Index (https://vborg.vbsupport.ru/showthread.php?t=208472)

lostincable 03-16-2009 12:57 AM

Change Forum Display On Index
 
I am trying to limit the forums that are displayed on the index. I want to have only one forum listed on the index page and the rest removed.

I know this can be done by hiding the forums in the acp but I would like them to be physically removed from the index not just hidden. I believe this would be done by changing
"forumdisplay.php" to only display a selected number of forums, again I would like to do this within the code of vbulletin and not the database.

I have looked at the following files,

function_forumdisplay.php
forumdisaply.php

And I am sure there is a way in the code but I am not a programmer so unable to determine what to change to limit the forum id's it draws from the datase.

Again I would like to do this through the code of vbulletin and not the database.

Any one have any ideas?

Dismounted 03-16-2009 04:57 AM

Just set the display order of the forum to zero?

lostincable 03-16-2009 05:01 AM

Are you saying to do that from the admin panel?

Thats what I am trying to avoid, if i do in the amdincp it will change it in the database.

I want to do this at a code level so the php code only draws a select forum (s) to display.

Does that make sense?

Dismounted 03-16-2009 05:03 AM

Is there a problem with that? Seriously. All it changes is a display order...

lostincable 03-16-2009 05:13 AM

Yes thats the whole point, if I do it at a database level it affects multiple domains that is because the database is shared.

If I can do it at a code level it affects only the coded site.

Dismounted 03-16-2009 11:13 AM

The forums are fetched in construct_forum_bit() (functions_forumlist.php). However, from memory, there are no appropriate hooks to use, so you will most likely have to edit that file directly.

Also note that what you're doing may require more than one vBulletin license.


All times are GMT. The time now is 08:18 PM.

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.01077 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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