vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   order ALL subforums in alphabetical order (https://vborg.vbsupport.ru/showthread.php?t=64804)

Tilmanitou 05-06-2004 04:40 PM

order ALL subforums in alphabetical order
 
I am searching for a way to order ALL sub-forums in my forum in alphabetical order.
in vB2 it was done like that:

in forumdisplay.php:

find:
PHP Code:

$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder,forumid'); 

and replace with:
PHP Code:

$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,title,forumid'); 

pretty easy and small hack, just one word to change. is there anyone out there who knows how to do that in vB3?
Thanks!

KW802 09-10-2004 07:22 PM

*bump*

Any quick solutions for VB3?

AN-net 09-11-2004 01:00 AM

y dont u just order them using the display number system built into vb;)

kodeking 09-11-2004 08:23 PM

I think because he has A LOT of sub forums, say for a game site that has a sub forum for each game. It would be nice to be able to add a forum and not have to worry about re-arranging.

Rich 09-16-2004 11:28 PM

Hello,
This would be nice. I have over 100 forums and I have manually rearranged them as I add another. This would save me a great deal of time. perhaps I will look further into it when I have a minute and see what i can come up with.


All times are GMT. The time now is 04:00 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.01073 seconds
  • Memory Usage 1,715KB
  • 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_php_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