The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Working with vBulletin cookies..
I'm attempting to make a hack that if you are a guest, and you visit the forum without having a cookie set (or it is expired), you will be redirected to another page requesting alittle info for quick registration.
I can do this easily with a cookie javascript, but I'm wondering how to integrate it with PHP instead. The code would reside in the global.php, and then make a couple checks: 1. If the viewer is not registered. 2. If the vBulletin cookie for last visit is greater than 1 day, probably using the cookie bblastvisit. If both return true, then the following line of code is executed: PHP Code:
My only problem is figuring out how to do this, or if my logic is right. Here is my test run (as ridiculous as it might be) PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|