vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Listing Sub-Forums in alphabetical order.. (https://vborg.vbsupport.ru/showthread.php?t=189892)

Lynne 02-15-2013 03:53 PM

It's hard to know if you did it correctly if you don't post the exact code you used and then let us see the results.

insidegames 02-19-2013 07:59 AM

It was:

Quote:

There is a query called $newforumcache and it is ORDER BY displayorder. Change that line to ORDER BY title
ORDER BY parentid, title

christleo 02-21-2013 05:20 PM

Can i sort sub forum by lastest thread/post reply?

zhono 11-25-2013 01:58 AM

Anyone that's still looking for this, follow Lynne's instructions, but use this:

Code:

ORDER BY displayorder, title
Now what will happen is the display order will work normally. But if you want some subforums to be listed/displayed alphabetically, just give them the same display number. For your existing forums to get this, just go to maintencance and rebuild forum information. All new forums added will get placed alphabetically right from the start IF you use the same display number. If you use a different number, it'll will be listed where it normally would. But if you later decide to change the number to the same as the rest and hit save, it'll pop right in line with the alphabetical stuff. So far I haven't seen any issues with this method and it's incredibly simple and easy to manage my 400+ subforums. Some are alpha, some are not, and it doesn't take me ANY time to mess around with display order numbers.:D

*EDIT* A little clarification. Just because some items have the same number, doesn't mean they will be sorted alphabetically. They have to have the same number AND be subforums of the SAME forum or category.

Ghostt 04-24-2014 11:43 PM

big Thanks to zhono and lynne . this helped me and safed a lot of work!


All times are GMT. The time now is 12:38 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.01565 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete