UberCMS v1.xx - UberCMS v1.01

Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 52
  1. #31
    Enthusiast Gutta is offline
    MemberRank
    Dec 2012 Join Date
    28Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Quote Originally Posted by Liam View Post
    My CMS edit is still better ;) Nah mate, thanks for releasing another UberCMS edit, although you could have done a better job at it! Thanks for releasing your edit though, it is much appreciated!
    I guess your right he could have upgraded more, (Like The Future!) I would like you comment but I don't know how -.- can't find it!

  2. #32
    Account Upgraded | Title Enabled! Marceline is offline
    MemberRank
    Oct 2012 Join Date
    Guess.Location
    228Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Thanks for realeasing your ubercms edit.
    Its awesome

  3. #33
    Member Gwoxie is offline
    MemberRank
    May 2012 Join Date
    The NetherlandsLocation
    80Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    client doesn't work someone can support me?

    (mennaab)

  4. #34
    fak Dysfunctional is offline
    MemberRank
    Jul 2012 Join Date
    AustraliaLocation
    391Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    I get disconnected when I recieve a Friend request.

  5. #35
    Novice Informing is offline
    MemberRank
    Aug 2012 Join Date
    MartinsvilleLocation
    1Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Excellent,I love this release.

  6. #36
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,375Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Quote Originally Posted by Dysfunctional View Post
    I get disconnected when I recieve a Friend request.
    That's your Emulator not the CMS

  7. #37
    Banned V for Vendetta is offline
    BannedRank
    Feb 2007 Join Date
    1,809Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Thanks for this release i will try it out soon As i am currently coding new features on to HabboLatino.

  8. #38
    fak Dysfunctional is offline
    MemberRank
    Jul 2012 Join Date
    AustraliaLocation
    391Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Quote Originally Posted by Jonteh View Post
    That's your Emulator not the CMS
    No, it was the CMS. I fixed it now.

  9. #39
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Sv: UberCMS v1.xx - UberCMS v1.01

    Quote Originally Posted by Dysfunctional View Post
    No, it was the CMS. I fixed it now.
    What was the CMS problen then?;)

    Sent from Tapatalk 2.

  10. #40
    Apprentice ItsTim is offline
    MemberRank
    Dec 2012 Join Date
    The NetherlandsLocation
    20Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Nice Release, Thx for Sharing

  11. #41
    Enthusiast Otus is offline
    MemberRank
    Dec 2012 Join Date
    42Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Okay, so I have it up and running but everytime I login to /me I get 'Page Not Found' its quite annoying and frustrating. Can anyone help me?

    class.tpl :

    class uberTpl
    {
    private $outputData;
    private $params = Array();
    private $includeFiles = Array();

    public function Init()
    {
    global $core, $users;

    $this->SetParam('site_name', 'Edition');
    $this->SetParam('hiring', 'Yes');
    $this->SetParam('hotel_made_year', '21st December, 2012');
    $this->SetParam('forumlink', '%www%/forum');
    // This below if the Facebook USERNAME of the page. So only enter "hotelname" if your page was http://facebook.com/hotelname
    $this->SetParam('facebook', 'https://www.facebook.com/pages/Edition-Hotel-Community/436475216417684');
    $this->SetParam('support_email', '@gmail.com');
    $this->SetParam('body_id', '');
    $this->SetParam('page_title', ' ');
    $this->SetParam('flash_build', 'flash_51_45');
    $this->SetParam('web_build', '63_1dc60c6d6ea6e089c6893ab4e0541ee0/1458');
    $this->SetParam('web_build_str', '51-BUILD45 - 18.05.2010 16:16 - uk');
    $this->SetParam('req_path', WWW);
    $this->SetParam('www', WWW);
    $this->SetParam('hotel_status_fig', uberCore::GetSystemStatusString(true));
    $this->SetParam('hotel_status', uberCore::GetSystemStatusString(false));

    if (LOGGED_IN)
    {
    $this->SetParam('habboLoggedIn', 'true');
    $this->SetParam('habboName', USER_NAME);
    $this->SetParam('vipbalance', '<b>' . $users->GetUserVar(USER_ID, 'vip_points') . ' </b>');
    }
    else
    {
    $this->SetParam('habboLoggedIn', 'false');
    $this->SetParam('habboName', 'null');
    }
    }

    public function AddIncludeSet($set)
    {
    switch (strtolower($set))
    {
    case "frontpage":

    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/landing.js'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/frontpage.css', 'stylesheet'));
    break;

    case "register":

    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/style.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/buttons.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/boxes.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/tooltips.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/embeddedregistration.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/simpleregistration.js'));
    break;

    case "process-template":

    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/style.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/buttons.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/boxes.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/tooltips.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/process.css', 'stylesheet'));
    break;

    case 'myhabbo':

    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/style.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/buttons.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/boxes.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/tooltips.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/myhabbo.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/skins.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/dialogs.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/buttons.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/control.textarea.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/boxes.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://www.habbo.co.uk/myhabbo/styles/assets.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/homeview.js'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/lightwindow.css', 'stylesheet'));
    break;

    case 'default':
    default:

    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
    $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/style.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/buttons.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/boxes.css', 'stylesheet'));
    $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/tooltips.css', 'stylesheet'));
    break;
    }
    }

    public function AddGeneric($tplName)
    {
    $tpl = new Template($tplName);
    $this->outputData .= $tpl->GetHtml();
    }

    public function AddTemplate($tpl)
    {
    $this->outputData .= $tpl->GetHtml();
    }

    public function SetParam($param, $value)
    {
    $this->params[$param] = is_object($value) ? $value->fetch() : $value;
    }

    public function UnsetParam($param)
    {
    unset($this->params[$param]);
    }

    public function AddIncludeFile($incFile)
    {
    $this->includeFiles[] = $incFile;
    }

    public function WriteIncludeFiles()
    {
    foreach ($this->includeFiles as $f)
    {
    $this->Write($f->GetHtml() . LB);
    }
    }

    public function Write($str)
    {
    $this->outputData .= $str;
    }

    public function FilterParams($str)
    {
    foreach ($this->params as $param => $value)
    {
    $str = str_ireplace('%' . $param . '%', $value, $str);
    }

    return $str;
    }

    public function Output()
    {
    global $core;

    $this->Write(LB . LB . '<!-- uberCMS: Took ' . (microtime(true) - $core->execStart) . ' to output this page -->' . LB . LB);

    echo $this->FilterParams($this->outputData);
    }
    }

    class Template
    {
    private $params = Array();
    private $tplName = '';

    public function Template($tplName)
    {
    $this->tplName = $tplName;
    }

    public function GetHtml()
    {
    global $users;

    extract($this->params);

    $file = CWD . 'inc/tpl/' . $this->tplName . '.tpl';

    if (!file_exists($file))
    {
    uberCore::SystemError('Template system error', 'Could not load template: ' . $this->tplName);
    }

    ob_start();
    include($file);
    $data = ob_get_contents();
    ob_end_clean();

    return $this->FilterParams($data);
    }

    public function FilterParams($str)
    {
    foreach ($this->params as $param => $value)
    {
    if (is_object($value))
    {
    continue;
    }

    $str = str_ireplace('%' . $param . '%', $value, $str);
    }

    return $str;
    }

    public function SetParam($param, $value)
    {
    $this->params[$param] = $value;
    }

    public function UnsetParam($param)
    {
    unset($this->params[$param]);
    }
    }

    class IncludeFile
    {
    private $type;
    private $src;
    private $rel;
    private $name;

    public function IncludeFile($type, $src, $rel = '', $name = '')
    {
    global $tpl;

    $this->type = $type;
    $this->src = $src;
    $this->rel = $rel;
    $this->name = $name;
    }

    public function GetHtml()
    {
    switch ($this->type)
    {
    case 'application/rss+xml':

    return '<link rel="' . $this->rel . '" type="' . $this->type . '" title="' . $this->name . '" href="' . $this->src . '" />';

    case 'text/javascript':

    return '<script src="' . $this->src . '" type="text/javascript"></script>';

    case 'text/css':
    default:

    return '<link rel="' . $this->rel . '" href="' . $this->src . '" type="' . $this->type . '" />';
    }
    }
    }

    ?>

  12. #42
    Enthusiast Otus is offline
    MemberRank
    Dec 2012 Join Date
    42Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Does anyone know what I must put here for class.tpl. I have the server up and all but I seem to run into a few errors such as when I go farther /me page. I get "Page Not Found!".. What am I doing wrong..? Idk if its class.tpl in general but I haven't worked on it and I'm scared to fk it up so can anyone help me.

    class tpl file: $this->SetParam('site_name', 'Edition');
    $this->SetParam('hiring', 'Yes');
    $this->SetParam('hotel_made_year', '21st December, 2012');
    $this->SetParam('forumlink', '%www%/forum');
    // This below if the Facebook USERNAME of the page. So only enter "hotelname" if your page was http://facebook.com/hotelname
    $this->SetParam('facebook', 'https://www.facebook.com/pages/Edition-Hotel-Community/436475216417684');
    $this->SetParam('support_email', '@gmail.com');
    $this->SetParam('body_id', '');
    $this->SetParam('page_title', ' ');
    $this->SetParam('flash_build', 'flash_51_45');
    $this->SetParam('web_build', '63_1dc60c6d6ea6e089c6893ab4e0541ee0/1458');
    $this->SetParam('web_build_str', '51-BUILD45 - 18.05.2010 16:16 - uk');
    $this->SetParam('req_path', WWW);
    $this->SetParam('www', WWW);
    $this->SetParam('hotel_status_fig', uberCore::GetSystemStatusString(true));
    $this->SetParam('hotel_status', uberCore::GetSystemStatusString(false));

  13. #43
    Alpha Member zMagenta is offline
    MemberRank
    Jun 2011 Join Date
    1,860Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Quote Originally Posted by Otus View Post
    Does anyone know what I must put here for class.tpl. I have the server up and all but I seem to run into a few errors such as when I go farther /me page. I get "Page Not Found!".. What am I doing wrong..? Idk if its class.tpl in general but I haven't worked on it and I'm scared to fk it up so can anyone help me.

    class tpl file: $this->SetParam('site_name', 'Edition');
    $this->SetParam('hiring', 'Yes');
    $this->SetParam('hotel_made_year', '21st December, 2012');
    $this->SetParam('forumlink', '%www%/forum');
    // This below if the Facebook USERNAME of the page. So only enter "hotelname" if your page was http://facebook.com/hotelname
    $this->SetParam('facebook', 'https://www.facebook.com/pages/Edition-Hotel-Community/436475216417684');
    $this->SetParam('support_email', '@gmail.com');
    $this->SetParam('body_id', '');
    $this->SetParam('page_title', ' ');
    $this->SetParam('flash_build', 'flash_51_45');
    $this->SetParam('web_build', '63_1dc60c6d6ea6e089c6893ab4e0541ee0/1458');
    $this->SetParam('web_build_str', '51-BUILD45 - 18.05.2010 16:16 - uk');
    $this->SetParam('req_path', WWW);
    $this->SetParam('www', WWW);
    $this->SetParam('hotel_status_fig', uberCore::GetSystemStatusString(true));
    $this->SetParam('hotel_status', uberCore::GetSystemStatusString(false));
    It's your .htaccess I'm assuming.

  14. #44
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    I'm quite flattered that you've based it on what I modified/created, Luxo Hotel was a hotel I was working at alongside my friend Blake. He needed a decent cms, which led me to create this, which was awesome in its time - sadly it is outdated now (too bad you dont have the updated version).

    But nice try I guess...

  15. #45
    Account Upgraded | Title Enabled! RoyZ is offline
    MemberRank
    Jul 2011 Join Date
    BelgiumLocation
    316Posts

    Re: UberCMS v1.xx - UberCMS v1.01

    Still searching for 'the heavy edit' part ,
    nice rel tho



Page 3 of 4 FirstFirst 1234 LastLast

Advertisement