How do I put mylo radio on ubercms 2? and make it play everytime somebody gets on?
Printable View
How do I put mylo radio on ubercms 2? and make it play everytime somebody gets on?
Just put this code where ever you want to radio to appear
Code:<center><iframe src="http://myloradio.net/embed/embedcode.html" scrolling="no" frameborder="0" height="50" width="250"></iframe>
Ah ok man, I want it here.... Attachment 137191 Okay here is my me.php
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| hey sonic what the fuck is going on
| #######################################################################
| 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 Uber Club »</a>');
//$compMe->SetParam('clubStatus', '');
$tpl->AddTemplate($compMe);
//$tpl->AddGeneric('freehorse');
$tpl->AddGeneric('comp-minimail');
$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');
// Footer
$tpl->AddGeneric('footer');
// Output the page
$tpl->Output();
?>
You need to make a new .tpl filein includes -> tpl and paste Clawed's code there. Then go to your me.php and add $tpl->AddGeneric('nameofyourtpl'); above $tpl->AddGeneric('comp-minimail');
When I do it, I get a "sever error"