Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1123

PostPosted: Sun Mar 06, 2011 8:19 am Reply with quote

If users see what they are going to download but once they type the captcha code I would like them to redirect to another module. I will appriciate some help. Rolling Eyes

Thanks in advance
 
View user's profile Send private message
prekill
Worker
Worker



Joined: Oct 22, 2005
Posts: 201

PostPosted: Mon Mar 07, 2011 1:25 am Reply with quote

you can setup redirect in cuple of ways:

- client side - in the metas.
- client side - javascript.
- server side - htaccess which is the best way.
 
View user's profile Send private message
hicuxunicorniobestbuildpc







PostPosted: Mon Mar 07, 2011 8:39 am Reply with quote

I already did it myself and it is working properly well, I coudn't find the answer anywhere but now I know. Thanks anyway
 
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Mon Mar 07, 2011 3:18 pm Reply with quote

unicornio, so what do you do?
 
View user's profile Send private message
hicuxunicorniobestbuildpc







PostPosted: Mon Mar 07, 2011 3:49 pm Reply with quote

Very Happy Sorry I guess I forgot something

This is what I did. The status from my Download module can be visible for ALL VISITORS, so u visitors can see what I have but once they wanna type the Captcha code then it redirect inmediatly to my subscription module. I spent some hours searching on internet but it was no answer for phpnuke so in my index.php I had this:

Code:
//Paid members by unicornio

       if(!paid()){//user has not paid
      // include "header.php";
       OpenTable();
       echo "<center><a href=\"modules.php?name=Subscription\" target=\"_self\">Subscribe Now if you want to unblock your account!</a></center>";
       CloseTable();
       include "footer.php";
       die();
       }
       //End

The mod above was ok, it means users who are not a subscriber or didn't pay can not download but can see all and then once they type the captcha code they can see just a link but nothing else. Means, users who do not understand think download module is not working.

I replace with this one and it is working properly. If you have something better please post it here.

Code:
//Paid members from unicornio

       if(!paid()){//user has not paid
       //include "header.php";
       OpenTable();
       echo Header("Location: ../../modules.php?name=Subscription");
       CloseTable();
       include "footer.php";
       die();
       }
       //End


There are many secrets on phpnuke but we still need to discover them.

Very Happy
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©