php forum
php mysql forum
php mysql smarty
 
Topic Options
#224024 - 09/04/02 04:10 PM Show User Groups v1.0
Aglavalin Offline
Enthusiast

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

   Show User Groups v1.0 to Del.icio.us Add to del.icio.us
  Digg Show User Groups v1.0 Digg it
Mod Name / Version - Show User Groups v1.0<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<br /><br /><br />Someone had suggested this a while back, and I thought it would be useful on my site, so here is a generic version for everyone. I have not tested this on 6.1x yet, but will after I upgrade and I'll post any changes if any.


Attachments
55774-ShowUserGroups_v1.0.txt (11 downloads)


Top
#224025 - 09/04/02 09:54 PM Re: Show User Groups v1.0 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Great hack.. but I need one more feature. To show the group under the person's name when they post in forums. Shouldn't be too hard to add that as an option as well <img src="/forum/images/icons/smile.gif" alt="" />

Top
#224026 - 09/05/02 01:51 AM Re: Show User Groups v1.0 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
That would be similar, but would have to be in the showflat.php, showflat.tmpl, showthreaded.php and showthreaded.tmpl files at the very least. Much more of a hack, but it could use some of the same code. Let me think this one over fer a bit <img src="/forum/images/icons/smile.gif" alt="" />

Top
#224027 - 09/05/02 02:42 AM Re: Show User Groups v1.0 [Re: neuron]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
msula, do you need more than one group to show? Will there need to be a graphic associated with each group? (I kinda like this idea) How about a group hierarchy added so only the 'highest rated/ranking' group will show? Damn, now ya got me thinking too much here! haha

Top
#224028 - 09/05/02 07:54 AM Re: Show User Groups v1.0 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Here's my situation. I have 4 groups really. The basic user group, then a Bronze Member, Silver Member, and Gold Member (haha, I said gold member)<br /><br />What this correlates to are the different levels of donations people have sent to the site. This gives them added features, but it would be REALLY nice to have this publically displayed, via the title and/or small graphic. This would not only be just cool, but it would help stimulate more donations because people would want this new title <img src="/forum/images/icons/smile.gif" alt="" />

Top
#224029 - 09/05/02 09:56 AM Re: Show User Groups v1.0 [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
If you want an image displayed by group.... this hack of mine would do it for you. It would just need to be tweaked to display on the left instead of with the subject line. <br /> <br />I'm going to be doing something like this on my site. So supporters will have an "image" associated with their profile and posts.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224030 - 09/05/02 12:47 PM Re: Show User Groups v1.0 [Re: Daine]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Guess I could use something to display members of one of my board's groups too. I'll make it a seperate hack since it will be on different pages from the user list.

Top
#224031 - 09/05/02 03:44 PM Re: Show User Groups v1.0 [Re: neuron]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Well, I'm half way done. Got a group of choice showing on the showflat.php but have not started on the showthreaded yet. Then I gotta write up some directions. Maybe I'll get this done tonight or by tomorrow. I am inserting a small 15x5 graphic in front of the group name too on my site. Looks nice <img src="/forum/images/icons/smile.gif" alt="" />

Top
#224032 - 09/05/02 08:05 PM Re: Show User Groups v1.0 [Re: neuron]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
OK, this extra hack is done and available here. <img src="/forum/images/icons/smile.gif" alt="" />

Top
#224033 - 09/11/02 09:19 AM Re: Show User Groups v1.0 [Re: neuron]
spiffy Offline
Member

Registered: 03/28/00
Posts: 91
I'm getting odd results - I have 19 groups and when I put someone into say group 10 which is IMSA, they don't show as that they show as a combination of group1 + 0. As group 1 is Administrators they show up as Administrators0 instead of IMSA. Anyone had this prob, anyone know how to fix it?<br /><br />I tried commenting out or having a space etc for 1 below but that just cahnges it from Admistrator0 to Administrator which is still not IMSA.<br /><br /> <pre><font class="small">code:</font><hr> // 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","Administrator",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("2","Moderator",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("3","User",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("4","Guest",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("5","Annan",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("6","Carron",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("7","Barr",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("8","Dee",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("9","Staff",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("10","IMSA",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("11","IMSB",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("12","CIIM",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("13","EBiz",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("14","EComm",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("15","IBM",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("16","SFIM",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("17","ICom",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("18","Emod",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("19","Student",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("-"," ",$userrow[$i]['Group']);<br />// end Show User Groups </pre><hr>

Top
#224034 - 09/11/02 03:41 PM Re: Show User Groups v1.0 [Re: maksimum]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Hmm, try placing the 0-9 groups last in line, so the double digit groups get replaced first, then they should not get split up. And if you have triple digit groups then they should go before the double digit posts. Sorry, but I don't have as many boards as you to try this myself, but I think this reordering should work. Please let me know how it goes!

Top
#224035 - 09/11/02 05:23 PM Re: Show User Groups v1.0 [Re: neuron]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
I did try this reordering out and it seems to do the job. Make sure the forums are listed from largest number of digits to least. i.e. 3 digit forums, 2 digit forums, 1 digit forums. This should ensure that the complete forum number is replaced with the name, not just part of it. I'll post corrected instructions soon.

Top
#224036 - 09/12/02 07:45 PM Re: Show User Groups v1.0 [Re: neuron]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
This hack works under 6.1 and you can find final directions in the finished mods forum here.<br /><br />Mods, please close this thread.

Top


Who's Online
0 Registered (), 22 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 01:36 PM
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Newest Members
Kevs, pisa666, ghengis317, NitroX, Dogan
13346 Registered Users
Top Posters Last 30 Days
AllenAyres 11
blaaskaak 6
Chris Bale 4
Gizmo 4
FREAK1 4
Ian_W 4
tackaberry 4

 

 

 
fusionbb message board php hacks