PDA

View Full Version : is it possible too....


blaze
09-11-2002, 07:40 PM
is it possible to have downloads on the site but set the downloads so only forum memebers could only download it... and also i posted this question a few thousand times but it seems like no one dont want to ansewer this question but how will i be able to take the border out of the catagory stripe area

blaze
09-12-2002, 10:29 AM
y isnt anyone help wtf is this.........

Xenon
09-12-2002, 01:01 PM
you have to catch the vb member infos into your download script then check if the userid is > 0.

or you can make all downloads into attachments and then just allow registred users to download attachments

blaze
09-12-2002, 07:40 PM
Originally posted by Xenon
you have to catch the vb member infos into your download script then check if the userid is > 0.



you just lost me on that one how would i actually do that... and come on can anyone help me on taking off the border around the catagory strip im sure half this forum members know wut im talking about

Xenon
09-13-2002, 10:25 AM
let's say your download script is called download.php

just after the <?php
add
require("pathtoforums/global.php");
if(!$bbuserinfo[userid]>0) {
echo "You must login to the forums to download files";
exit;
}

blaze
09-13-2002, 07:43 PM
o ok so in that file that is going to have all the links to the downloads like forum.zip in the page that file is on i should add require("pathtoforums/global.php");
if(!$bbuserinfo[userid]>0) {
echo "You must login to the forums to download files";
exit;
}

but wut if i dont use that kind of coding with the <?php in every page i just use that code once and that would be the index which i dont want the require code there

Xenon
09-13-2002, 09:04 PM
you just have the two possibilities, just add this small <?php block ?> in your file..