VariousCoderz
Member
- Nov 30, 2013
- 59
- 15
Dear DevBest community members,
I've readed the release topic of Thunderbolt and saw reactions with people that have problems with registering...
So, i give you guys a fix for the register and the client. Because the client doesnt work too.
1. Register fix
Simply replace your document (templates/comp-index.tpl)
2. Client fix
Because Tonny forgot to add a working banner link in the system itself, i made a link to let it work without reconfiguring the whole system itself.
Add in this file: applications/client/index.php
Change
Do you have any questions? PM me!
-VariousCoderz
I've readed the release topic of Thunderbolt and saw reactions with people that have problems with registering...
So, i give you guys a fix for the register and the client. Because the client doesnt work too.
1. Register fix
Simply replace your document (templates/comp-index.tpl)
PHP:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
{$files}
<script type="text/javascript">
$(function(){
$thunderbolt.url = '{$http}';
$thunderbolt.avatarimage_url = '{$avatarimage_url}';
$thunderbolt.registration = '{$registration}';
index.start();
});
</script>
<title>{$site.name} ~ {$local_site.name}</title>
</head>
<body class="index">
<input type="hidden" class="toggleTileAcces" value="true">
<img style="position: fixed; left: 15px; top: 15px; z-index: 999999;" src="../assets/image/general/logo/febbo.png">
{assign var='copyright_value' value=''}
{include file='comp-copyright.tpl'}
{if $registration == 'false'}
<div class="loaderScreen">
<div class="logoContainer">
<img class="logo" src="./assets/image/general/logo/thunderboltwhite.png">
<img class="loader" src="./assets/image/general/loader/loader_white.gif">
</div>
</div>
{/if}
<div class="floatContainer login">
<div class="body login">
<div class="upperTitle"><ubuntu>{$language.index_login}</ubuntu></div>
<div class="container">
<div class="state">
<center>
<div class="inside">
<div class="bullet selected"></div>
<div class="hotel"></div>
</div>
</center>
</div>
<div class="line"></div>
<div class="textContainer">
<div class="title"><ubuntu>{$language.index_float_login_title}</ubuntu></div>
<div class="second">{$language.index_float_login_second}</div>
<div class="inputSpace"></div>
<div class="input">
<input type="text" class="floatContainerInput loginInputUsername" id="username" placeholder="{$language.username}">
<center class="inputError loginUserErrorNull" id="username"><div class="errorBox"><div></div>{$language.index_user_error_null}</div></center>
<center class="inputError loginUserErrorNone" id="username"><div class="errorBox"><div></div>{$language.index_user_error_none}</div></center>
</div>
<div class="inputSpace"></div>
<div class="input">
<input type="password" class="floatContainerInput loginInputPassword" id="password" placeholder="{$language.password}">
<center class="inputError loginPassErrorNull" id="password"><div class="errorBox"><div></div>{$language.index_pass_error_null}</div></center>
<center class="inputError loginPassErrorWrong" id="password"><div class="errorBox"><div></div>{$language.index_pass_error_wrong}</div></center>
</div>
</div>
<div class="line buttons"></div>
<div class="buttonContainer">
<div class="button loginButton general"><b>{$language.next}</b><div></div></div>
<div class="button loginButton load"><b>{$language.load}</b><div></div></div>
</div>
</div>
</div>
</div>
<div class="floatContainer register">
<div class="body register step1">
<div class="upperTitle"><ubuntu>{$language.index_register_step_1_title}</ubuntu></div>
<div class="container">
<div class="state">
<center>
<div class="inside">
<div class="bullet selected"></div>
<div class="bullet"></div>
<div class="bullet"></div>
<div class="hotel"></div>
</div>
</center>
</div>
<div class="line"></div>
<div class="textContainer">
<div class="title"><ubuntu>{$language.index_register_step_1_sub_title}</ubuntu></div>
<div class="second">{$language.index_register_step_1_sub_second}</div>
<div class="inputSpace"></div>
<div class="input">
<input type="text" class="floatContainerInput registerInputUsername" id="username" placeholder="{$language.username}">
<center class="inputError registerUserErrorNull" id="username"><div class="errorBox"><div></div>{$language.index_user_error_null}</div></center>
<center class="inputError registerUserErrorTaken" id="username"><div class="errorBox"><div></div>{$language.index_user_error_taken}</div></center>
<center class="inputError registerUserErrorAllowed" id="username"><div class="errorBox"><div></div>{$language.index_user_error_allowed}</div></center>
</div>
<div class="inputSubText">{$language.index_register_step_1_side_text}</div>
<div class="checkBoxContainer">
<div class="boy">
<div class="human"></div>
<div class="radioButton selectGender selected" onclick="$register.changeGender('boy')" id="boy"></div>
<div class="text" onclick="$register.changeGender('boy')"><ubuntu>{$language.boy}</ubuntu></div>
</div>
<div class="girl">
<div class="human"></div>
<div class="radioButton selectGender" onclick="$register.changeGender('girl')" id="girl"></div>
<div class="text" onclick="$register.changeGender('girl')"><ubuntu>{$language.girl}</ubuntu></div>
</div>
</div>
<div class="alertBox">
<div class="icon true"></div>
<div class="text">{$language.index_register_step_1_alert}</div>
</div>
</div>
<div class="line buttons"></div>
<div class="buttonContainer">
<div class="button registerButton step1 general" onclick="$register.checkUsername()"><b>{$language.next}</b><div></div></div>
<div class="button registerButton step1 load"><b>{$language.load}</b><div></div></div>
</div>
</div>
</div>
<div class="body register step2">
<div class="upperTitle"><ubuntu>{$language.index_register_step_2_title}</ubuntu></div>
<div class="container">
<div class="state">
<center>
<div class="inside">
<div class="bullet"></div>
<div class="bullet selected"></div>
<div class="bullet"></div>
<div class="hotel"></div>
</div>
</center>
</div>
<div class="line"></div>
<div class="textContainer">
<div class="title"><ubuntu>{$language.index_register_step_2_sub_title}</ubuntu></div>
<div class="second">{$language.index_register_step_2_sub_second}</div>
<div class="inputSpace"></div>
<div class="input">
<input type="password" class="floatContainerInput registerInputPassword" id="password" placeholder="{$language.password}">
<center class="inputError registerPasswordErrorNull" id="password"><div class="errorBox"><div></div>{$language.index_pass_error_null}</div></center>
</div>
<div class="inputSubText">{$language.index_register_step_2_side_text}</div>
<div class="inputSpace"></div>
<div class="input">
<input type="password" class="floatContainerInput registerInputPasswordConf" id="password_conf" placeholder="{$language.password}">
<center class="inputError registerPasswordConfErrorNull" id="password_conf"><div class="errorBox"><div></div>{$language.index_pass_error_null}</div></center>
<center class="inputError registerPasswordConfErrorSame" id="password_conf"><div class="errorBox"><div></div>{$language.index_pass_error_same}</div></center>
<center class="inputError registerPasswordConfErrorNumbers" id="password_conf"><div class="errorBox"><div></div>{$language.index_pass_error_numbers}</div></center>
<center class="inputError registerPasswordConfErrorShort" id="password_conf"><div class="errorBox"><div></div>{$language.index_pass_error_short}</div></center>
</div>
<div class="inputSubText">{$language.index_register_step_2_conf_side_text}</div>
<div class="alertBox">
<div class="icon"></div>
<div class="text">{$language.index_register_step_2_alert}</div>
</div>
</div>
<div class="line buttons"></div>
<div class="buttonContainer">
<div class="button registerButton step2 general" onclick="$register.checkPassword()"><b>{$language.next}</b><div></div></div>
<div class="button registerButton step2 load"><b>{$language.load}</b><div></div></div>
</div>
</div>
</div>
<div class="body register step3">
<div class="upperTitle"><ubuntu>{$language.index_register_step_3_title}</ubuntu></div>
<div class="container">
<div class="state">
<center>
<div class="inside">
<div class="bullet"></div>
<div class="bullet"></div>
<div class="bullet selected"></div>
<div class="hotel"></div>
</div>
</center>
</div>
<div class="line"></div>
<div class="textContainer">
<div class="title"><ubuntu>{$language.index_register_step_3_sub_title}</ubuntu></div>
<div class="second">{$language.index_register_step_3_sub_second}</div>
<div class="inputSpace"></div>
<div class="input">
<input type="text" class="floatContainerInput registerInputMail" id="mail" placeholder="{$language.email}">
<center class="inputError registerMailErrorNull" id="mail"><div class="errorBox"><div></div>{$language.index_mail_error_null}</div></center>
<center class="inputError registerMailErrorAllowed" id="mail"><div class="errorBox"><div></div>{$language.index_mail_error_allowed}</div></center>
<center class="inputError registerMailErrorShort" id="mail"><div class="errorBox"><div></div>{$language.index_mail_error_short}</div></center>
<center class="inputError registerMailErrorTaken" id="mail"><div class="errorBox"><div></div>{$language.index_mail_error_taken}</div></center>
</div>
<div class="inputSubText">{$language.index_register_step_3_side_text}</div>
<div class="alertBox">
<div class="icon"></div>
<div class="text">{$language.index_register_step_3_alert}</div>
</div>
</div>
<div class="line buttons"></div>
<div class="buttonContainer">
<div class="button registerButton step2 general" onclick="$register.checkMail()"><b>{$language.next}</b><div></div></div>
<div class="button registerButton step2 load"><b>{$language.load}</b><div></div></div>
</div>
</div>
</div>
<img class="registerLoader" src="./assets/image/general/loader/loader_white.gif">
</div>
<div class="room">
<div class="wood first"></div>
<div class="wood second"></div>
<div class="spotlight"></div>
<div class="avatar standing first"></div>
<div class="avatar standing second"></div>
<div class="avatar standing third"></div>
<div class="avatar walking first"></div>
<div class="avatar walking second flip"></div>
<div class="avatar look"></div>
<div class="toggleTile"></div>
<div class="toggleTileAfter"></div>
<div class="tileInfo"><ubuntu>{$language.index_walk_to_tile}</ubuntu></div>
<div class="textContainer float firstSay" style="left: 455px; top: 276px;">
<div class="firstTitle"><ubuntu>{$language.index_man_first_say_title}</ubuntu></div>
<div class="secondTitle"><ubuntu>{$language.index_man_first_say_second}</ubuntu></div>
<div class="arrow" style="left: 49px;"></div>
</div>
<div class="textContainer float secondSay" style="left: 338px; top: 191px;">
<div class="firstTitle"><ubuntu>{$language.index_man_second_say_title}</ubuntu></div>
<div class="secondTitle bold"><ubuntu>{$language.index_man_second_say_second}</ubuntu></div>
<div class="third buttonspace">{$language.index_man_second_say_third}</div>
<div class="button onclickOpenLogin"><b>{$language.index_login}</b><div></div></div>
<div class="button onclickOpenRegister" style="margin-left: 15px;"><b>{$language.index_register}</b><div></div></div>
<div class="arrow center"></div>
</div>
</div>
<div class="contextmenu">
<div class="cMenuItem" onclick="document.location.href='rules'">De regels</div>
<div class="cMenuItem" onclick="document.location.href='staff'">Medewerkers</div>
</div>
</body>
</html>
2. Client fix
Because Tonny forgot to add a working banner link in the system itself, i made a link to let it work without reconfiguring the whole system itself.
Add in this file: applications/client/index.php
PHP:
$flashvars .= '&hotelview.banner.url=http://127.0.0.1/assets/swf/banner.png';
Change
You must be registered for see links
to your banner.png link!Do you have any questions? PM me!
-VariousCoderz