Previous Thread
Next Thread
Print Thread
Rate Thread
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[/]
Sponsored Links
Entire Thread
Subject Posted By Posted
5.5.1 groups flint 05/03/2002 11:54 PM
Re: 5.5.1 groups Lisa_P 05/19/2002 4:33 AM

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)