Previous Thread
Next Thread
Print Thread
Rate Thread
#220737 07/06/2002 10:29 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Ok, since I just started a membership area I have created 3 new groups "Member", "Silver Member" and "Gold Member".

I have added about 20 or so people to these various groups, and removed them from the default "User" group. But a problem. When they are online and I visit "Who's Online" it is still showing them as a User. Even in the admin control panel, look:

[]http://www.msu.edu/~vohwink1/groups2.gif[/]

and this is the setting for the same person:

[]http://www.msu.edu/~vohwink1/groups1.gif[/]

Hmm?

[EDIT] Also it says User on one screen and Users on another screen Something isn't right.

Last edited by msula; 07/06/2002 10:30 PM.
Sponsored Links
palmen #220738 07/06/2002 10:53 PM
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
They will always be a User there, unless they are a Moderator ar Administrator. That is how I understand it, and how my 6.0.2 is working.

palmen #220739 07/06/2002 10:59 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
That's their status (U_Status) and not what group they belong to. Administrator, Moderator and User are the 3 status levels.

I'm not exactly sure what it would take to display the groups or perhaps set custom status levels.

palmen #220740 07/06/2002 11:04 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I will be looking into this further at some point. I had wondered once or twice before if I could set specific users to have specific options available to them. For IIP I plan on adding a link directory and it would be nice to designate admins for this only. Their status would be Link Master

sjsaunders #220741 07/06/2002 11:14 PM
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Umm, certain groups are secret, and having them show up on this list would not be a good thing. For some boards at least, hehe

I would suggest that any change to this have an option to not display certain groups to allow for this.

Sponsored Links
sjsaunders #220742 07/06/2002 11:14 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Ahh.. I understand. Hrmm. I would really like to see that shown as what group they are in, since if they are in an admin/mod group it will show that, why not other groups as well? Because I wanted to have a specific color for each group, but I see how it works now. I had just assumed it was displaying the group and not the U_Status or whatever. My mistake.

palmen #220743 07/06/2002 11:15 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
An idea:

Create a test user and add the test user to one of the groups.

Now run this query:

UPDATE w3t_Users
SET U_Status = 'Silver Member'
WHERE U_Username = 'TestUserName'



Now your test user's status should be "Silver Member"

Now log in as the test user and try posting and whatnot to see if that custom status messes with anything. LoL

sjsaunders #220744 07/06/2002 11:18 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Dont change their status if they are an Administrator or Moderator... lol they will not be happy with you.

sjsaunders #220745 07/06/2002 11:33 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Yes, that does work.

But I'm not going to be doing that for each individual user, especially with more to be changing groups everyday!

palmen #220746 07/06/2002 11:38 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
You can use this query to change all users of a particular group:

UPDATE w3t_Users
SET U_Status = 'Silver Member'
WHERE U_Groups LIKE '%-5-%'


Or what ever group number their custom group is.

Sponsored Links
sjsaunders #220747 07/06/2002 11:40 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I see I see. So since that is so easy, I didn't bother to look, but could the color of their names be set in the same way, or is that not stored in the DB?

palmen #220748 07/06/2002 11:42 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yes their color could be set the same way. The field name is U_Color I believe.

sjsaunders #220749 07/06/2002 11:44 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I've learned enough in this thread to make my own hack.. lol but I have too much other stuff to do

Thanks Dave!

palmen #220750 07/06/2002 11:45 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Your welcome.

palmen #220751 07/06/2002 11:45 PM
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Perhaps a hack to add a new column which would show all the groups they belong to? With options to 'hide' checked groups? This seems to be the least intrusive and would just read existing db info which is already saved for each user, and just filtering out any unwanted displays before generating the user list.

neuron #220752 07/06/2002 11:49 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Now that went over my head.. but his idea makes sense, just more than I can tackle

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Ack! No, no, no Don't change the U_Status field! There are checks throughout the script that expect it to be one of the 3 levels, administrator, moderator or user. These are basically permission level checks. Changing these would be a bad idea


UBB.threads Developer
Sally #220754 07/07/2002 1:42 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
LoL I had wondered. But the only checks I recall seeing are for Administrators or Moderators. If they are neither of those then they are considered a User?

I don't think I have seen " if ($user['U_Status'] == "User") {do this} " anywhere. LoL but hey I have a hard time remembering where everything is.

I always thought that if the person didn't check as an Administrator or Moderator that they must be something else, a User, even if the status doesn't say so?




Anyhow... before I get lost, LoL

Rick I would like to add one or two types of users such as a Link Admin or something like that that only has the ability to manage link related information. Let me know your thoughts.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
luckily I was too tired to change all the U_Status on the different groups So I guess I won't do that now. Thanks for the heads up.

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
There's actually a check in ubbt.inc.php that checks to see if the Status isn't "User" This could probably get changed but would cause some problems until it is.

Eventually we need to expand the permissions thing. It's fairly limited with the 3 status types so not sure if we need to work off the U_Status field or maybe use a new field to track various permissions, custom permissions, etc. Doesn't do much good for your question, but I'm not really sure how to handle that one currently


UBB.threads Developer
Sally #220757 07/07/2002 3:53 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
[]
Doesn't do much good for your question, but I'm not really sure how to handle that one currently




LoL no problem. I'm a ways out from building the integrated link directory. What you did for .threads 5.5 > 6.0 is basicly what I am doing for IIP 5.0 > 5.0? LoL may need a new number after this. In any case it will be much easier to set up and manage.


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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)