Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
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?

From this :
coloradok5
(Trail Boss)
07/18/01 07:33 AM
170.207.170.135

To this:
coloradok5
(Trail Boss)
([:red]Member)
07/18/01 07:33 AM
170.207.170.135


Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
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:

if (ereg("-$groupnumber-",$user'[U_Groups'])) {
echo "(groupname)";
}

Edited by Scream on 07/22/01 09:06 AM (server time).



UBB.threads Developer
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
OK, my group (G_Id) number is 6

I can not get the code below to output the text, is this correct?

if (ereg("-$6-",$user'[U_Groups'])) {
echo "(member)";
}

I am adding it to showthreaded.php is this correct for displaying like my original example?
Also should groupnumber be G_Id instead?

TIA


Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
oops, I need it in showflat.php


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
You need to take out the $ before the 6.[]/testimages/icons/wink.gif[/]


UBB.threads Developer
Sponsored Links
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
I get this error "Parse error: parse error in /home/.eleusisblender/blazer90/coloradok5.com/forums/showflat.php on line 743" with this code.

if (ereg("-6-",$user'[U_Groups'])) {
echo "(groupname)";
}


Joined: Aug 2000
Posts: 262
Enthusiast
Enthusiast
Offline
Joined: Aug 2000
Posts: 262
if (ereg("-6-",$user'[U_Groups'])) {
echo "(groupname)";
}
should be ?
if (ereg("-6-",$user['U_Groups'])) {
echo "(groupname)";
}
but that might not work either you could try either:
if (ereg("-6-",$user[U_Groups])) {
echo "(groupname)";
}
or just doing
$groups = $user[U_Groups];
if (ereg("-6-",$groups)) {
echo "(groupname)";
}

<a target="_blank" href=http://www.extremeforums.org/msg/announce/221.html>http://www.extremeforums.org/msg/announce/221.html</a>

Edited by poil on 07/24/01 08:52 AM.


Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
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.
What I would like is for "groupname" to be displayed to everyone only if they are a member of group 6.

Any ideas?


Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Would it be easier if I handled the "member" group like the moderator and admin groups, that would be cool?



Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 696
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)