[RevCMS] Home Page Doesn't Work

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Hello,

I am using Version 3.5.1 of RevCMS Layouts releases, I have installed HeliconAPE for some reason, but it doesn't let me access /home/USERNAME.

It brings up a 404 error in accessing that page, maybe an SQL problem? I haven't found any INSERT INTO SQL's apart from for the rooms and groups,

In this release it mentioned that this HOME page worked, but I find no evidence in that working, I haven't saw anyone else having the same problem though.

Can you provide me a fix in order to make this work?

Thank you,

Sentry234 - Nathan.
 

Wickd

The first member of the Knights of the Pink Table
Jan 15, 2013
1,936
612
Open up your home.php and at the top remove the first line of PHP code that forces your page to show you 404 error.
*Side note that release is really outdated and poorly coded so i recommend using something else.
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Open up your home.php and at the top remove the first line of PHP code that forces your page to show you 404 error.
*Side note that release is really outdated and poorly coded so i recommend using something else.

Can you give me a latest version or something that has no exploits?
 
May 1, 2015
470
154
Hi, you need to add the following rule into your web.config
Code:
<rule name="Imported Rule 7">
                    <match url="^home/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=home&amp;user={R:1}" appendQueryString="false" />
                </rule>
Works perfectly.
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Hi, you need to add the following rule into your web.config
Code:
<rule name="Imported Rule 7">
                    <match url="^home/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=home&amp;user={R:1}" appendQueryString="false" />
                </rule>
Works perfectly.

Excellent. But now when I go to url/Home/Username, it only brings up my user page, not any others.
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Post the home.php code

home.php:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>{hotelName} - <?php echo $userData['username']; ?></title>
    <script type="text/javascript">
        var andSoItBegins = (new Date()).getTime();
    </script>
<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/web-gallery/static/styles/home.css" type="text/css">
    <link rel="shortcut icon" href="{url}/app/tpl/skins/Habbo/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" />
    <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/web-gallery/static/styles/common.css" type="text/css" />
    <script src="{url}/app/tpl/skins/Habbo/web-gallery/static/js/libs2.js" type="text/javascript"></script>
    <script src="{url}/app/tpl/skins/Habbo/web-gallery/static/js/visual.js" type="text/javascript"></script>
    <script src="{url}/app/tpl/skins/Habbo/web-gallery/static/js/libs.js" type="text/javascript"></script>
    <script src="{url}/app/tpl/skins/Habbo/web-gallery/static/js/common.js" type="text/javascript"></script>
    <script src="{url}/app/tpl/skins/Habbo/web-gallery/static/js/fullcontent.js" type="text/javascript"></script>

    <script type="text/javascript">
    document.habboLoggedIn = true;
    var habboName = "{username}";
    var habboId = {userid};
    var facebookUser = false;
    var habboReqPath = "";
    var habboStaticFilePath = "{url}/app/tpl/skins/Habbo/web-gallery";
    var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
    var habboPartner = "";
    var habboDefaultClientPopupUrl = "{url}/client";
    window.name = "habboMain";
    if (typeof HabboClient != "undefined") {
        HabboClient.windowName = "26530fff566f9e67da99560b7fe8da6d71d46391";
        HabboClient.maximizeWindow = true;
    }
    </script>
   
    <meta name="description" content="{meta_description}" />
    <meta name="keywords" content="{meta_keywords}" />


    <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/web-gallery/static/styles/home.css" type="text/css" />
    <link href="{url}/app/tpl/skins/Habbo/web-gallery/myhabbo/styles/assets/other.css?v=68ea0f7ce9e122d127aa1a6da2a8bbbf" type="text/css" rel="stylesheet" />
    <link href="{url}/app/tpl/skins/Habbo/web-gallery/myhabbo/styles/assets/backgrounds.css?v=c136780c675a3e794da080601f337727" type="text/css" rel="stylesheet" />
    <link href="{url}/app/tpl/skins/Habbo/web-gallery/myhabbo/styles/assets/stickers.css?v=73d0e4e4e2d5183848be8661fa19d689" type="text/css" rel="stylesheet" />

    <!--script src="{url}/app/tpl/skins/Habbo//web-gallery/static/js/homeview.js" type="text/javascript"></script-->
    <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/web-gallery/static/styles/lightwindow.css" type="text/css" />
    <!--script src="{url}/app/tpl/skins/Habbo//web-gallery/static/js/homeauth.js" type="text/javascript"></script-->
    <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/web-gallery/static/styles/group.css" type="text/css" />
    <style type="text/css">

        #playground, #playground-outer {
            width: 752px;
            height: 1360px;
        }

    </style>

    <script type="text/javascript">
    document.observe("dom:loaded", function() { initView(55331348, 55331348); });
    </script>

    <!--[if IE 8]>
    <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo//web-gallery/static/styles/ie8.css" type="text/css" />
    <![endif]-->
    <!--[if lt IE 8]>
    <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo//web-gallery/static/styles/ie.css" type="text/css" />
    <![endif]-->
    <!--[if lt IE 7]>
    <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo//web-gallery/static/styles/ie6.css" type="text/css" />
    <script src="{url}/app/tpl/skins/Habbo//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-BUILD2361 - 08.08.2013 12:56 - com" />
</head>

<body id="home" class=" ">
<div id="overlay"></div>

<?php

$navigatorID = 1;
require_once ('app/tpl/skins/Habbo/template/header.php');

?>

       
       
<div id="content-container">

<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
        <ul>
        <?php

        $subNavigatorID = 2;
        require_once ('app/tpl/skins/Habbo/template/sub_header.php');

        ?>
        </ul>
    </div>
</div>

<div id="container">
    <div id="content" style="position: relative" class="clearfix">
    <div id="mypage-wrapper" class="cbb blue">
<div class="box-tabs-container box-tabs-left clearfix">
    <a href="/myhabbo/startSession/53812272" id="edit-button" class="new-button dark-button edit-icon" style="float:left"><b><span></span>Edit</b><i></i></a>
    <div class="myhabbo-view-tools">
    </div>
    <h2 class="page-owner">{username}</h2>
    <ul class="box-tabs"></ul>
</div>
    <div id="mypage-content">
            <div id="mypage-bg" class="b_bg_pattern_abstract2">
                <div id="playground">



<div class="movable widget ProfileWidget" id="widget-902026" style=" left: 25px; top: 26px; z-index: 4;">
<div class="w_skin_defaultskin">
    <div class="widget-corner" id="widget-902026-handle">
        <div class="widget-headline"><h3><span class="header-left">&nbsp;</span><span class="header-middle">MY PROFILE</span><span class="header-right">&nbsp;</span></h3>
        </div>   
    </div>
    <div class="widget-body">
        <div class="widget-content">
    <div class="profile-info">
        <div class="name" style="float: left">
        <span class="name-text"><?php echo $userData['username']; ?></span>
            <img id="name-55331348-report" class="report-button report-n"
                alt="report"
                src="{url}/app/tpl/skins/Habbo//web-gallery/images/myhabbo/buttons/report_button.gif"
                style="display: none;" />
        </div>

        <br class="clear" />
            <?php if ($userData['online'] == 1) { ?>
            <img alt="online" src="{url}/app/tpl/skins/Habbo/web-gallery/images/myhabbo/profile/habbo_online.gif" />
            <?php } else if ($userData['online'] == 0) { ?>
            <img alt="offline" src="{url}/app/tpl/skins/Habbo/web-gallery/images/myhabbo/profile/habbo_offline.gif" />
            <?php } ?>
        <div class="birthday text">
            {hotelName} Created On:
        </div>
        <div class="birthday date">
            <?php echo date("d-m-y", $userData['last_online']); ?>
        </div>
        <div>
           
           
        </div>
    </div>
    <div class="profile-figure">
        <img alt="justanewaccount" src="http://www.habbo.fr/habbo-imaging/avatarimage?figure={figure}.gif" />
    </div>
    <script type="text/javascript">
        document.observe("dom:loaded", function() {
            new ProfileWidget('55331348', '55331348', {
                headerText: "Are you sure?",
                messageText: "Are you sure you want to ask <strong>justanewaccount<\/strong> to be your friend? Think twice before you hit OK!",
                loginText: "You must sign in before sending a friend request.",
                buttonText: "OK",
                cancelButtonText: "Cancel"
            });
        });
    </script>
        <div class="clear"></div>
        </div>
    </div>
</div>
</div>


<div class="movable widget GroupsWidget" id="widget-1938125" style=" left: 25px; top: 240px; z-index: 10;">
<div class="w_skin_defaultskin">
<?php

$getGroupCount = mysql_query("SELECT `GroupId` FROM `user_groups` WHERE `userid` = '".$userData['id']."'");
if (mysql_num_rows($getGroupCount) == 0)
    $groupCount = 0;
else
    $groupCount = mysql_num_rows($getGroupCount);
?>
    <div class="widget-corner" id="widget-1938125-handle">
        <div class="widget-headline"><h3><span class="header-left">&nbsp;</span><span class="header-middle">MY GROUPS (<span id="groups-list-size"><?php echo $groupCount; ?></span>)</span><span class="header-right">&nbsp;</span></h3>
        </div>   
    </div>
    <div class="widget-body">
    <?php if ($groupCount == 0) { ?>
    <div class="widget-content">

<div class="groups-list-none">
You are not a member of any Groups!
</div>

<div class="groups-list-loading"><div><a href="#" class="groups-loading-close"></a></div><div class="clear"></div><p style="text-align:center"><img src="{url}/app/tpl/skins/Habbo//web-gallery/images/progress_bubbles.gif" alt="" width="29" height="6" /></p></div>
<div class="groups-list-info"></div>

        <div class="clear"></div>
        </div>
        <?php } else if ($groupCount > 0) { ?>
        <div class="widget-content">
        <div class="groups-list-container">
        <ul class="groups-list">
        <?php
        while ($theGroups = mysql_fetch_array($getGroupCount)) {
            $getGroup = mysql_query("SELECT `Name`,`DateCreated`,`Image` FROM `groups` WHERE `id` = '".$theGroups['GroupId']."'") or die(mysql_error());
            if (mysql_num_rows($getGroup) > 0) {
                $groupData = mysql_fetch_array(mysql_query("SELECT * FROM `groups` WHERE `id` = '".$theGroups['GroupId']."'"));
        ?>
       
            <li title="<?php echo filter($groupData['Name']); ?>" id="groups-list-7446454-142803">
                <div class="groups-list-icon"><a href="#"><img src="{groupImagerPath}<?php echo $groupData['Image']; ?>"></a></div>
                <div class="groups-list-open"></div>
                <h4>
                <a href="#"><?php echo filter($groupData['Name']); ?></a>
                </h4>
                <p>
                Group created:<br>
                <b><?php echo $groupData['DateCreated']; //date("d-m-y", $groupData['DateCreated']); ?></b>
                </p>
                <div class="clear"></div>
            </li>
        <?php
        }
        }
        ?>
        </ul>
        </div>
        </div>
        <?php } ?>
    </div>
</div>
</div>

<script type="text/javascript">   
document.observe("dom:loaded", function() {
    new GroupsWidget('55331348', '1938125');
});
</script>




<div class="movable widget RoomsWidget" id="widget-902024" style=" left: 450px; top: 26px; z-index: 1;">
<div class="w_skin_defaultskin">
    <div class="widget-corner" id="widget-902024-handle">
        <div class="widget-headline"><h3><span class="header-left">&nbsp;</span><span class="header-middle">MY ROOM(S)</span><span class="header-right">&nbsp;</span></h3>
        </div>   
    </div>
    <div class="widget-body">
        <div class="widget-content">
<?php   
$getRooms = mysql_query("SELECT `caption`,`description` FROM `rooms` WHERE `owner` = '".filter($_GET['username'])."'");
if (mysql_num_rows($getRooms) == 0) {
    echo 'You do not have any rooms<div class="clear"></div>';
} else {
?>
<div id="room_wrapper">
<table border="0" cellpadding="0" cellspacing="0">
<?php
while ($roomData = mysql_fetch_array($getRooms)) {
$roomDescription = null;
if ($roomData['description'] == null)
    $roomDescription = 'No room description!';
else
    $roomDescription = $roomData['description'];
    echo '<tr>
<td valign="top" >
        <div class="room_image">
                <img src="{url}/app/tpl/skins/Habbo/web-gallery/images/myhabbo/rooms/room_icon_open.gif" alt="" align="middle"/>
        </div>
</td>
<td>
            <div class="room_info">
           
                <div class="room_name">
                    '.$roomData['caption'].'
                </div>
                    <img id="room-63773258-report" class="report-button report-r"
                        alt="report"
                        src="{url}/app/tpl/skins/Habbo//web-gallery/images/myhabbo/buttons/report_button.gif"
                        style="display: none;" />
                <div class="clear"></div>
                <div>'.$roomDescription.'
                </div>
                    <!--a href="http://www.habbo.com/client?forwardId=2&amp;roomId=63773258"
                       target="72f577c250db9e5c22a5880ef8cb10f8ad18d7b6"
                       id="room-navigation-link_63773258"
                       onclick="HabboClient.roomForward(this, \'63773258\', \'private\', true); return false;">
                     enter room
                     </a-->
            </div>
           

        <br class=\"clear\" />

</td>
</tr>';
}
?>
</table>
</div>

<?php } ?>
        <div class="clear"></div>
        </div>
    </div>
</div>
</div>
                   
                </div>
                <div id="mypage-ad">
                    <div class="habblet ">
                        <div class="ad-container">
                            <script type="text/javascript">
                            </script>
                            <script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js"></script>
                        </div>
                    </div>
                </div>
            </div>
    </div>
</div>

<script type="text/javascript">
    Event.observe(window, "load", observeAnim);
    document.observe("dom:loaded", function() {
        initDraggableDialogs();
        repositionInvalidItems();
    });
</script>
    </div>
 

Users who are viewing this thread

Top