'This page isn't working'

Insity

New Member
May 17, 2017
7
1
Hello, recently I have opened a habbo retro and I just added having users vote for my retro. This has worked well for other users, they have been able to freely log in but some are sending me complaints saying they're having an error; This page isn't working.
I still haven't found a solution, hence the reason to message on here. If I could get some help and feedback it would be appreciated <3_<3

Thank you :)
view.php
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Remove the forcevote... that might be interfering with your client loading; ill get a working forcevote for you now.
 

Dan3212

Member
Mar 30, 2016
86
10
I don't understand why you removed your hotel url, kinda makes it harder to understand, and probably the fact that its a screenshot.

Start off you don't need the client.starting as you've already for your client.starting.revolving [that's not the fix here, just a tip]

Is it just happening on the client or other parts of your CMS? or your hotel in general
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Add this before your doctype code:
PHP:
<?php
    $ip = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR'];
    $res = file_get_contents("http://votingapi.com/validate.php?user=robbo&ip=".$ip);
    if($res != 1 && $res != 2){
        header("Location: https://findretros.com/rankings/vote/Robbo");
    }
?>

Obviously change the vote url to your vote url and remove that messy thing on the bottom you call a force vote
 

Insity

New Member
May 17, 2017
7
1
PHP:
<?php
    $ip = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR'];
    $res = file_get_contents("http://SITEISHERE/validate.php?user=MYNAMEISHEREe&ip=".$ip);
    if($res != 1 && $res != 2){
        header("Location: https://findretros.com/rankings/vote/MYNAMEISHERE");
    }
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title> - Client</title>
        <link rel="stylesheet" href="{hotelurl}/static/css/client.css" type="text/css">
       
        <script type="text/javascript" src="{hotelurl}/static/js/swfobject.js"></script>

        <script type="text/javascript">
   var BaseUrl = "{hotelurl}/swf/gordon/PRODUCTION/";
            var flashvars =
            {
                "client.allow.cross.domain" : "",
                "client.notify.cross.domain" : "0",  
    "connection.info.host" : "",
    "connection.info.port" : "",
                "site.url" : "{hotelurl}",
                "url.prefix" : "{hotelurl}",
                "client.reload.url" : "{hotelurl}",
                "client.fatal.error.url" : "{hotelurl}",
                "client.connection.failed.url" : "{hotelurl}",
                "external.variables.txt" : "{hotelurl}/swf/gamedata/external_variables.txt?v=3",
                "external.texts.txt" : "{hotelurl}/swf/gamedata/external_flash_texts.txt?v=3",
    "external.override.texts.txt" : "{hotelurl}/swf/gamedata/external_flash_override_texts.txt?v=3",
    "external.override.variables.txt" : "{hotelurl}/swf/gamedata/external_override_variables.txt?v=3",
    "external.figurepartlist.txt" : "{hotelurl}/swf/gamedata/figuredata.xml?v=3",
                "productdata.load.url" : "{hotelurl}/swf/gamedata/productdata.txt?v=3",
                "furnidata.load.url" : "{hotelurl}/swf/gamedata/furnidata.xml?v=3",
                "use.sso.ticket" : "1",
                "sso.ticket" : "{sso}",
                "client.starting" : "Please wait!  is starting up.",  
                "processlog.enabled" : "0",
                "flash.client.url" : BaseUrl,
    "client.starting.revolving" : "For science, you monster/Loading funny message... please wait./Would you like fries with that?/Follow the yellow duck./Time is just an illusion./Are we there yet?!/I like your t-shirt./Look left. Look right. Blink twice. Ta da!/It\'s not you, it\'s me./Shhh! I\'m trying to think here./Loading pixel universe.",
                "flash.client.origin" : "popup"  
            };
            var params =
            {
                "base" : BaseUrl + "/",
                "allowScriptAccess" : "always",
                "menu" : "false"              
            };
            swfobject.embedSWF(BaseUrl + ".swf", "client", "100%", "100%", "10.0.0", "{hotelurl}/swf/gordon/PRODUCTION-201601012205-226667486/expressInstall.swf", flashvars, params, null);
    </script>
    </head>
   
    <body>
     
        <div id="client"></div>

    </body>
</html>

Still doesn't work. The same problem is coming up. Sorry I am new to this >-<
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Step 1: Remove the code I told you to add from the client, please cut it instead of deleting it totally.
PHP:
<?php
    $ip = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR'];
    $res = file_get_contents("http://SITEISHERE/validate.php?user=MYNAMEISHEREe&ip=".$ip);
    if($res != 1 && $res != 2){
        header("Location: https://findretros.com/rankings/vote/MYNAMEISHERE");
    }
?>

Step 2: Create a new file named forcevote.php and put the following code into the new file you created:
PHP:
<?php
    $ip = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR'];
    $res = file_get_contents("http://SITEISHERE/validate.php?user=MYNAMEISHEREe&ip=".$ip);
    if($res != 1 && $res != 2){
        header("Location: https://findretros.com/rankings/vote/MYNAMEISHERE");
    }
?>

Step 3: Add the following code to the top of your client.php:
PHP:
<?php include 'forcevote.php'; ?>

Try that.

AND PLEASE, IF YOU'RE USING {HOTELURL} TO LINK YOUR URL TO YOUR PAGES DON'T, USE {URL}
 

Kak

Posting Freak
Apr 21, 2017
951
165
is {hotelurl} even correct? isnt it {url}
and youre missing the production name on the top line
var BaseUrl = "{hotelurl}/swf/gordon/PRODUCTION_??????????/";
 

Insity

New Member
May 17, 2017
7
1
PHP:
<?php include 'forcevote.php'; ?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title> - Client</title>
        <link rel="stylesheet" href="{hotelurl}/static/css/client.css" type="text/css">
        
        <script type="text/javascript" src="{hotelurl}/static/js/swfobject.js"></script>

        <script type="text/javascript">
   var BaseUrl = "{hotelurl}/swf/gordon/PRODUCTION/";
            var flashvars =
            {
                "client.allow.cross.domain" : "",
                "client.notify.cross.domain" : "0",   
    "connection.info.host" : "",
    "connection.info.port" : "",
                "site.url" : "{hotelurl}",
                "url.prefix" : "{hotelurl}",
                "client.reload.url" : "{hotelurl}",
                "client.fatal.error.url" : "{hotelurl}",
                "client.connection.failed.url" : "{hotelurl}",
                "external.variables.txt" : "{hotelurl}/swf/gamedata/external_variables.txt?v=3",
                "external.texts.txt" : "{hotelurl}/swf/gamedata/external_flash_texts.txt?v=3",
    "external.override.texts.txt" : "{hotelurl}/swf/gamedata/external_flash_override_texts.txt?v=3",
    "external.override.variables.txt" : "{hotelurl}/swf/gamedata/external_override_variables.txt?v=3",
    "external.figurepartlist.txt" : "{hotelurl}/swf/gamedata/figuredata.xml?v=3",
                "productdata.load.url" : "{hotelurl}/swf/gamedata/productdata.txt?v=3",
                "furnidata.load.url" : "{hotelurl}/swf/gamedata/furnidata.xml?v=3",
                "use.sso.ticket" : "1",
                "sso.ticket" : "{sso}",
                "client.starting" : "Please wait!  is starting up.",   
                "processlog.enabled" : "0",
                "flash.client.url" : BaseUrl,
    "client.starting.revolving" : "For science, you monster/Loading funny message... please wait./Would you like fries with that?/Follow the yellow duck./Time is just an illusion./Are we there yet?!/I like your t-shirt./Look left. Look right. Blink twice. Ta da!/It\'s not you, it\'s me./Shhh! I\'m trying to think here./Loading pixel universe.",
                "flash.client.origin" : "popup"   
            };
            var params =
            {
                "base" : BaseUrl + "/",
                "allowScriptAccess" : "always",
                "menu" : "false"               
            };
            swfobject.embedSWF(BaseUrl + ".swf", "client", "100%", "100%", "10.0.0", "{hotelurl}/swf/gordon/PRODUCTION-201601012205-226667486/expressInstall.swf", flashvars, params, null);
    </script>
    </head>
    
    <body>
      
        <div id="client"></div>

    </body>
</html>

This removed the voting aspect completely.. I am so bad at this >-<
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Well if you've voted for the hotel already, then obviously it's not gonna work for you... pm me your hotel url and i'll try.
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Maybe this will help you,

Common sense? I already posted a working thing for his problem; apart from I didn't include the _once on the include php section; maybe it makes a difference, try it out.

Change
PHP:
<?php include 'forcevote.php'; ?>
to
PHP:
<?php include_once 'forcevote.php'; ?>
 

Users who are viewing this thread

Top