Previous Thread
Next Thread
Print Thread
Rate Thread
#216315 05/03/2002 3:54 PM
Joined: Dec 1999
Posts: 158
Enthusiast
Enthusiast
Offline
Joined: Dec 1999
Posts: 158
today I created a new group called "producer", I added 4 users to this group.
a little later on, I wanted to check if I forgot someone, so I used Show / Edit Users - Search for Group - producer.

it displayed the 4 names I have chosen, plus one user that was actually called "producer".
I checked the user, chose "edit groups" and he had a checkmark next to the newly group "producer".
It was an old user which I personally have never seen, who wasn't online since 2001/06/08 16:11, and I have definately NOT added him to this group.

I tried to reproduce the error by creating new groups, named after existing usernames, but it didn't work.

Sponsored Links
Saxeus #216316 05/18/2002 8:33 PM
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
There was an error in 5.5.1 [:"red"]showusers.php[/] and [:"red"]showcurrentgroup.php[/].

For [:"red"]showcurrentgroup.php[/]
In this section (around line 63):
code:
// ----------------
// Which type of search are we doing? added by Matt Reinfeldt 11/29/99



find this line (around line 175):
code:
elseif ( $Menu1 == 'group' ) {
$part = "%"."$Number"."%";
$part_q = addslashes($part);



and change it to:
code:

elseif ( $Menu1 == 'group' ) {
$part = "%[:"red"]-[/]"."$Number"." [:"red"]-[/]%";
$part_q = addslashes($part);



The line numbers are basically the same for [:"red"]showusers.php[/].

The error causes the query to the mySQL to pull groups containing a specific number, and not just groups that match a specific number. For example, the Admin. group is group -1-. We had a group 11 that contained banned members, and imagine our surprise when a query for the Admin. group included anyone who'd ever been banned. It's easy enough to fix though. (My apologies if I got any of the above terminology incorrect. The very little knowledge I have of any of this stuff has come from installing the hacks posted here on our board. ) The error has no effect on which users see what, it only affects the "Show Groups" function.


[:"red"]Lisa[/]

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2217
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 28
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
Morgan 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 20261026)