php forum
php mysql forum
php mysql smarty
 
Topic Options
#235830 - 02/10/03 11:00 AM display user group under their name/avatar
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I know there was a hack similar to this previously, but since 6.2 it hasn't been updated, and I'm not one to just blindly try it to see if it works because I don't have the time to tweak it.<br /><br />But really, user groups are a very major part of my community, so this could be something really used. I don't need group specific graphics or anything, just a simple "Gold Member" under their avatar would be all.

Top
#235831 - 02/10/03 10:25 PM Re: display user group under their name/avatar [Re: palmen]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Are you looking to display this in the showflat/showthreaded scripts or just the profiles? It shouldn't be to hard to do since the users table is queried anyhow. Will also need to modify the templates to show the info.<br /><br />
_________________________
~Dave
ChattersOnline.com

Top
#235832 - 02/10/03 10:37 PM Re: display user group under their name/avatar [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Oops... I missed this Jeremy.<br /><br />This is a short hop from the user group status flags thing I did.<br /><br />Clarify a bit and I could pull it together easily.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235833 - 02/10/03 10:55 PM Re: display user group under their name/avatar [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
sorry, should clarify, in the showflat and showthreaded. Could also be shown in the profile, but that isn't as important.<br /><br />IMO that should be a standard feature, or at least an option to turn on and off, since I know other software has this ability <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#235834 - 02/10/03 11:38 PM Re: display user group under their name/avatar [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
OK - there are probably more simple ways to do this... using a query to get the group name etc..... I wasn't sure how to deal with multiple groups, etc... <br /> <br />This is down and dirty, simple... knowing you want to note everyone as either Bronze, Silver, or Gold. <br /> <br />I haven't tested.... but it should be fine. Just a quick hop from the profile status flags. <br /> <br />Instructions attached. Let me know how it works for you. <br /> <br /><img src="/forum/images/graemlins/smile.gif" alt="" /> Josh


Attachments
68329-groupname.txt (101 downloads)



Edited by JoshPet (02/12/03 07:41 PM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235835 - 02/11/03 12:24 AM Re: display user group under their name/avatar [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
It must be close Josh... but something isn't quite right <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />I adjusted the appropriate group numbers, and I also wanted it to display under the avatar, so I put it below the Picture area in the template. No problem. <br /><br />But when I view the forums, members who should have a group listed, it has a blank space, but no text displays. So I can tell it is detecting they have a group and trying to display it, but for some reason nothing is showing up is all.

Top
#235836 - 02/11/03 12:32 AM Re: display user group under their name/avatar [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Is it a problem in showflat or showthreaded?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235837 - 02/11/03 09:09 AM Re: display user group under their name/avatar [Re: Daine]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Sorry to barge in here - but wouldn't it be best if we moved this thread in the VB6 Mods board since Josh made it a mod?
_________________________
Nikos

Top
#235838 - 02/11/03 09:48 AM Re: display user group under their name/avatar [Re: Hal_dup2]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Josh, I only applied it to the showflat.php/tmpl files first, to see if it worked. I can apply it to threaded and see if that works, might help narrow it down.

Top
#235839 - 02/12/03 07:43 PM Re: display user group under their name/avatar [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Jeremy, <br /><br />Try my attachment above again. <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />I had something in the wrong place... so after I defined it, it got redefined as empty. <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />Should work now. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235840 - 02/13/03 05:35 PM Re: display user group under their name/avatar [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hey Josh, sorry I didn't get back to this sooner. It does work just fine now. Didn't mean to leave you hanging,but its been an insane week. Thanks for the good work <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#235841 - 02/13/03 05:37 PM Re: display user group under their name/avatar [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I understand.... took me a day to get back to looking at it. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235842 - 03/25/03 01:49 AM Re: display user group under their name/avatar [Re: Daine]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
What is the Mysql command to see what numbers the usergroups are? Would like to put this one to work on my board. Thanks..

Top
#235843 - 03/25/03 01:56 AM Re: display user group under their name/avatar [Re: Kelly]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
SELECT *<br />FROM w3t_Groups
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235844 - 03/25/03 02:06 AM Re: display user group under their name/avatar [Re: Daine]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Thanks Msula for idea was hoping to do something like this for a long time too. Josh nice mod...just need to install <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#235845 - 06/11/03 10:12 AM Re: display user group under their name/avatar [Re: Kelly]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hey Josh.. just wondering if this mod works with 6.3, and if so, it should be added to the mod index <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#235846 - 01/11/04 02:18 AM Re: display user group under their name/avatar [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top


Top Posters Last 30 Days
AllenAyres 63
Gizmo 27
sirdude 24
Zarzal 12
blaaskaak 10
tackaberry 4
winter 3
Who's Online
1 Registered (AllenAyres), 35 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
iPhone 3G
by AllenAyres
07/23/08 09:59 PM
[7.x] [Beta] Purge Welcome Messages
by Gizmo
07/23/08 06:58 PM
Team UBBDev Rides Again!
by AllenAyres
07/23/08 03:23 PM
User Authentication Class
by Gizmo
07/21/08 07:07 PM
Auto repair table
by blaaskaak
07/19/08 06:16 PM
[7.3.x] ubb.links
by AllenAyres
07/18/08 05:09 PM
ubb.social
by willing
07/17/08 06:29 PM
New Mods
[7.3+] CustomTag - Photobucket Slideshow
by Gizmo
07/12/08 11:14 AM
[7.3.x] Copy forum permissions
by blaaskaak
07/09/08 02:37 PM
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
Newest Members
nixadmin, Stanley, NazzaN, mmem700, Tyler
13310 Registered Users

 

 

 
fusionbb message board php hacks