php forum
php mysql forum
php mysql smarty
 
Topic Options
#210958 - 07/21/01 11:03 PM Additional user titles by group?
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
Any ideas on how to do this? I created a new group members and I would like to output the text "members" under the titles of the users in this new group. Is there a way to do it manually if that would make it easier?<br /><br />From this :<br />coloradok5<br />(Trail Boss)<br />07/18/01 07:33 AM<br />170.207.170.135<br /><br />To this:<br />coloradok5<br />(Trail Boss)<br />([:red]Member</font color=red>)<br />07/18/01 07:33 AM<br />170.207.170.135<br /><br />

Top
#210959 - 07/22/01 09:05 AM Re: Additional user titles by group? [Re: bisbell]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8372
Loc: Olympia, WA
It could be done. You'd need to find out the group number assigned for that group. And then where you want that group name to be displayed you would need something like this:<br /><br />if (ereg("-$groupnumber-",$user'[U_Groups'])) {<br /> echo "(groupname)";<br />}<P ID="edit"><FONT SIZE=-1><EM>Edited by Scream on 07/22/01 09:06 AM (server time).</EM></FONT></P>
_________________________
StogieSmokers.com

Top
#210960 - 07/22/01 03:36 PM Re: Additional user titles by group? [Re: Sally]
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
OK, my group (G_Id) number is 6<br /><br />I can not get the code below to output the text, is this correct?<br /><br />if (ereg("-$6-",$user'[U_Groups'])) {<br />echo "(member)";<br />}<br /><br />I am adding it to showthreaded.php is this correct for displaying like my original example?<br />Also should groupnumber be G_Id instead?<br /><br />TIA<br /><br />

Top
#210961 - 07/22/01 03:51 PM Re: Additional user titles by group? [Re: bisbell]
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
oops, I need it in showflat.php<br /><br />

Top
#210962 - 07/24/01 08:13 AM Re: Additional user titles by group? [Re: bisbell]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8372
Loc: Olympia, WA
You need to take out the $ before the 6.[]/testimages/icons/wink.gif[/]<br /><br />-------------------<br />Scream<br />WWWThreads
_________________________
StogieSmokers.com

Top
#210963 - 07/24/01 08:36 AM Re: Additional user titles by group? [Re: Sally]
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
I get this error "Parse error: parse error in /home/.eleusisblender/blazer90/coloradok5.com/forums/showflat.php on line 743" with this code.<br /><br />if (ereg("-6-",$user'[U_Groups'])) {<br />echo "(groupname)";<br />}<br /><br />

Top
#210964 - 07/24/01 08:50 AM Re: Additional user titles by group? [Re: bisbell]
poil Offline
Enthusiast

Registered: 08/14/00
Posts: 492
Loc: poilville, in the republic of ...
if (ereg("-6-",$user'[U_Groups'])) {<br />echo "(groupname)";<br />}<br />should be ?<br />if (ereg("-6-",$user['U_Groups'])) {<br />echo "(groupname)";<br />}<br />but that might not work either you could try either:<br />if (ereg("-6-",$user[U_Groups])) {<br />echo "(groupname)";<br />}<br />or just doing<br />$groups = $user[U_Groups];<br />if (ereg("-6-",$groups)) {<br />echo "(groupname)";<br />}<br /><br />&lt;a target=&amp;quot;_blank&amp;quot; href=http://www.extremeforums.org/msg/announce/221.html&gt;http://www.extremeforums.org/msg/announce/221.html&lt;/a&gt;<P ID="edit"><FONT class="small"><EM>Edited by poil on 07/24/01 08:52 AM.</EM></FONT></P>
_________________________
Extreme!!!

Top
#210965 - 07/24/01 09:23 AM Re: Additional user titles by group? [Re: vent]
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
Thanks for the help, getting closer, both the last to snippets have the same result: The "groupname" displays under all users no matter what the group only for members of group 6.<br />What I would like is for "groupname" to be displayed to everyone only if they are a member of group 6.<br /><br />Any ideas?<br /><br />

Top
#210966 - 07/24/01 11:23 AM Re: Additional user titles by group? [Re: vent]
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
Would it be easier if I handled the "member" group like the moderator and admin groups, that would be cool?<br /><br />

Top


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

Latest Posts
Spell Check [beta]
by Bill B
Today at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Today at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Today at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Today at 09:33 AM
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
New Mods
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
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks