Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[WebSite]Login to Download

Junior Spellweaver
Joined
Feb 23, 2008
Messages
131
Reaction score
1
Hey everyone i wanted to know if i could get osme help with some coding or a tut i wanted to do something like when people login they can download but if they dont login they can download nothing on my site i alreayd have the login/register feature im just trying to get the other part which is "you must login to download"

my site is
 
Junior Spellweaver
Joined
Feb 23, 2008
Messages
131
Reaction score
1
yea um sorry lol im not good at this stuff at all so basicly i have noidea what u mean :)
 
Junior Spellweaver
Joined
Feb 23, 2008
Messages
131
Reaction score
1
oh that would be cool i guess even tho i want to learn but its ok :)
 
Junior Spellweaver
Joined
Feb 23, 2008
Messages
131
Reaction score
1
Still looking for help is someone could help me that would be great
 
Junior Spellweaver
Joined
Jun 17, 2007
Messages
116
Reaction score
1
andrew gave you his msn, so just add him and he might help you :p
 
Elite Diviner
Loyal Member
Joined
Apr 30, 2008
Messages
414
Reaction score
0
Oh, do you mean set the availability?
 
Joined
Mar 26, 2006
Messages
598
Reaction score
4
Ok zzz All your gonna do is, go to the login script, since you probably downloaded it, you should see a part that says $_SESSION['somthin'];
Now make one for your validation of user right underneath it Ex: $_SESSION['valid_user'] = 1;
Now in the download links do this:
PHP:
if($_SESSION['valid_user'] < 0) {
      echo "Link";
}
And boom you'll be done
 
Junior Spellweaver
Joined
Feb 23, 2008
Messages
131
Reaction score
1
what was so funny at that part i did most of the work on it i never said i was pro lol

but i didnt download the login script but i did get help with it
 
Junior Spellweaver
Joined
Dec 2, 2006
Messages
198
Reaction score
0
i see you have joomla now. well thats simple. theres this component called ionfiles. just limit that to just members. =]
 
Junior Spellweaver
Joined
Feb 23, 2008
Messages
131
Reaction score
1
Yes that is what i am using now it is more easy to work with
 
Back
Top