UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

Results 1 to 10 of 10
  1. #1
    Alpha Member Twan is offline
    MemberRank
    Jun 2010 Join Date
    1,961Posts

    thumbs up UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

    Here's the fix for much people!

    Page-fp.tpl:
    Code:
    <!DOCTYPE html>
    <!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
    <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
    <!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
    <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Habbo Hotel - Make friends, join the fun, get noticed! </title>
        <meta name="viewport" content="width=device-width">
    
        <script>
            var andSoItBegins = (new Date()).getTime();
            var habboPageInitQueue = [];
            var habboStaticFilePath = "%www%/web-gallery";
        </script>
        <link rel="shortcut icon" href="%www%/web-gallery/images/v3/favicon.ico" type="image/vnd.microsoft.icon" />
    
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic">
    
    <link rel="stylesheet" href="%www%/web-gallery/static/styles/v3_landing.css" type="text/css" />
    <script src="%www%/web-gallery/static/js/v3_landing_top.js" type="text/javascript"></script>
    
            <meta name="description" content="Check into the world's largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more..." />
            <meta name="keywords" content="habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />
    
    <script src="%www%/web-gallery/static/js/13389159.js"></script>
        <meta name="build" content="63-BUILD-FOR-PATCH-1591a - 04.03.2013 12:03 - com" />
        
    </head>
    <body>
        
    </head>
    <body>
    
    <div id="overlay"></div>
    
    
    <div id="change-password-form" class="overlay-dialog" style="display: none;">
        <div id="change-password-form-container" class="clearfix form-container">
            <h2 id="change-password-form-title" class="bottom-border">Forgot Password?</h2>
            <div id="change-password-form-content" style="display: none;">
                <form method="post" action="https://www.habbo.com/account/password/identityResetForm" id="forgotten-pw-form">
                    <input type="hidden" name="page" value="/?changePwd=true" />
                    <span>Type in your Habbo account email address:</span>
                    <div id="email" class="center bottom-border">
                        <input type="text" id="change-password-email-address" name="emailAddress" value="" class="email-address" maxlength="48"/>
                        <div id="change-password-error-container" class="error" style="display: none;">Please enter a correct email address</div>
                    </div>
                </form>
                <div class="change-password-buttons">
                    <a href="#" id="change-password-cancel-link">Cancel</a>
                    <a href="#" id="change-password-submit-button" class="new-button"><b>Send Email</b><i></i></a>
                </div>
            </div>
            <div id="change-password-email-sent-notice" style="display: none;">
                <div class="bottom-border">
                    <span>Hey, we just sent you an email with a link that lets you reset your password.<br>
    <br>
    
    NOTE! Remember to check your "junk" folder too!</span>
                    <div id="email-sent-container"></div>
                </div>
                <div class="change-password-buttons">
                    <a href="#" id="change-password-change-link">Back</a>
                    <a href="#" id="change-password-success-button" class="new-button"><b>OK</b><i></i></a>
                </div>
            </div>
        </div>
        <div id="change-password-form-container-bottom" class="form-container-bottom">
    </div>
    </div>
    
    
    <header>
        <div id="border-left"></div>
        <div id="border-right">
    </div>
    
    <div id="login-form-container">
        <a href="#home" id="habbo-logo"></a>
    
        <form id="loginformitem" name="loginformitem" method="post">
        
        <div id="login-columns">
            <div id="login-column-1">
                <label for="credentials-username">Username</label>
                <input tabindex="2" type="text" name="credentials.username" id="credentials-username">
                <input tabindex="5" type="checkbox" name="_login_remember_me" id="credentials-remember-me">
                <label for="credentials-remember-me" class="sub-label">Keep me logged in</label>
            </div>
    
            <div id="login-column-2">
                <label for="credentials-password">Password</label>
                <input tabindex="3" type="password" name="credentials.password" id="credentials-password">
                <a href="#" id="forgot-password" class="sub-label">Forgot your password?</a>
            </div>
    
            <div id="login-column-3">
                <input type="submit" value="Login" style="margin: -10000px; position: absolute;">
                <a href="#" tabindex="4" class="button" id="credentials-submit"><b></b><span>Login</span></a>
            </div>
    
    
            <div id="login-column-4">
    <div id="fb-root"></div>
    <script type="text/javascript">
        window.fbAsyncInit = function() {
            Cookie.erase("fbsr_183096284873");
            FB.init({appId: '183096284873', status: true, cookie: true, xfbml: true});
            if (window.habboPageInitQueue) {
                // jquery might not be loaded yet
                habboPageInitQueue.push(function() {
                    $(document).trigger("fbevents:scriptLoaded");
                });
            } else {
                $(document).fire("fbevents:scriptLoaded");
            }
    
        };
        window.assistedLogin = function(FBobject, optresponse) {
            
            Cookie.erase("fbsr_183096284873");
            FBobject.init({appId: '183096284873', status: true, cookie: true, xfbml: true});
    
            permissions = 'user_birthday,email';
            defaultAction = function(response) {
    
                if (response.authResponse) {
                    fbConnectUrl = "/facebook?connect=true";
                    Cookie.erase("fbhb_val_183096284873");
                    Cookie.set("fbhb_val_183096284873", response.authResponse.accessToken);
                    Cookie.erase("fbhb_expr_183096284873");
                    Cookie.set("fbhb_expr_183096284873", response.authResponse.expiresIn);
                    window.location.replace(fbConnectUrl);
                }
            };
    
            if (typeof optresponse == 'undefined')
                FBobject.login(defaultAction, {scope:permissions});
            else
                FBobject.login(optresponse, {scope:permissions});
    
        };
    
        (function() {
            var e = document.createElement('script');
            e.async = true;
            e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
            document.getElementById('fb-root').appendChild(e);
        }());
    </script>
    
    <a class="fb_button fb_button_large" onclick="assistedLogin(FB); return false;">
        <span class="fb_button_text">Login with Facebook</span>
    </a>
    
    
    <div id="rpx-signin">
        <a class="rpxnow" onclick="return false;" href="">More ways to login</a>
    </div>        </div>
        </div>
    </form>
    </div>
    
        <div id="alerts">
    <noscript>
    <div id="alert-javascript-container">
        <div id="alert-javascript-title">
            Missing JavaScript support
        </div>
        <div id="alert-javascript-text">
            Javascript is disabled on your browser. Please enable JavaScript or upgrade to a Javascript-capable browser to use Habbo :)
        </div>
    </div>
    </noscript>
    
    <div id="alert-cookies-container" style="display:none">
        <div id="alert-cookies-title">
            Missing cookie support
        </div>
        <div id="alert-cookies-text">
            Cookies are disabled on your browser. Please enable cookies to use Habbo.
        </div>
    </div>
    <script type="text/javascript">
        document.cookie = "habbotestcookie=supported";
        var cookiesEnabled = document.cookie.indexOf("habbotestcookie") != -1;
        if (cookiesEnabled) {
            var date = new Date();
            date.setTime(date.getTime()-24*60*60*1000);
            document.cookie="habbotestcookie=supported; expires="+date.toGMTString();
        } else {
            if (window.habboPageInitQueue) {
                // jquery might not be loaded yet
                habboPageInitQueue.push(function() {
                    $('#alert-cookies-container').show();
                });
            } else {
                $('alert-cookies-container').show();
            }
        }
    </script>
        </div>
        <div id="top-bar-triangle"></div>
        <div id="top-bar-triangle-border"></div>
    </header>
    
    
    <div id="content">
        <ul>
            <li id="home-anchor">
                <div id="welcome">
                    <a href="#registration" class="button large" id="join-now-button"><b></b><span>Join today</span><span class="sub">(It's free)</span></a>
    
                    <div id="slogan">
                        <h1>Welcome to %shortname%,</h1>
                        <p>a strange place with awesome people. </p>
                        <p><a id="tell-me-more-link" href="#">Tell me more...</a></p>
                    </div>
                </div>
                <div id="carousel">
                    <div id="image1"></div>
                    <div id="image2"></div>
                    <div id="image3"></div>
                    <div id="tell-me-more">%shortname% Hotel is a virtual world for players 13 years and older, where you can create your very own Habbo character and design your room the way you like. You'll meet new friends, chat, organize parties, look after virtual pets, create and play games and complete quests. Click 'Join Today' to get started!</div>
                </div>
                <div id="floaters"></div>
    
    
            <li id="registration-anchor">
    <div id="registration-form">
    
        <div id="registration-form-header">
            <h2>User ID</h2>
            <p>Fill in these details to begin:</p>
        </div>
        <div id="registration-form-main">
    <form action="register_submit" method="post"> 
            <div id="registration-form-main-left">
                
    <div class="field field-habbo-name"> 
                                               <label for="habbo-name"><b>Name</b></label> 
                      <input type="text" id="habbo-name" size="32" value="" name="bean.avatarName" class="text-field" maxlength="32"/> 
    </div>
    
    
                <div class="field field-password"> 
                                            <label for="password"><b>Password</b></label> 
                  <input type="password" id="password" size="35" name="bean.password" value="" class="password-field" maxlength="32"/> 
    </div>
    
    <label for="password2"><b>Retype Password</b></label> 
                  <input type="password" id="password2" size="35" name="bean.retypedPassword" value="" class="password-field" maxlength="32"/> 
      
    
                  <label for="email"><b>Email</b></label> 
                  <input type="text" id="email" size="35" name="bean.email" value="" class="text-field" maxlength="48"/>
                                        
    </div>
    
    
            <div id="registration-form-main-right">
                <div id="captcha-container">
    
                    <label for="recaptcha_response_field">Captcha</label>
                    <label for="recaptcha_response_field" class="details">Type in the two words (separated with a space):</label>
    
     <script type="text/javascript"
         src="http://www.google.com/recaptcha/api/challenge?k=6LfI2t0SAAAAAE6AjuPdmPrjsZmkNqcfljusRpmc">
      </script>
    
                        <script>
                            habboPageInitQueue.push(function() {
                                RecaptchaUtil.showRecaptcha("captcha-container", "6LfI2t0SAAAAAE6AjuPdmPrjsZmkNqcfljusRpmc")
                            });
                        </script>
                        <div id="captcha-image-container">
                            <div id="recaptcha_image"></div>
                            <div id="captcha-overlay"></div>
                        </div>
                        <p id="captcha-new" class="details"><a class="recaptcha-reload" href="#">Try new code</a></p>
                        <input type="text" name="recaptcha_response_field" id="recaptcha_response_field">
    </div>
    
          <p class="checkbox-container" id="registration-tos">
                    <input id="tos" value="accept" type="checkbox" id="password" name="bean.tos" %post-tos-check%/></a>
                    <label for="tos" class="details checkbox">
                        I accept the <a href="http://help.habbo.com/entries/23096348-Terms-of-Service-and-Privacy-Policy" target="_blank" onclick="window.open('http://help.habbo.com/entries/23096348-Terms-of-Service-and-Privacy-Policy'); return false;">Terms Of Service</a> and Privacy Policy
                    </label>
                </p></br>
                <input type="submit" class="new-button" id="next" value="Create account" />
                </div>
            </div>
            </form>
        </div>
    </div>
    
    
            </li><div id="magnifying-glass"></div>
                <div id="sail"></div>
            </li>
        </ul>
    </div>
    
    <footer>
        <div id="age-recommendation"></div>
    
        <div id="footer-content">
            <div id="footer"><a href="#">Customer Support</a> l <a href="#">Parents</a> l <a href="#" target="_new">Terms of Use & Privacy Policy</a> l <a href="#">Infringements</a> l <a href="#" target="_new">Habbo Way</a> l <a href="#">Safety</a> l <a href="#" target="_new">For Advertisers</a></div>
            <div id="copyright">&copy; 2013 Hibbo, Hibbo is not a part of Sulake or whatever.</div>
        </div>
        <div id="sulake-logo"><a href="#"></a></div>
    </footer>
    
    
    <script src="%www%/web-gallery/static/js/v3_landing_bottom.js" type="text/javascript"></script>
    <!--[if IE]><script src="%www%/web-gallery/static/js/v3_ie_fixes.js" type="text/javascript"></script>
    <![endif]-->
    </body>
    </html>
    Web-gallery (place it in root from your webserver like htdocs or wwwroot):
    https://mega.co.nz/#!nIoCQRLD!aCCNVi...xKhX0vz74_i7Mo

    NOTE: IT DOESNT LOOK EXACTLY LIKE HABBO'S ONE, BUT IF U DONT WANT IT RIP THE REAL ONE URSELF!

    Credits:
    -PythoneX12 - Make the index for UberCMS (40%)
    -Noman - Make the index for RevCMS (50%)
    -Twan (Me) - Fix the index for UberCMS 2.0.1 (10%)

    Goodluck with it!


  2. #2
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

    I don't have ubercms 2.0. But cool to see you're releasing your stuff.

  3. #3
    Make a wish .::Arjan::. is offline
    MemberRank
    Jan 2012 Join Date
    the NetherlandsLocation
    504Posts

    Re: UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

    Why, do you have the register not with json?

  4. #4
    Alpha Member Twan is offline
    MemberRank
    Jun 2010 Join Date
    1,961Posts

    Re: UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

    Quote Originally Posted by .::Arjan::. View Post
    Why, do you have the register not with json?
    Ask PythoneX12, i only fixed it.

  5. #5
    ☮TAKU???? seanrom is offline
    MemberRank
    Nov 2009 Join Date
    1,004Posts

    Re: UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

    Since i've seen this index get released one hundred times without the register working with the JSON response etc, here is how the JSON response (registration/submit) can look like:

    PHP Code:
    <?php
        
    new HabboTranslator('registererrors');
        
    header("Content-type: application/json");
        
    define('IGNORE_EXECUTEMSG'true);
        if(
    LOGGEDIN) die();
        
        if(isset(
    $_POST['registrationBean_month'], $_POST['registrationBean_day'], $_POST['registrationBean_year'], $_POST['registrationBean_email'], $_POST['registrationBean_password'], $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field'])) {
            
            require 
    "thirdparty/recaptcha/recaptchalib.php";

            
    $banned $server->isBanned();
            if(
    $banned) {
                
    $_SESSION['login_banned'] = $banned;
                
    $_SESSION['login_error_msg'] = '{$lang->loginerrors.banned}';

                
    $redirect str_replace('/''\/'WWW '/');
                echo 
    '{"registrationCompletionRedirectUrl":"' $redirect '"}';
                exit;
            }

            
    $error = array();
            
    $month $_POST['registrationBean_month'];
            
    $day $_POST['registrationBean_day'];
            
    $year $_POST['registrationBean_year'];
            
    $email $_POST['registrationBean_email'];
            
    $password $_POST['registrationBean_password'];
            
    $verify recaptcha_check_answer($core->settings->recaptcha_secret$_SERVER['REMOTE_ADDR'], $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field']);

            if(!
    is_numeric($month) || !is_numeric($day) || !is_numeric($year) || !isWithin($month112) || !isWithin($day131) || !isWithin($year1900date("Y"))) $error['registration_birthday_format'] = '{$lang->registererrors.enter_birthday}';
            if(!
    validEmail($email)) $error['registration_email'] = '{$lang->registererrors.email_invalid}'; elseif($sql->count("SELECT * FROM users WHERE mail = '" emailFilter($email) . "' LIMIT 1") == 1$error['registration_email'] = '{$lang->registererrors.email_allready_inuse}';
            if(
    $password == ''$error['registration_password'] = '{$lang->registererrors.enter_password}';
            if(!
    isWithin(strlen($password), 632)) $error['registration_password'] = '{$lang->registererrors.password_wronglength}';
            if(!isset(
    $_POST['registrationBean_termsOfServiceSelection'])) $error['registration_termsofservice'] = '{$lang->registererrors.tos}';
            if(!
    $verify->is_valid$error['registration_captcha'] = '{$lang->registererrors.captcha}';
            if(empty(
    $error)) {
                
    /*Find avaible username*/
                
    $i 1;
                
    $username strstr($email'@'true);
                while(
    $server->identifyUser($username)) {
                    
    $username strstr($email'@'true) . $i;
                    
    $i++;
                }

                
    $result $server->createUser($username$core->hash($password), $email$core->settings->start_rank$core->settings->start_credits$core->settings->start_points$core->settings->start_pixels$core->settings->start_figure$core->settings->start_motto$_SERVER['REMOTE_ADDR'], $_SERVER['REMOTE_ADDR'], $core->settings->start_homeroom0);
                if(!
    $result) {
                    
    $debug debug($server->errors);
                    
    error('Erroring creating new user. DEBUG: ' $debug'E_FATAL');
                }

                
    $session $users->createSession($result);

                
    $_SESSION['habbo_identity'] = $result;
                
    $_SESSION['habbo_session_token'] = $session;

                
    $redirect str_replace('/''\/'WWW '/client');
                echo 
    '{"registrationCompletionRedirectUrl":"' $redirect '"}';
                exit;
            }

            
            echo 
    '{"registrationErrors":' json_encode($error) . '}';
        } else {
            echo 
    '{"registrationErrors":{}}';
        }
    ?>
    Have fun!

  6. #6
    Alpha Member Twan is offline
    MemberRank
    Jun 2010 Join Date
    1,961Posts
    Where to place that lol

  7. #7
    Account Upgraded | Title Enabled! Akimbo is offline
    MemberRank
    Jul 2011 Join Date
    NorwayLocation
    305Posts

    Re: UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

    Quote Originally Posted by Twan View Post
    Where to place that lol
    Why do you even bother to re-release something and credit yourself when you haven't done shit and can't php or html ._.?

  8. #8
    Alpha Member Twan is offline
    MemberRank
    Jun 2010 Join Date
    1,961Posts

    Re: UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

    I fixed it not re-releasing

  9. #9
    Account Upgraded | Title Enabled! Akimbo is offline
    MemberRank
    Jul 2011 Join Date
    NorwayLocation
    305Posts

    Re: UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

    Quote Originally Posted by Twan View Post
    I fixed it not re-releasing
    What did you "fix"? You didn't fix the register to work with JSON.

  10. #10
    apt-get install xcowsay 3M1L is offline
    MemberRank
    Jul 2012 Join Date
    SwedenLocation
    268Posts

    Re: UberCMS 2.0.1 - New .com Index! - Fixed (Index, Tell me more, Register)

    Quote Originally Posted by Akimbo View Post
    What did you "fix"? You didn't fix the register to work with JSON.
    +1
    .....



Advertisement