Back to vBulletin 3.0 Add-Ons

Disallow registration when cookies not enabled
Mod Version: 1.00, by StewardManscat

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 3
Released: 12 Oct 2004 Last Update: Never Downloads: 1
Not Supported  

At our site we require cookies.
Avoid support issues by turning people away at the door.

In register.php find
PHP Code:
if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
{
    
$_REQUEST['do'] = 'signup';

Replace with

PHP Code:
if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
{
    
$_REQUEST['do'] = 'cookie';

Find

PHP Code:
if ($_REQUEST['do'] == 'signup'

Replace with

PHP Code:
if ($_REQUEST['do'] == 'cookie')
{
    
vbsetcookie('signup''ok'0);
    
exec_header_redirect("register.php?do=signup");
}

if (
$_REQUEST['do'] == 'signup')
{
  if (
$_COOKIE[COOKIE_PREFIX 'signup'] !=  'ok' )
  {
      eval(
'print_output("' fetch_template('manNeedsCookie') . '");');
  } 
Finally, create a template which informs the user why they cannot register. You'll want to include some links to help them out....

https://www.google.com/cookies.html
http://webmaster.info.aol.com/cookieguide.html

http://www.allaboutcookies.org/manage-cookies
http://www.cookiecentral.com/

Download

No files for download.

Similar Mods

Disallow Registration by Minors vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024