Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Sure very simply - backup your file first.

First we need to know the number of the group number you want to allow to see files.

We can do an SQL Query in your admin menu to find this:

SELECT * FROM w3t_Groups

That'll list all your groups. Note the number of the group you want to access files. Let's assume right now, it's group #5.

Now open and modify the download.php script.

Find this:
Code
<br />   $user = $userob -> authenticate("U_Groups");<br />



Change to this:
Code
<br />   $user = $userob -> authenticate("U_Groups");<br /><br />if (!strstr($user['U_Groups'],"-5-")) {<br />   $html -> not_right("You are not authorized to view files.",$Cat);<br />}<br />


Now only group 5 will be able to view files. Hope that helps.

Sponsored Links
Entire Thread
Subject Posted By Posted
Is there a way to ? Ben5150 07/31/2004 10:04 AM
Re: Is there a way to ? JoshPet 07/31/2004 10:23 AM
Re: Is there a way to ? Ben5150 07/31/2004 10:28 AM
Re: Is there a way to ? Ben5150 07/31/2004 7:15 PM
Re: Is there a way to ? ericgtr 07/31/2004 9:24 PM
Re: Is there a way to ? Ben5150 08/01/2004 12:24 AM
Re: Is there a way to ? ericgtr 08/01/2004 1:02 AM
Re: Is there a way to ? JoshPet 08/01/2004 2:32 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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2993
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 3
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
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)