js (or php?) help
js (or php?) help
Out of context: Reply #1
- Started
- Last post
- 6 Responses
- bigtrick0
what you're asking isn't hard to do, but it is a bit more complex than a forum reply can encompass. basically in php you need to change all the links in your wordpress template to be of some common class that a php function can rewrite with a link to your t&c. you need a session variable for the t&c acceptance and a cookie that stores the t&c acceptance status also. and finally you need to write that function in php that does the link redirection.
the above isn't really a good guide on how to do it, just the barest sketch, really, but to go into more detail would require more time and more hand gestures. basically, for a php programmer, what you're asking would be a 2-5 hour task, i think, depending on what your site is like.