vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   List sections in alphabetical order (https://vborg.vbsupport.ru/showthread.php?t=296416)

AndrewSimm 03-23-2013 04:07 AM

List sections in alphabetical order
 
How would I go about making the box that list sections, list them in alphabetical order instead of order they are created. When We promote an article to a thread I would like for the mod to be able to find the section easily.

I rss each section into my entry page on vbadvanced so that is why I have a lot of sections.

Lynne 03-23-2013 04:03 PM

I would guess you need to modify the query near the bottom of the packages/vbcms/widget/sectionnavext.php file to order by the title instead of the leftnode.

AndrewSimm 03-26-2013 05:38 AM

Its not a widget but under the heading "Publishing Options" when promoting a post to an article.

Lynne 03-26-2013 05:52 PM

Ah, under Display Settings > Section. Those are actually in the same order as listed in the Admicnp > vBulletin CMS > Section Manager. So, if you list them in the order you want them in the Section Manager, then they would show in that order when promoting a thread. It looks like the sections are set in packages/vbcms/content/section.php around line 1062-1104. So, you would need to modify that code there.

AndrewSimm 03-27-2013 05:56 AM

Ok I want them to show in order they are promoted but in the list to select the section I would like that list to show in alphabetical order.

Is that still in the section.php file?

--------------- Added [DATE]1364363958[/DATE] at [TIME]1364363958[/TIME] ---------------

$displayorder_array = array(0 => '');

Maybe changing that?


All times are GMT. The time now is 03:43 AM.

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.01333 seconds
  • Memory Usage 1,710KB
  • 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
  • (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