Previous Thread
Next Thread
Print Thread
Rate Thread
#277477 07/31/2004 2:04 AM
Joined: Jun 2003
Posts: 14
Newbie
Newbie
Offline
Joined: Jun 2003
Posts: 14
to have assign group to just download files and not the whole user list? what I mean is there a way for only the assign group to see downloads files but not a user that is not part of that group?
does this make sense? : )

Sponsored Links
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.

Joined: Jun 2003
Posts: 14
Newbie
Newbie
Offline
Joined: Jun 2003
Posts: 14
BIG THANK YOU, TO YOU JOSH

Joined: Jun 2003
Posts: 14
Newbie
Newbie
Offline
Joined: Jun 2003
Posts: 14
Hey Josh got a error with this one says some like error on line 30 or 38 is there a typo somewhere on the script you gave:)

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Ben, here are the official instructions.
https://www.ubbdev.com/forum/showflat.php/Number/78263

Sponsored Links
Joined: Jun 2003
Posts: 14
Newbie
Newbie
Offline
Joined: Jun 2003
Posts: 14
thanks Eric Ill check it out didnt know you was part of this site

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Sure those instructions date back to 6.3 but should work okay for 6.4 I am using it as well.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I forgot that I'd posted that. But the above should be correct. Maybe the specific error would help.


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)