vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Re-Arrangement of the Forum Leaders Page (https://vborg.vbsupport.ru/showthread.php?t=292562)

Amaury 12-03-2012 09:55 PM

Re-Arrangement of the Forum Leaders Page
 
Is this possible?

I want it to be in the same order as on the usergroup legend bar:
  • Site Owner
  • Administrators
  • Moderators
  • Site Staff

kh99 12-03-2012 10:47 PM

I think you might be able to do it with plugins. If you created one using hook showgroups_usergroup and save $usergroupbits for each group (in an array), then at hook showgroups_forumleaders you could render the showgroups_usergroup template again for each one (rebuilding the $usergroups string in the order you want). You probably would need to look at the code in showgroups.php.

The moderators are still done in a separate section that's displayed first, unless you choose "Yes, But Disable Moderators" in the Enable Forum Leaders setting.

Amaury 02-28-2013 11:09 PM

Quote:

Originally Posted by kh99 (Post 2388214)
I think you might be able to do it with plugins. If you created one using hook showgroups_usergroup and save $usergroupbits for each group (in an array), then at hook showgroups_forumleaders you could render the showgroups_usergroup template again for each one (rebuilding the $usergroups string in the order you want). You probably would need to look at the code in showgroups.php.

The moderators are still done in a separate section that's displayed first, unless you choose "Yes, But Disable Moderators" in the Enable Forum Leaders setting.

Sorry for the very late reply.

Could I get some instructions on this, if that's okay?

So I create plugins with those two hook locations and then what?

kh99 03-08-2013 05:35 PM

Sorry, I got busy and forgot about this - do you still need it?

Amaury 03-08-2013 05:54 PM

Quote:

Originally Posted by kh99 (Post 2408852)
Sorry, I got busy and forgot about this - do you still need it?

Yes, please. :)

Amaury 03-24-2013 08:34 PM

Where'd you go, KH99? XD

KGodel 03-25-2013 07:22 AM

An easy way to sort usergroups on the page (and subsequently in admin panel list, etc) is to use HTML comments and order them that way. You can place alphabetical comments before the group name that will not appear anywhere but will sort them.

Amaury 07-24-2013 03:46 PM

Quote:

Originally Posted by kh99 (Post 2408852)
Sorry, I got busy and forgot about this - do you still need it?

Figured I'd bump this

Quote:

Originally Posted by KGodel (Post 2412123)
An easy way to sort usergroups on the page (and subsequently in admin panel list, etc) is to use HTML comments and order them that way. You can place alphabetical comments before the group name that will not appear anywhere but will sort them.

I don't think I know how to do that.

Sorry for the very late reply.


All times are GMT. The time now is 12:58 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.01196 seconds
  • Memory Usage 1,725KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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