Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Mod Name / Version - Show User Groups v1.1

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.

Example - http://www.newoutriders.org/ubbtest Login: test Password: test

Pre-requisites - none

Author - Aglavalin, aka Steve Stout

Files Altered - showmembers.php, showmembers.tmpl, /languages/english/showmembers.php

Database Altered - no

New Files - none

Note: This is a simple hack. Works fine on 6.0.x and 6.1


Slightly updated from v1.0 with corrected directions.
Attachments
56539-ShowUserGroups_v1.1.txt (0 Bytes, 64 downloads)

Sponsored Links
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Hmm... I've installed it, but do not see anything showing up

Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
This is working for me (and was fairly simple to install -- I was worried about putting in all the different groups). The only problem is that the groups are being listed one after the other, like this:

code:

Group:

Group A Group B
Group C Group D



and it seems like it would look better if it went:
code:

Group:

Group A
Group B
Group C



Can I get it to go to the next line after each group is listed, or would it just be too difficult?


[:"red"]Lisa[/]
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Lisa,

I'm not 100% sure... I don't have this installed, but I looked at it.

I wonder if changing this:
code:



// Show User Groups Hack
$userrow[$i]['Group'] = $Groups;
$userrow[$i]['Group'] = str_replace("0","",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("1","Administrators",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("2","Moderators",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("3","Users",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("4","Guests",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("-"," ",$userrow[$i]['Group']);
// end Show User Groups Hack



to this:
code:



// Show User Groups Hack
$userrow[$i]['Group'] = $Groups;
$userrow[$i]['Group'] = str_replace("0","",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("1","Administrators <br />",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("2","Moderators<br />",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("3","Users<br />",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("4","Guests<br />",$userrow[$i]['Group']);
$userrow[$i]['Group'] = str_replace("-"," ",$userrow[$i]['Group']);
// end Show User Groups Hack



I think that might do the trick.

Don't shoot me if it doesn't though.

Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
Oh great, now it's all broke!

Ok, not quite. It made it print "Users <br /> instead of "Users". I appreciate the effort though.


[:"red"]Lisa[/]
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369


Whoops! Sorry.

Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
It's just the test site, no users. No permanent harm done.


[:"red"]Lisa[/]
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Mine is still broke.. and my User List now gives parse errors

Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Lisa, ya might be able to get it to work by controlling the width of that column.

msula, what errors are you getting exactly?

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
None now. Lisa sent a copy of her showmembers file, and I saw I was missing just one tiny little thing

The only thing is, I installed this hack thinking it was something different. I thought this was the hack that displayed the group under their name and above their avatar in the post list? Did you do that hack or did someone else? That is what I'm really looking for.

Thanks.

Sponsored Links
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Yeah I did that one too, it can be found here.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Thanks. Although, that one is not working Have it set up.. just nothing is showing under the names.

Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Sounds like maybe you did not add in the group name, or the group number corectly maybe?

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I will take my trouble shooting to the appropriate thread, thanks!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)