vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Cookie Detector - Detects if user has cookies switched on in browser. (https://vborg.vbsupport.ru/showthread.php?t=49655)

Erwin 03-04-2003 10:00 PM

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! :)

Boofo 03-05-2003 12:55 AM

I know this is a stupid questions for an about-to-be Admin how would you use this? :)

Jalrock 03-05-2003 12:56 AM

Troubleshooting errors?

Boofo 03-05-2003 01:13 AM

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. ;)

Erwin 03-05-2003 01:33 AM

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.

Boofo 03-05-2003 01:41 AM

Ahhhh, much better. ;)

Is there a way to have this work in vb without having to go to an outside file?

Erwin 03-05-2003 01:45 AM

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.

MetroSports82 03-05-2003 02:02 AM

cool, thanks Erwin. :)

GsxrTony 03-05-2003 01:56 PM

Hey Erwin thanks fro replying to my other post with this link. I just installed it and it worked great.

Dean C 03-05-2003 03:34 PM

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
  • Page Generation 0.01797 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete