php forum
php mysql forum
php mysql smarty
 
Topic Options
#313479 - 03/10/07 06:55 PM Little gifs next to name for group membership
ajwharton Offline
Lurker

Registered: 03/04/07
Posts: 2
On my board, we a toying with the idea of a "special group" that would have enhanced permissions. As part of that, I was wondering how hard it would be to have a special little gif a la the "A" for admin and "M" for moderator.

I am not averse to do a little code hackery, but am a PHP n00b (C* and Java mostly)

Top
#313487 - 03/11/07 06:43 AM Re: Little gifs next to name for group membership [Re: ajwharton]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Would be great.

One item we would like is a club flag for each member next to their name, depending upon which club their support.

So a very similar idea smile
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#313534 - 03/14/07 01:33 PM Re: Little gifs next to name for group membership [Re: Ian_W]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8372
Loc: Olympia, WA
This is something I'll be looking at for a future version to be in the stock code. The one stumbling block in my thought process on this is how to determine which flag to show if the member belongs to 2 groups and both have an image associated with it.

Say, I'm an admin and I'm also a member of Group A which has a gif associated with it. Do I display the admin gif or the Group A gif? One option is to display both, but that could get messy as some sites have users that belong to a large number of groups.
_________________________
StogieSmokers.com

Top
#313535 - 03/14/07 04:38 PM Re: Little gifs next to name for group membership [Re: Rick]
ajwharton Offline
Lurker

Registered: 03/04/07
Posts: 2
I guess for full support, you would have to have a way to mark a particular member's group as an "image group" and "there can only be one" (Highlander). Would be a PITA to support that DB constraint in code tho.

Top
#313538 - 03/14/07 05:23 PM Re: Little gifs next to name for group membership [Re: ajwharton]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5131
Loc: Portland, OR, USA
Rick, I have a sugguestion! Apply a weight field to the user groups, then if they overlap it'll take whichever has a higher weight for the icon...

Admin's would always be #1, Mods #2, then the admin could assign weights for 3+ to other fields...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#313563 - 03/16/07 07:11 AM Re: Little gifs next to name for group membership [Re: Gizmo]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Originally Posted By: Gizmo
Rick, I have a sugguestion! Apply a weight field to the user groups, then if they overlap it'll take whichever has a higher weight for the icon...

Admin's would always be #1, Mods #2, then the admin could assign weights for 3+ to other fields...


Good idea - but why not just show a drop down with images available to the user - therefore he could choose whichever icon he wishes and flick between them as he desired.

As long as users can still tell as to who the admins and mods are if they choose another group icon that they belong to - then it should work fine smile
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#313572 - 03/16/07 04:46 PM Re: Little gifs next to name for group membership [Re: Ian_W]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5131
Loc: Portland, OR, USA
Because, allowing users such freedoms is just asking for trouble... User from group a could choose group b's image, and vicea versa...

I like dealing with weights frown... Plus it'd allow 0 confusion for users; and would allow admins to choose exactly what they wanted users to show as...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#313578 - 03/16/07 09:45 PM Re: Little gifs next to name for group membership [Re: Gizmo]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
No - if they are not a member of group b - then they cannot choose group b - they would only see the groups that they belong to smile
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#313581 - 03/17/07 02:21 AM Re: Little gifs next to name for group membership [Re: Ian_W]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5131
Loc: Portland, OR, USA
Yeh but it'd lead to inconstancies, i think the admin should be able to choose which should be used in such cases; because you'll never know what ones you'll have clashing and when, so setting a weight will let you choose which groups are more important...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#313758 - 04/01/07 08:39 PM Re: Little gifs next to name for group membership [Re: Gizmo]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
* I've been dying for a way to show a unique image based on the user's group since 7 came out. In UBB6.5 I had members who paid to be in one of four special groups get a special icon that displayed below their custom title, but the way usergroups are set up in 7 is beyond my skillz to parse out and display in showflat. =(

Top
#313766 - 04/02/07 09:16 PM Re: Little gifs next to name for group membership [Re: Calpy]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
For a quick and dirty mod for an additional gif or 2 I'd think you could add additional if/then's in the section that writes out the admin and mod .gif's, eh?
_________________________
- Allen wavey
- What Drives You?

Top
#313934 - 04/23/07 05:49 PM Re: Little gifs next to name for group membership [Re: AllenAyres]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
Originally Posted By: AllenAyres
For a quick and dirty mod for an additional gif or 2 I'd think you could add additional if/then's in the section that writes out the admin and mod .gif's, eh?

I looked at doing that, but the admin and mod gifs are added based on "user status = admin" type things, nothing to do with groups. =(

Top


Moderator:  sirdude 
Who's Online
0 registered (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks