php-nuke

TarinC

New Member
Messages
698
Reaction score
0
Points
0
i have a module(page) on my site where u need to be registered to see it. is it possible to restrict the user to only access the page once per week?
 
Last edited:

Woolie

Member
Messages
862
Reaction score
0
Points
16
Thats a tricky one. The only thing i could think of without having to code it yourself is too password protect that modules directly using your cPanel, then enable the leech protect and set it to stop after one login. Obvioulsy this is a bad way of doing it and im sure there are lots of other methods, but this is the only i way i can think of without googling it.
 

TarinC

New Member
Messages
698
Reaction score
0
Points
0
its a custom module... i know how to script a bit.

do u know the code to add the restriction?
 

Woolie

Member
Messages
862
Reaction score
0
Points
16
No, i have no idea, i'm very sorry. I suggest a bit of Google. It usually sorts things out.
 

trev

Member
Prime Account
Messages
670
Reaction score
0
Points
16
You could add a php scode to use the same code as lasted loged in where it adds the time and date to a new table for everyuser then make a php code that only alows it to echo <module> if Ladt View Date > 7 days old. You could do it so it ads the date and username when they first view the module then when it checks ur username in the table next time ou try to view it will not echo the module you are using.

Complicated Solution
 

TarinC

New Member
Messages
698
Reaction score
0
Points
0
i got no idea what u just said right there.

can u post an example?
 
Top