Hi all!
This looks like exactly what i need!
The only problem is I just spent an hour editing the php & template and then trying to get them to work without much luck! I don't know much about doing this kind of thing as you could probably guess.
I changed all the 'Test' areas to 'MORE'
I added the php to the root
I created the template and added 'MORE' where applicable
I made sure the global path was correct
and nothing worked! Have I overlooked something!
Quote:
Originally Posted by dpakman91
alright, hopefully someone can help me with this:
i have some large files i want to make available to certain usergroups, but not other. the files are way too large to upload as "attachments" with vb so i would have to upload them via ftp and then just post a link in a thread...of course this means the only way to prevent people from downloading it is to prevent them from seeing the thread at all, which is not my intention.
with this new way of making a vb page, is there any way to do what i am trying to do?
any help would be great.
|
Quote:
Originally Posted by Gary King
Try something like:
PHP Code:
<?php
require_once('./global.php');
if ($_REQUEST[filename])
{
if ($bbuserinfo[usergroupid] == 6)
{
header("Location: $_REQUEST[filename]");
}
}
?>
Be sure to change the path to the global.php and the usergroupid as well (currently it's 6 for admins only).
Also, save this code in a file such as download.php and then you can use the file by linking to it like http://www.example.com/forum/downloa...=something.php which will download www.examlpe.com/forum/files/something.php if the user is an administrator.
|
The above is exactly what I want to do. Can someone tell me where I should add the new php code please. Also how would I FTP into these pages...just a little confused at the moment!
Thanks