![]() |
vB Cookie Detector - Detects if user has cookies switched on in browser.
vB Cookie Detector - Detect if user has cookies switched on in browser!
Tired of members getting the no permission page because they have cookies switched off? Want them to have a quick way of checking to see if they have cookies switched on or off? This is a fairly simple hack really to detect cookies in your user's browser, based on 1 PHP file, and 3 new templates. It was requested. All you need to do is to upload the cookies.php file in your forum directory, add the 3 new templates. Then link to the cookie.php file, and your member will be told whether cookies are switched on in their browser or not. The message is based on standard vB templates, so I'm not going to post screenshots as they are redundant. 1) Upload cookies.php to your forum directory. 2) Add the 3 new templates 3) Link to cookies.php Done! Enjoy! :) |
I know this is a stupid questions for an about-to-be Admin how would you use this? :)
|
Troubleshooting errors?
|
It doesn't seem to be calling the templates. It is just opening up a new window with the lines from the cookies.php file. ;)
|
Oops... I uploaded the wrong cookies.php - that was my other PHP version, which did not work as nicely... :) This one is my javascript version, which works better.
Please CLEAR your CACHE, and download the NEW ZIP - the cookies.php will now have reference to the templates. |
Ahhhh, much better. ;)
Is there a way to have this work in vb without having to go to an outside file? |
Sure - copy the code into your members.php file, and change cookies.php reference in the cookies_check templaet to members.php - however, I wanted it in a separate file as members.php is so big already. Makes it easier to upgrade too.
|
cool, thanks Erwin. :)
|
Hey Erwin thanks fro replying to my other post with this link. I just installed it and it worked great.
|
Good idea Erwin. Perhaps a screen on the registration page prior to the form could prompt the removal of the cookie field on registration form if the cookies aren't enabled in that users browser :D
- miSt |
All times are GMT. The time now is 10:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|