Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 12-06-2008, 06:51 PM
Mahar Mahar is offline
 
Join Date: Aug 2004
Location: Wisconsin
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Show forum leaders coding

I'm looking to re-order my Show Forum Leaders Page. I've included a screenshot.

Basically, that way you see it...I want it to go:

Administrators
Test Administrators
Game Server Admins
Super Moderators
Moderators

I had it once so it was Admin Smod Mod...but now that we have multiple groups...is there any simple way to do this? I know I'll be editing some templates...I'm not worried about that..I just need to know what coding to use.

Here is the show groups coding:
Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[show_groups]</title>
</head>
<body>
$header
$navbar

<if condition="$moderatorbits">
<!-- moderators -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat" colspan="4">$vbphrase[moderators]</td>
</tr>
<tr>
	<td class="thead">&nbsp;</td>
	<td class="thead" width="50%">$vbphrase[username]<if condition="$show['locationfield']"> / $vbphrase[location_perm]</if></td>
	<td class="thead" width="50%">$vbphrase[forums]</td>
	<td class="thead">$vbphrase[contact]</td>
</tr>
$moderatorbits
</table>
<br />
<!-- end moderators -->
</if>

$usergroups

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
	<td width="100%">&nbsp;</td>
	<td>$forumjump</td>
</tr>
</table>

$footer
</body>
</html>
I believe that is the correct one.
Attached Images
File Type: jpg Show forum leaders.JPG (62.3 KB, 0 views)
Reply With Quote
  #2  
Old 12-06-2008, 07:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not the template you will have to modify to change the order, I think you will have to modify the actual php page in order to change the order that the usergroups are spit out.
Reply With Quote
  #3  
Old 12-06-2008, 07:16 PM
Mahar Mahar is offline
 
Join Date: Aug 2004
Location: Wisconsin
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ew that wont be fun... So, were talking forum root stuff?
Reply With Quote
  #4  
Old 12-06-2008, 07:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, we are talking showgroups.php stuff.
Reply With Quote
  #5  
Old 12-06-2008, 07:23 PM
Mahar Mahar is offline
 
Join Date: Aug 2004
Location: Wisconsin
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know.

That'll be a blast. You wouldn't happen to know exactly where I could find the coding to edit?

Sorry for being...all over the help forum
Reply With Quote
  #6  
Old 12-06-2008, 07:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you look at that file, you will see there are just two places where there are queries to get the users. The first is for all usergroups around line 97, the other is just for the moderatorbits around line 166. I would suggest turning off the option for the moderatorbits and then applying your ORDER BY FIND_IN_SET to the first query.
Reply With Quote
  #7  
Old 12-06-2008, 07:34 PM
Mahar Mahar is offline
 
Join Date: Aug 2004
Location: Wisconsin
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it solved.

Thanks Lynne for all of the help so far

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

I can't remember exactly what I've done but, I got a close enough result in the past by doing this:

Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[show_groups]</title>
</head>
<body>
$header
$navbar

Place Red coding here

<if condition="$moderatorbits">
<!-- moderators -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat" colspan="4">$vbphrase[moderators]</td>
</tr>
<tr>
	<td class="thead">&nbsp;</td>
	<td class="thead" width="50%">$vbphrase[username]<if condition="$show['locationfield']"> / $vbphrase[location_perm]</if></td>
	<td class="thead" width="50%">$vbphrase[forums]</td>
	<td class="thead">$vbphrase[contact]</td>
</tr>
$moderatorbits
</table>
<br />
<!-- end moderators -->
</if>

$usergroups

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
	<td width="100%">&nbsp;</td>
	<td>$forumjump</td>
</tr>
</table>

$footer
</body>
</html>
Find the coding $usergroups and place it under the $navbar code....That'll make it at least Administrators, Super Moderators, Moderators.
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:20 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.03792 seconds
  • Memory Usage 2,234KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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_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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete