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 Releases
CMS Releases
[Release] Jays UberCMS Edit
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="Central" data-source="post: 339871" data-attributes="member: 57042"><p>Dude this doesnt work. Its coming up with a blank screen.</p><p></p><p><?php</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('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>$tpl->AddTemplate($compMe);</p><p></p><p>$tpl->AddGeneric('comp-hotcampaigns');</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>// Output the page</p><p>$tpl->Output();</p><p></p><p>// Footer</p><p>$tpl->AddGeneric('footer');</p><p></p><p>?></p></blockquote><p></p>
[QUOTE="Central, post: 339871, member: 57042"] Dude this doesnt work. Its coming up with a blank screen. <?php 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('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')); $tpl->AddTemplate($compMe); $tpl->AddGeneric('comp-hotcampaigns'); $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'); // Output the page $tpl->Output(); // Footer $tpl->AddGeneric('footer'); ?> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Release] Jays UberCMS Edit
Top