The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Hi,
I want to add a new template to vBulletin. This is what I tried. - Added new template directly in database (phpmyadmin), table templates. templateID autonumber styleID -1 title register_choice template Code:
<html> <body> <a href="http://www.example.com/forums/register.php?do=register_forumsonly">Register forums only</a> <br> <a href="http://www.example.com/forums/register.php?do=register_forumsandwebsite">Register forums and website</a> </body> </html> Code:
<html> <body> <a href="http://www.example.com/forums/register.php?do=register_forumsonly">Register forums only</a> <br> <a href="http://www.example.com/forums/register.php?do=register_forumsandwebsite">Register forums and website</a> </body> </html> Code:
// ############################### start choice - website and forum or forum only registration ############################### if ($_REQUEST['do'] == 'register') { globalize($_REQUEST, array( 'month' => INT, 'day' => INT, 'year' => INT, 'agree' => INT, 'options' )); if (empty($agree)) { eval(print_standard_error('register_not_agreed')); } if (!$vboptions['allowregistration']) { eval(print_standard_error('error_noregister')); } if ($bbuserinfo['userid'] != 0 AND !$vboptions['allowmultiregs']) { eval(print_standard_error('error_alreadyregistered')); } eval('print_output("' . fetch_template('register_choice') . '");'); } Thanks! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|