The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
TOS page
Hello, i already have created a TOS page using CMPS.
The code of the page is like that: Quote:
Quote:
Thanks |
#2
|
|||
|
|||
in your accept page you would need to add the following:
Code:
<?php setcookie("TOS", Yes, time()+36000, "/"); ?> Then on your TOS page you would need to add the following code around the page Code:
<?php if(isset($_COOKIE['TOS'])){ $Agree = $_COOKIE['TOS']; if($Agree == Yes){ *CODE TO REDIRECT TO HOMEPAGE HERE* } if(!isset($_COOKIE['TOS'])){ *CODE DISPLAYING TOS ACCEPT AND CANCEL HERE* } ?> I use this sort of code to check if my users are logged in on my website. Explanation (TOS PAGE): If cookie TOS is set on users computer.. check to see if the variable says Yes.. If so redirects to home page If no cookie is present shows TOS -SouLz |
#3
|
|||
|
|||
Thanks, but it doesn't seem to work =S.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|