Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2005, 07:09 PM
Kriminal's Avatar
Kriminal Kriminal is offline
 
Join Date: Dec 2004
Location: Buenos Aires
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to have a custom order in showgroups?

Hi everybody!
I'd like to show the differents groups in showgroups.php in the "correct" order (can't find the word in english, in spanish is "orden jerárquico").
For example, I want to appear at top Administrators, then Super Moderators and at the end Moderators.
As vbulleting assigns the id 5:SM, 6:Admin, 7:Mods, I can't ORDER BY usergroupid ASC or DESC; and I can't find any function on MySQL or PHP to do something like "ORDER BY (6,5,7)"
Obviously, I don't want to change the usergroup ids to fetch that order... it must have be an "elegant" solution...

Well, thanks for all!
Reply With Quote
  #2  
Old 08-01-2005, 12:49 AM
Primeval Primeval is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am looking for the same thing as well.

I gave it a tiny try to edit showgroup.php to arrange order by usergroupid and it did work with one php error, the array. I think it was ksort I edited.

I am no expret in php but it does seem to be a good step to figure out a way to add a custom code to arange forum leaders as usergroupid and a page to order it by a # of usergroupid?

On the next upgrade you might use it as a good default to order group as 6, 5, 7; admins, supermods, mods.

I do recall the original default is set in alphabetical order which makes it admin, mods, and supermods. The only normal way to fix it is to change supermods to global mods.
The downside is when you add more additional groups to display on showgroups, it will become out of order. It will be a really useful if there was a easy way to customize order by group id.

Edit: vb version 3.0.7 user.
Reply With Quote
  #3  
Old 08-01-2005, 01:57 AM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=91246&highlight=administrators+to p" target="_blank">https://vborg.vbsupport.ru/showt...nistrators+top</a> ---found it for 3.5..give me an hour and I will see whats going on with 3.0.X..prolly not hard at all :P

~Curt
Reply With Quote
  #4  
Old 08-01-2005, 01:55 PM
Primeval Primeval is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the link but that is not it.. its more complitcated. Have to create a whole new code to make a custom order.

The link you provided just moves the $showgroup code to the top or below the moderator bit. Thats not what I'm looking for (as I already fixed that issue on my forums)
Reply With Quote
  #5  
Old 12-17-2005, 11:51 AM
Kurisu Kurisu is offline
 
Join Date: Aug 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would really need that, too...
Hopefully someone will start to work on this
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:31 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.03687 seconds
  • Memory Usage 2,191KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete