 |
 |
 |
 |
#224545 - 09/12/02 07:43 PM
[6.0.x / 6.1.x] Show User Groups v1.1
|
Enthusiast
Registered: 06/18/02
Posts: 394
Loc: Southern California
|
Mod Name / Version - Show User Groups v1.1<br /><br /> Description - Adds a column to the User List (showmembers.php page) which will list the board groups each registered user is in. Groups can be hidden or shown with custom names.<br /><br /> Example - http://www.newoutriders.org/ubbtest Login: test Password: test<br /><br /> Pre-requisites - none<br /><br /> Author - Aglavalin, aka Steve Stout<br /><br /> Files Altered - showmembers.php, showmembers.tmpl, /languages/english/showmembers.php<br /><br /> Database Altered - no <br /><br /> New Files - none <br /><br />Note: This is a simple hack. Works fine on 6.0.x and 6.1<br /><br /><br />Slightly updated from v1.0 with corrected directions.
Attachments
56539-ShowUserGroups_v1.1.txt (31 downloads)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#224548 - 09/28/02 01:32 PM
Re: Mod Name / Version - Show User Groups v1.1
[Re: JacquiL]
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
Lisa,<br /><br />I'm not 100% sure... I don't have this installed, but I looked at it.<br /><br />I wonder if changing this:<br /><pre><font class="small">code:</font><hr><br /><br /><br />// Show User Groups Hack<br /> $userrow[$i]['Group'] = $Groups;<br /> $userrow[$i]['Group'] = str_replace("0","",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("1","Administrators",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("2","Moderators",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("3","Users",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("4","Guests",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("-"," ",$userrow[$i]['Group']);<br />// end Show User Groups Hack</pre><hr><br /><br />to this:<br /><pre><font class="small">code:</font><hr><br /><br /><br />// Show User Groups Hack<br /> $userrow[$i]['Group'] = $Groups;<br /> $userrow[$i]['Group'] = str_replace("0","",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("1","Administrators <br />",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("2","Moderators<br />",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("3","Users<br />",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("4","Guests<br />",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("-"," ",$userrow[$i]['Group']);<br />// end Show User Groups Hack</pre><hr><br /><br />I think that might do the trick.<br /><br />Don't shoot me if it doesn't though. <img src="/forum/images/graemlins/smile.gif" alt="" />
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|