Client problem

Jan 17, 2012
649
166
I have a problem with my client. Every time I enter the client, it loads perfectly, the 2 bars and all.
.

Then all of a sudden, it redirects to the me page.
.
Anyone know how to fix this?
 
Jan 17, 2012
649
166
Post your coding for your /me page here and I'll edit it so it should work.
Why the me page? Oh well:
PHP:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| http://www.meth0d.org
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/
 
define('TAB_ID', 1);
define('PAGE_ID', 2);
 
require_once "global.php";
define("SideBarAd", true);
 
 
 
if (!LOGGED_IN)
{
    header("Location: " . WWW . "/");
    exit;
}
else if ($users->GetUserVar(USER_ID, 'newbie_status') == "0")
{
    header("Location: " . WWW . "/register/welcome");
    exit;
}
 
// Initialize template system
$tpl->Init();
 
// Initial variables
$tpl->SetParam('page_title', 'Home');
 
// Generate page header
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('generic');
$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/personal.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/habboclub.js'));
$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/minimail.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/myhabbo/control.textarea.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/minimail.js'));
$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/static/styles/lightweightmepage.css'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/lightweightmepage.js'));
 
 
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-overrides-generic');
$tpl->AddGeneric('head-bottom');
 
// Generate generic top/navigation/login box
$tpl->AddGeneric('generic-top');
 
// Column 1
 
 
// Me/infofeed widget
$tpl->Write('<div id="column1" class="column">');
$compMe = new Template('comp-me');
$compMe->SetParam('look', $users->GetUserVar(USER_ID, 'look'));
$compMe->SetParam('motto', $users->GetUserVar(USER_ID, 'motto'));
$compMe->SetParam('creditsBalance', intval($users->GetUserVar(USER_ID, 'credits')));
$compMe->SetParam('pixelsBalance', intval($users->GetUserVar(USER_ID, 'activity_points')));
$compMe->SetParam('lastSignedIn', $users->GetUserVar(USER_ID, 'last_online'));
$compMe->SetParam('clubStatus', ($users->HasClub(USER_ID)) ? '<a href="%www%/credits/uberclub">' . $users->GetClubDays(USER_ID) . '</a> Days' : '<a href="%www%/credits/uberclub">Join %shortName% Club &raquo;</a>');
//$compMe->SetParam('clubStatus', '');
$tpl->AddTemplate($compMe);
 
//$tpl->AddGeneric('freehorse');
$tpl->AddGeneric('comp-hotcampaigns');
 
$tpl->AddGeneric('comp-minimail');
$tpl->Write('</div>');
 
// Column 2
$tpl->Write('<div id="column2" class="column">');
$tpl->AddGeneric('comp-news');
if(vembaEnabled) { $tpl->AddGeneric('generic-undernews'); }
$tpl->AddGeneric('comp-twitter');
$tpl->Write('</div>');
 
// Column 3
$tpl->AddGeneric('generic-column3');
 
// Footer
$tpl->AddGeneric('footer');
 
// Output the page
$tpl->Output();
 
?>
 

Lounge

#dat habbo nigga
Apr 12, 2012
304
27
Switch to Rev than we better can help you! 
Oh sorry, you maybe have written something wrong, check any IP's ALL!

If not it working, please add me on skype: kaptainkanalen
 

Khalil

IDK
Dec 6, 2011
1,642
786
Isn't that explained in the initial post?

I see,so he only wants to know how to fix the redirection page ?!
He can do that if he goes to his page-client.tpl and he will be needing to search for three lines & edit them,the lines are:
"client.reload.url" : "THE REDIRECTION PAGE LINK",
"client.fatal.error.url" : " THE REDIRECTION PAGE LINK ",
"client.connection.failed.url" : " THE REDIRECTION PAGE LINK ",

----------------------------------------------------------------------------------------------

Or he can go to his external_variables and look for the senteces where there is the word "disconnected" and just change the links.

----------------------------------------------------------------------------------------------

I hope i helped,Good luck ;)
 
Jan 17, 2012
649
166
Page-client.tpl:
HTML:
<noscript>
    <meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>
 
<script type="text/javascript">
    FlashExternalInterface.loginLogEnabled = true;
   
    FlashExternalInterface.logLoginStep("web.view.start");
   
    if (top == self) {
        FlashHabboClient.cacheCheck();
    }
 
    var habboReqPath = "%www%";
   
    var flashvars = {
            "client.allow.cross.domain" : "1",
            "client.notify.cross.domain" : "1",
            "connection.info.host" : "%connection_info_host%",
                "connection.info.port" : "%connection_info_port%",
            "site.url" : "%site_url%",
            "url.prefix" : "%site_url%",
            "client.reload.url" : "localhost/login_popup",
            "client.fatal.error.url" : "localhost/flash_client_error",
            "client.connection.failed.url" : "localhost/client",
            "external.variables.txt" : "%external_variables_txt%",
            "external.texts.txt" : "%external_texts_txt%",
            "productdata.load.url" : "%productdata_load_url%",
            "furnidata.load.url" : "%furnidata_load_url%",
            "use.sso.ticket" : "1",
            "sso.ticket" : "%sso_ticket%",
            "processlog.enabled" : "1",
            "account_id" : "19927505",
            "client.starting" : "%client_starting%",
            "flash.client.url" : "%www%/client",
            "user.hash" : "<?php echo sha1(USER_ID); ?>",
            "flash.client.origin" : "popup",
                                                                                                                                                                               
    };
 
    var params = {
        "base" : "%swf_base_dir%",
        "allowScriptAccess" : "always",
        "menu" : "false"               
    };
   
    if (!(HabbletLoader.needsFlashKbWorkaround())) {
        params["wmode"] = "opaque";
    }
   
    var clientUrl = "%habbo_swf%";
    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "%web_gallery%/flash/expressInstall.swf", flashvars, params);
 
    window.onbeforeunload = unloading;
    function unloading() {
        var clientObject;
        if (navigator.appName.indexOf("Microsoft") != -1) {
            clientObject = window["flash-container"];
        } else {
            clientObject = document["flash-container"];
        }
        try {
            clientObject.unloading();
        } catch (e) {}
    }
</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" />
 
 
 
<!--[if IE 8]>
<link rel="stylesheet" href="%web_gallery%/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="%web_gallery%/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="%web_gallery%/v2/styles/ie6.css" type="text/css" />
<script src="%web_gallery%/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
 
<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="63-BUILD36 - 16.11.2010 11:51 - com" />
</head>
 
<body id="client" class="flashclient">
<div id="overlay"></div>
<img src="%web_gallery%/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" />
 
<div id="overlay"></div>
<div id="client-ui" >
    <div id="flash-wrapper">
    <div id="flash-container">
        <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
 
<div class="cbb clearfix">
    <h2 class="title">Please update your Flash Player to the latest version.</h2>
    <div class="box-content">
            <p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="%web_gallery%/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>
</div>
 
        </div>
        <script type="text/javascript">
            $('content').show();
        </script>
        <noscript>
            <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
                <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
            </div>
        </noscript>
    </div>
    </div>
    <div id="content" class="client-content"></div>           
</div>
    <div style="display: none">
 
<div id="habboCountUpdateTarget">
%hotel_status%
</div>
    <script language="JavaScript" type="text/javascript">
        setTimeout(function() {
            HabboCounter.init(600);
        }, 20000);
    </script>
    </div>
    <script type="text/javascript">
        RightClick.init("flash-wrapper", "flash-container");
        if (window.opener && window.opener != window && typeof window.opener.location.href != "undefined") {
            window.opener.location.replace(window.opener.location.href);
        }
        $(document.body).addClassName("js");
          HabboClient.startPingListener();
    </script>
 
<script type="text/javascript">
    HabboView.run();
</script>
 
<script type="text/javascript">
 
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-15697942-2']);
  _gaq.push(['_trackPageview']);
 
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
 
</script>
 
</body>
</html>
External variables:
Code:
avatareditor.allowclubtryout=0
avatareditor.promohabbos=http://%predefined%/gordon/gamedata/promo_habbos.xml
avatar.widget.enabled=1
billboard.adwarning.left.url=AdWarningsUK/ad_warning_L.png
billboard.adwarning.right.url=AdWarningsUK/ad_warning_R.png
catalog.drag_and_drop=true
cfh.usercategories.withharasser=101,102,103,104,105,106
cfh.usercategories.withnoharasser=101,102,103,104,105,106
club.subscription.disabled=1
client.fatal.error.url=http://%predefined%/client_error
client.logout.enabled=true
client.allow.facebook.like=0
client.allow.external.links=1
client.credits.embed.enabled=false
client.news.embed.enabled=true
client.minimail.embed.enabled=false
client.hotel_view.show_on_startup=1
client.hotel_view.image=hotel_view_images_hq/hotelview_default.png
client.toolbar.static.enabled=true
dynamic.download.url=http://%predefined%/gordon/hof_furni/
dynamic.download.name.template=%typeid%.cct
dynamic.download.samples.template=%typeid%.cct
embed.showInRoomInfo=true
external.texts.txt=http://%predefined%/gordon/external_flash_texts/1.txt
external.figurepartlist.txt=http://%predefined%/gordon/gamedata/figuredata.xml
group.badge.url=http://%predefined%/habbo-imaging/badge/%imagerdata%.gif
hotelview.banner.url=http://%predefined%/gordon/swf/banner.png
habboinfotool.url=/housekeeping/?r=
hover.name.enabled=true
image.library.url=http://%predefined%/gordon/c_images/
image.library.playlist.url=http://%predefined%/gordon/c_images/playlist/
image.library.catalogue.url=http://%predefined%/gordon/c_images/catalogue/
image.library.questing.url=http://%predefined%/gordon/c_images/Quests/
infostand.report.show=1
link.format.club=http://%predefined%/
link.format.credits=http://%predefined%/
link.format.collectibles=http://%predefined%/
link.format.friendlist.pref=http://%predefined%/content/1-Home/settings.cfm
link.format.mail.compose=http://%predefined%/content/1-Home/home.cfm?id=%recipientid%
link.format.userpage=http://%predefined%/content/1-Home/home.cfm?id=%ID%
interstitial.enabled=false
interstitial.show.time=5000
interstitial.max.displays=8
interstitial.interval=120000
lagWarningLog.enabled=0
latencytest.interval=20000
latencytest.report.index=3
latencytest.report.delta=100
logout.url=http://%predefined%/client/disconnected.cfm?reason=%reason%&origin=%origin%
logout.disconnect.url=http://%predefined%/client/disconnected.cfm?reason=logout&origin=%origin%
menu.avatar.enabled=true
moderatoractionlog.url=/housekeeping/?r=
navigator.default.view=public
navigator.default_tab=official
navigator.colorlimit.yellow=50
navigator.colorlimit.orange=80
navigator.colorlimit.red=92
navigator.always_open_after_login=0
new.chat.widget.enabled=1
new.chat.bubbles.enabled=0
pixels.enabled=true
purse.widget.enabled=1
predefined_room.type=1
private.image.library.url=http://%predefined%/gordon/c_images/
productdata.load.url=http://%predefined%/gordon/productdata.txt
questing.enabled=true
questing.defaultCampaign=room_builder
questing.showDetailsForNextQuest=false
questing.startQuestDelayInSeconds=10
feed.badge_decorations.album=Feed_Badges
feed.badge_decorations.decoration_id=001
furnidata.load.url=http://%predefined%/gordon/furnidata.txt
flash.dynamic.download.url=%predefined%/gordon/hof_furni/
flash.dynamic.download.name.template=%typeid%.swf
flash.dynamic.download.samples.template=mp3/sound_machine_sample_%typeid%.mp3
friendbar.enabled=true
friend_bar.helper.friend_finding.enabled=false
roomenterad.habblet.enabled=false
roomadmin.url=/housekeeping/?r=
roominfo.widget.enabled=1
room.rating.enable=1
room.dragging.always_center=0
subscription.reminder.when.days.left=5
standaloneAchievementList.enabled=false
trax.player.sample.memory.purge.enabled=1
viral.furni.post_type=appRequest
welcome.screen.enabled=1
 

Khalil

IDK
Dec 6, 2011
1,642
786
I see your using UberCMS 2.0 | here you go what to do,as i had this problem before i'd say you should replace the page-client.tpl and client.php by the original UberCMS files | then edit the disconnection link & then it should be working 100%.
 

Users who are viewing this thread

Top