Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 100
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 100
This section in adduser.php seems to be where it decides permissions to post attachments? Yes? No?

// -------------------------------------------------------------------------
// If we are allowing file attachments and we are dealing with a Mozilla 4+
// browser then we let them attach files. Also we need to make sure they
// are not posting as Anon.
if( ($Attach == "On") && ($Reged == "y")) {
$attachfile = "<br /><br />{$ubbt_lang['YES_FILE2']}";
$fileinput ="<input type="file" name="userfile" accept="*" class="formboxes" size="60" />";
}


This line:
if( ($Attach == "On") && ($Reged == "y"))


Im not sure how to do it, but adding more arguements to it will do it right?

Like if it said "if attach is on, and reged is yes, AND group is 5 OR 6 OR 7 OR 8" then it is allowed???

Can someone who knows php more than me make/modify that line of code so I can try it?

Will it work the way I think it will, only allowing users in those groups to post attachments?

It looks like the same if/then line I am asking for help on might need to be added/edited to other parts of this mod too, whereever it says the if reg'd and attach=on?

This would be great for you guys out there like myself who run donation/supporter software for supporting members.

Deej

Sponsored Links
Entire Thread
Subject Posted By Posted
Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 Sheall 05/12/2004 3:51 AM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 AllenAyres 05/12/2004 6:19 AM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 smilesforu 05/12/2004 9:05 PM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 Gregori 05/17/2004 5:29 PM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 Sheall 05/19/2004 2:26 PM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 Deejay_dup1 05/29/2004 9:49 PM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 Deejay_dup1 05/30/2004 7:25 AM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 Deejay_dup1 06/03/2004 5:39 AM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 smilesforu 06/09/2004 11:07 PM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 Deejay_dup1 06/10/2004 1:01 AM
Re: Finished-[6.3-6.4] Per-Forum Attachments - Version 1.0 Sheall 07/22/2004 12:06 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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)