php forum
php mysql forum
php mysql smarty
 
Topic Options
#224545 - 09/12/02 07:43 PM [6.0.x / 6.1.x] Show User Groups v1.1
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California

   [6.0.x / 6.1.x] Show User Groups v1.1 to Del.icio.us Add to del.icio.us
  Digg [6.0.x / 6.1.x] Show User Groups v1.1 Digg it
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 (30 downloads)


Top
#224546 - 09/28/02 12:36 AM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hmm... I've installed it, but do not see anything showing up <img src="/forum/images/graemlins/frown.gif" alt="" />

Top
#224547 - 09/28/02 01:19 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
This is working for me (and was fairly simple to install -- I was worried about putting in all the different groups). <img src="/forum/images/graemlins/smile.gif" alt="" /> The only problem is that the groups are being listed one after the other, like this:<br /><br /><pre><font class="small">code:</font><hr><br />Group:<br /><br />Group A Group B<br />Group C Group D<br /></pre><hr><br /><br />and it seems like it would look better if it went:<br /><pre><font class="small">code:</font><hr><br />Group:<br /><br />Group A<br />Group B<br />Group C<br /></pre><hr><br /><br />Can I get it to go to the next line after each group is listed, or would it just be too difficult?
_________________________
[:"red"]Lisa[/]

Top
#224548 - 09/28/02 01:32 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: JacquiL]
JoshPet Offline
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="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224549 - 09/28/02 02:15 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: Daine]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
<img src="/forum/images/graemlins/mad.gif" alt="" /> Oh great, now it's all broke!<br /><br /> <img src="/forum/images/graemlins/tongue.gif" alt="" /> Ok, not quite. <img src="/forum/images/graemlins/wink.gif" alt="" /> It made it print "Users <br /> instead of "Users". <img src="/forum/images/graemlins/laugh.gif" alt="" /> I appreciate the effort though. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
[:"red"]Lisa[/]

Top
#224550 - 09/28/02 02:25 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: JacquiL]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
<img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />Whoops! <img src="/forum/images/graemlins/tongue.gif" alt="" /> Sorry. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224551 - 09/28/02 02:28 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: Daine]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
It's just the test site, no users. No permanent harm done. <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
[:"red"]Lisa[/]

Top
#224552 - 09/28/02 03:48 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: JacquiL]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Mine is still broke.. and my User List now gives parse errors <img src="/forum/images/graemlins/frown.gif" alt="" />

Top
#224553 - 09/28/02 07:03 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Lisa, ya might be able to get it to work by controlling the width of that column.<br /><br />msula, what errors are you getting exactly?

Top
#224554 - 09/28/02 07:05 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
None now. Lisa sent a copy of her showmembers file, and I saw I was missing just one tiny little thing <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />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. <br /><br />Thanks.

Top
#224555 - 09/28/02 07:10 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Yeah I did that one too, it can be found here.

Top
#224556 - 09/28/02 07:34 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Thanks. Although, that one is not working <img src="/forum/images/graemlins/confused.gif" alt="" /> Have it set up.. just nothing is showing under the names.

Top
#224557 - 09/29/02 12:30 AM Re: Mod Name / Version - Show User Groups v1.1 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Sounds like maybe you did not add in the group name, or the group number corectly maybe?

Top
#224558 - 09/29/02 08:40 AM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I will take my trouble shooting to the appropriate thread, thanks!

Top


Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
tackaberry 1
Who's Online
0 Registered (), 21 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Yesterday at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks