vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Forums not displayed in forumlist, but ARE displayed in forum jump (https://vborg.vbsupport.ru/showthread.php?t=32502)

MarkB 11-18-2001 11:09 PM

Would it be possible to set a forum so it doesn't display on the main index with the other forums, but in the forum jump dropdown boxes, it's there as normal?

Admin 11-19-2001 04:41 AM

There is one easy way I can think of right now.

In functions.php, change this:
Code:

    $iforums=$DB_site->query('SELECT forumid,parentid,displayorder,title FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder,forumid');
into this:
Code:

    $iforums=$DB_site->query('SELECT forumid,parentid,displayorder,title FROM forum WHERE active=1 ORDER BY parentid,displayorder,forumid');
Now change every forum's display order to 0, and it will not show up on the main index, but it will be in the forum jump.

I guess you can add another 'special option' for the display order, let's say -1, but that would take more hacking.

MarkB 11-19-2001 08:08 AM

That looks like just what I need :) All I want is for my zine-related forums to not appear in the main community listing, so this should be perfect.

Thanks as always! :D

MarkB 11-26-2001 03:09 AM

Just a followup... this doesn't work :( They neither display on the forum index OR on the forumjump (I definitely want them displayed on the latter)...

Any ideas?:(

Frustratingly yours
Mark :p

bira 11-26-2001 06:26 AM

just add these forums manually to the forumjump template.

eg, place <option value="1">Forum No 1</option> there.

MarkB 11-26-2001 06:37 AM

I have multiple template sets, and if I ever need to change which forums are viewable or not, re-editing the templates would be a pain in the bum to say the least :)

Admin 11-26-2001 12:34 PM

Ok, I'm sorry.

It's not displayed because it's using a cache already set in a previous code, so it doesn't use what I told you to replace.
Sorry. :(

Only way I can think of is not using the forum cache at all, but that would really slow down the forumjump box.

MarkB 11-26-2001 12:50 PM

Ok, that's cool FF :) It was more just the icing on the cake rather than something essential :)

You can't have the answers all the time! :p

Thanks :)
Mark


All times are GMT. The time now is 01:33 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.01086 seconds
  • Memory Usage 1,717KB
  • 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
  • (8)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