vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Subforums on Forumhome (no extra queries Version) (https://vborg.vbsupport.ru/showthread.php?t=49037)

deathemperor 10-16-2003 01:30 PM

well, I'm truly sorry, that was my terrible mistake.
I shouldn't have worked when I am exhausted :(
it works perfectly. Much thanks, Xenon

Xenon 10-16-2003 02:59 PM

:)
np, at least it works now, that's all what counts :)

translucent 11-20-2003 08:21 PM

Great hack! I changed the field "title" to "displayorder" in order to have the subforums sorted accordingly:
PHP Code:

$forums=$DB_site->query("SELECT forumid, title, parentlist FROM forum ORDER BY displayorder"); 


cerebro 11-21-2003 12:12 AM

i made another MOD

Code:


  $forums=$DB_site->query("SELECT forumid, title, parentlist FROM forum WHERE parentid=53 OR parentid=2 OR parentid=3 OR parentid=60  ORDER BY title");

And only show First Level of Subforums, but not all.

Xenon 11-21-2003 02:54 PM

@cerebro: that way looks better:

PHP Code:

$forums=$DB_site->query("SELECT forumid, title, parentlist FROM forum WHERE parentid IN(53, 2, 3, 60) ORDER BY title"); 


cerebro 11-21-2003 06:05 PM

Quote:

Originally Posted by Xenon
@cerebro: that way looks better:

PHP Code:

$forums=$DB_site->query("SELECT forumid, title, parentlist FROM forum WHERE parentid IN(53, 2, 3, 60) ORDER BY title"); 



Nice!...
sos un Groso! :d (in spanish)

Oblivion Knight 12-25-2003 12:40 PM

Is it possible to hide sub-forums that are currently turned off (active=0).?

I've tried adding this myself, with little success..

Xenon 12-27-2003 03:24 PM

just add a
[sql]active = 1 AND [/sql]

behinde the WHERE tag

mzbcarper 01-10-2004 04:53 PM

is there a version 4 vBB 3.0 to expect ?

Xenon 01-10-2004 04:54 PM

vb3 has this hack already included iirc


All times are GMT. The time now is 01:08 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.01219 seconds
  • Memory Usage 1,739KB
  • 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)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete