help with my download module to restrict access

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   help with my download module to restrict access
cybershot
CZ Super Newbie
cybershot has been a member for over 17 year's 17 Year Member
usa.gif oregon.gif
Gender: Male
Website:
Status: Offline
Joined: Jan 31, 2007
0.01 posts per day
Posts: 75
Points: 25
   
hey guys. i have been having trouble on how to put this code into the download module. what i want it to beable to let visitors view the downloads, but not download them. so they can view the categories, click on them to get to the downloads, view the available, but when they click on them to download, it will make them sign in or register. i have been using this code for that.


global $user;
if(!is_user($user)) {
  header("Location: modules.php?name=Your_Account&op=new_user");
  }


I can't figure out where to put it to get the job done.


Attached Files
index.txt (119.01 KB, Downloaded: 5232 Time(s))


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum