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.
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?
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
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.
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.