Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Client problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Lionches" data-source="post: 134078" data-attributes="member: 11637"><p>Why the me page? Oh well:</p><p>[PHP]<?php</p><p>/*=======================================================================</p><p>| UberCMS - Advanced Website and Content Management System for uberEmu</p><p>| #######################################################################</p><p>| Copyright (c) 2010, Roy 'Meth0d'</p><p>| http://www.meth0d.org</p><p>| #######################################################################</p><p>| This program is free software: you can redistribute it and/or modify</p><p>| it under the terms of the GNU General Public License as published by</p><p>| the Free Software Foundation, either version 3 of the License, or</p><p>| (at your option) any later version.</p><p>| #######################################################################</p><p>| This program is distributed in the hope that it will be useful,</p><p>| but WITHOUT ANY WARRANTY; without even the implied warranty of</p><p>| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</p><p>| GNU General Public License for more details.</p><p>\======================================================================*/</p><p> </p><p>define('TAB_ID', 1);</p><p>define('PAGE_ID', 2);</p><p> </p><p>require_once "global.php";</p><p>define("SideBarAd", true);</p><p> </p><p> </p><p> </p><p>if (!LOGGED_IN)</p><p>{</p><p> header("Location: " . WWW . "/");</p><p> exit;</p><p>}</p><p>else if ($users->GetUserVar(USER_ID, 'newbie_status') == "0")</p><p>{</p><p> header("Location: " . WWW . "/register/welcome");</p><p> exit;</p><p>}</p><p> </p><p>// Initialize template system</p><p>$tpl->Init();</p><p> </p><p>// Initial variables</p><p>$tpl->SetParam('page_title', 'Home');</p><p> </p><p>// Generate page header</p><p>$tpl->AddGeneric('head-init');</p><p>$tpl->AddIncludeSet('generic');</p><p>$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/personal.css', 'stylesheet'));</p><p>$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/habboclub.js'));</p><p>$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/minimail.css', 'stylesheet'));</p><p>$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/myhabbo/control.textarea.css', 'stylesheet'));</p><p>$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/minimail.js'));</p><p>$tpl->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/static/styles/lightweightmepage.css'));</p><p>$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/lightweightmepage.js'));</p><p> </p><p> </p><p>$tpl->WriteIncludeFiles();</p><p>$tpl->AddGeneric('head-overrides-generic');</p><p>$tpl->AddGeneric('head-bottom');</p><p> </p><p>// Generate generic top/navigation/login box</p><p>$tpl->AddGeneric('generic-top');</p><p> </p><p>// Column 1</p><p> </p><p> </p><p>// Me/infofeed widget</p><p>$tpl->Write('<div id="column1" class="column">');</p><p>$compMe = new Template('comp-me');</p><p>$compMe->SetParam('look', $users->GetUserVar(USER_ID, 'look'));</p><p>$compMe->SetParam('motto', $users->GetUserVar(USER_ID, 'motto'));</p><p>$compMe->SetParam('creditsBalance', intval($users->GetUserVar(USER_ID, 'credits')));</p><p>$compMe->SetParam('pixelsBalance', intval($users->GetUserVar(USER_ID, 'activity_points')));</p><p>$compMe->SetParam('lastSignedIn', $users->GetUserVar(USER_ID, 'last_online'));</p><p>$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>');</p><p>//$compMe->SetParam('clubStatus', '');</p><p>$tpl->AddTemplate($compMe);</p><p> </p><p>//$tpl->AddGeneric('freehorse');</p><p>$tpl->AddGeneric('comp-hotcampaigns');</p><p> </p><p>$tpl->AddGeneric('comp-minimail');</p><p>$tpl->Write('</div>');</p><p> </p><p>// Column 2</p><p>$tpl->Write('<div id="column2" class="column">');</p><p>$tpl->AddGeneric('comp-news');</p><p>if(vembaEnabled) { $tpl->AddGeneric('generic-undernews'); }</p><p>$tpl->AddGeneric('comp-twitter');</p><p>$tpl->Write('</div>');</p><p> </p><p>// Column 3</p><p>$tpl->AddGeneric('generic-column3');</p><p> </p><p>// Footer</p><p>$tpl->AddGeneric('footer');</p><p> </p><p>// Output the page</p><p>$tpl->Output();</p><p> </p><p>?>[/PHP]</p></blockquote><p></p>
[QUOTE="Lionches, post: 134078, member: 11637"] 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 »</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(); ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Client problem
Top