UberCMS eXpert Page

CronicHosts

Member
Aug 18, 2011
373
71
I've looked around and this hasn't been released, I know this is simple but some people might find it useful so here goes.

Download it here:


Screenshot:
iaza15110663042900.png


Add this to your HTACCESS:
PHP:
RewriteRule ^expert(|/)$ /expert.php

Here are codes if someone wants to see them:

Expert.php
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', 5);
define('PAGE_ID', 16);

require_once "global.php";

$tpl->Init();

$tpl->AddGeneric('head-init');

$tpl->AddIncludeSet('generic');
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/newcredits.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/newcredits.js'));
$tpl->WriteIncludeFiles();

$tpl->AddGeneric('head-overrides-generic');
$tpl->AddGeneric('head-bottom');
$tpl->AddGeneric('generic-top');

$tpl->Write('<div id="column1" class="column">');
$tpl->AddGeneric('comp-expert');
$tpl->Write('</div>');

$tpl->Write('<div id="column2" class="column">');
$tpl->AddGeneric('comp-expert-about')
;
$tpl->Write('</div>');
$tpl->AddGeneric('footer');

$tpl->SetParam('page_title', 'Desire eXperts');
$tpl->SetParam('body_id', 'home');

$tpl->Output();

?>

Comp-Expert
PHP:
<?php

function GetDescr($level)
{
 
}

$get = dbquery("SELECT id,name FROM ranks WHERE id = 3 ");

while ($group = mysql_fetch_assoc($get))
{
echo '<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title"><span style="float: left;">' . clean($group['name']) . 's</span> <span style="float: right; font-weight: normal; font-size: 75%;">' . GetDescr($group['id']) . '</span></h2>';

$getMembers = dbquery("SELECT id,username,motto,look,online FROM users WHERE rank = '" . $group['id'] . "'");

echo '<div class="box-content">';

if (mysql_num_rows($getMembers) > 0)
{
$oe = 1;

while ($member = mysql_fetch_assoc($getMembers))
{
if ($oe == 2)
{
$oe = 1;
}
else
{
$oe = 2;
}

echo '<table width="100.3%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
<tbody>
<tr>
<td valign="middle" width="25">
<img style="margin-top: -10px;" src="http://www.habbo.com/habbo-imaging/avatarimage?figure=' . $member['look'] . '&action=crr=3&direction=2&head_direction=3&gesture=sml&size=2">
</td>
<td valign="top">
<b style="font-size: 110%;"><a href="%www%/home/' . clean($member['username']) . '">' . clean($member['username']) . '</a></b><br />
<i>' . clean($member['motto']) . '</i><br />
<br />';

$getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 5");
 
{
echo '<img src="%www%/c_images/album1584/XXX.gif" style="float: left;">&nbsp;';
}

echo '</td>
<td valign="top" style="float: right;">
' . (($member['online'] == "1") ? '<b style="color: black;">Online<</b>' : '<b style="color: grey;">Offline</b>') . '
</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>There are no eXperts on Desire Hotel.</i>';
}

echo '</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
}

?>

Comp-Expert-About
PHP:
<?php
echo '<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title"><span style="float: left;">Zap eXperts</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';

$getMembers = dbquery("SELECT id,username,motto,look,online,last_online,rank FROM users WHERE expert = '1'");

echo '<div class="box-content">';

if (mysql_num_rows($getMembers) > 0)
{
$oe = 1;

while ($member = mysql_fetch_assoc($getMembers))
{
if ($oe == 2)
{
$oe = 1;
}
else
{
$oe = 2;
}

echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
<tbody>
<tr>
<td valign="middle" width="25">
<img style="margin-top: -10px;" src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=' . $member['look'] . '&size=b&direction=2&head_direction=3&gesture=sml&size=m">
</td>
<td valign="top">
<b style="font-size: 110%;"><a href="%www%/home/' . clean($member['username']) . '">' . clean($member['username']) . '</a></b><br />
<i>' . clean($member['motto']) . '</i><br /> Last online: ' . date('d F, Y', $member['last_online']) . '
<br />';
echo '<img src="http://assets.zaphotel.net/c_images/album1584/XXX.gif" style="float: left;">&nbsp;';
echo '</td>
<td valign="top" style="float: right;">
' . (($member['online'] == "1") ? '<b style="color: darkgreen;">Online</b>' : '<b style="color: darkred;">Offline</b>') . '
</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>Click <a href="http://zapgaming.net/showthread.php?t=529" target="_new">here</a> to view the eXperts.</i>';
}

echo '</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';

You might want to edit the content, I couldn't think of anything.

This is a noob release, It was made for the noobs.

Thanks,
Seano2o6 ( Pr0ject )
 

Users who are viewing this thread

Top