vB Style Login 1.5 This mod gives the admin a choice between: the default YaBB login on the Board Index or a vB style one 1.0-Original Relase! 1.5-Fix so cookie length and checkbox is not shown! DemonSlayer http://www.the-chronicles.com/cgi-bin/YaBB/YaBB.cgi Sources/BoardIndex.pl if( $username eq 'Guest' ) { print <<"EOT"; » $txt{'34'} ($txt{'315'})
$txt{'35'}: $txt{'36'}: $txt{'497'}:   $txt{'508'}:
EOT } print <<"EOT"; EOT &footer; exit; }
if( $username eq 'Guest' && $vblogin == 0 ) { print <<"EOT"; » $txt{'34'} ($txt{'315'})
$txt{'35'}: $txt{'36'}: $txt{'497'}:   $txt{'508'}:
EOT } print <<"EOT"; EOT if( $username eq 'Guest' && $vblogin == 1 ) { print <<"EOT";
Not cookied?
Login with username and password:
EOT } &footer; exit; }
Sources/Admin.pl if ($enable_ubbc) { $ubbcchecked = ' checked'; } if ($vblogin) { $vbloginchecked = ' checked'; } $txt{'378'} Do you want to display a vB style login on the main page? (current one will be taken off) # Set as 0 or 1 if box was checked or not push(@onoff, "vblogin"); # If empty fields are submitted, set them to default-values to save yabb from crashing $vblogin = $FORM{'vblogin'} || 0; \$enable_ubbc = $enable_ubbc; # Set to 1 if you want to enable UBBC (Uniform Bulletin Board Code) \$vblogin = $vblogin; # Set to 1 if want to display a vB style login on the board index