RevCMS Habbo Template

Page 8 of 11 FirstFirst 1234567891011 LastLast
Results 106 to 120 of 153
  1. #106
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: RevCMS Habbo Template

    Quote Originally Posted by mubarik View Post
    Do you have a new download link to the footer version of the Habbo Theme Skin.
    Yes, Habbo Theme.zip

  2. #107
    Enthusiast FR3K is offline
    MemberRank
    Jun 2011 Join Date
    37Posts

    Re: RevCMS Habbo Template

    Actually, i dont like the register page. But the other pages looks nice. I give it 7/10.

  3. #108
    Valued Member Shebsonwai is offline
    MemberRank
    Mar 2012 Join Date
    wwwrootLocation
    108Posts

    Re: RevCMS Habbo Template

    I've a error.
    Does someone have a fix or knows how to fix?


  4. #109
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: RevCMS Habbo Template

    Quote Originally Posted by Shebsonwai View Post
    I've a error.
    Does someone have a fix or knows how to fix?

    The {newsPreview} error is because you must add this:

    PHP Code:
    $template->setParams('newsPreview'$news['shortstory']); 
    to class.forms.php underneath this:

    PHP Code:
    $template->setParams('newsDate'date("d-m-y"$news['published'])); 
    Also, change this:

    PHP Code:
    $news $engine->fetch_assoc("SELECT title, longstory, author, published FROM cms_news WHERE id = '" $engine->secure($_GET['id']) . "' LIMIT 1"); 
    to this:

    PHP Code:
    $news $engine->fetch_assoc("SELECT title, shortstory, longstory, author, published FROM cms_news WHERE id = '" $engine->secure($_GET['id']) . "' LIMIT 1"); 
    in the same file.


    The 2nd error, with <p> is because in RevCMS, the filter function has htmlspecialchars which converts all HTML objects to their ASCII codes for that thing, like < is converted to and so on, so forth. Ask for help with this on DevBest as this is a RevCMS error, and nothing to do with the theme ;)

  5. #110
    Enthusiast ChaseHotel is offline
    MemberRank
    Mar 2012 Join Date
    44Posts

    Re: RevCMS Habbo Template

    Nice release again Oliver.

    Off Topic:
    On your downloads is there anyway to download the habbo.swf?

  6. #111
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: RevCMS Habbo Template

    Quote Originally Posted by ChaseHotel View Post
    Nice release again Oliver.

    Off Topic:
    On your downloads is there anyway to download the habbo.swf?
    What Habbo.swf? XD

  7. #112
    Proficient Member iBling14 is offline
    MemberRank
    Nov 2011 Join Date
    179Posts

    Re: RevCMS Habbo Template

    Quote Originally Posted by Shebsonwai View Post
    Still has the problem.
    Maybe you should add me: Coke@hotmail.lv.
    Hi, I was looking through the code and saw this:

    $template->setParams('newsTitle', $news['title']);
    $template->setParams('newsContent', $news['longstory']);
    $template->setParams('newsAuthor', $news['author']);
    $template->setParams('newsDate', date("d-m-y", $news['published']));


    I tried what he said, and it didn't work, so I thought everything there is in order, so why not put it right under

    $template->setParams('newsDate', date("d-m-y", $news['published']));

    And it worked, try let me know?

    ends up like this:


    $template->setParams('newsTitle', $news['title']);
    $template->setParams('newsContent', $news['longstory']);
    $template->setParams('newsAuthor', $news['author']);
    $template->setParams('newsDate', date("d-m-y", $news['published']));

    $template->setParams('newsPreview', $news['shortstory']);

  8. #113
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: RevCMS Habbo Template

    Quote Originally Posted by Hejula View Post
    The {newsPreview} error is because you must add this:

    PHP Code:
    $template->setParams('newsPreview'$news['shortstory']); 
    to class.forms.php underneath this:

    PHP Code:
    $template->setParams('newsDate'date("d-m-y"$news['published'])); 
    Quote Originally Posted by iBling14 View Post
    Hi, I was looking through the code and saw this:

    $template->setParams('newsTitle', $news['title']);
    $template->setParams('newsContent', $news['longstory']);
    $template->setParams('newsAuthor', $news['author']);
    $template->setParams('newsDate', date("d-m-y", $news['published']));


    I tried what he said, and it didn't work, so I thought everything there is in order, so why not put it right under

    $template->setParams('newsDate', date("d-m-y", $news['published']));

    And it worked, try let me know?
    I said to do that in the first place... If you follow my instructions and not be a complete downie then you might get things working

  9. #114
    Proficient Member iBling14 is offline
    MemberRank
    Nov 2011 Join Date
    179Posts

    Re: RevCMS Habbo Template

    Quote Originally Posted by Hejula View Post
    I said to do that in the first place... If you follow my instructions and not be a complete downie then you might get things working

    I know, was helping him out,

  10. #115
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: RevCMS Habbo Template

    Quote Originally Posted by ChaseHotel View Post
    Go to /downloads/CustomSWF/Apple and right click on Habbo.swf, and press save link as :)

    Quote Originally Posted by Shebsonwai View Post
    Didn't worked for me.

    Please someone upload the files for news..
    Like class.forms.php.
    Lol move, post in the help section. If you are too incompetent to follow instructions you should not be here.

  11. #116
    Valued Member Shebsonwai is offline
    MemberRank
    Mar 2012 Join Date
    wwwrootLocation
    108Posts

    Re: RevCMS Habbo Template

    I will post my class.forms.php.
    Please someone look at it and fix it <3!

    <?php

    namespace Revolution;
    if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
    class forms implements iForms
    {

    public $error;

    final public function setData()
    {
    global $engine;
    foreach($_POST as $key => $value)
    {
    if($value != null)
    {
    $this->$key = $engine->secure($value);
    }
    else
    {
    $this->error = 'Please fill in all fields';
    return;
    }
    }

    }

    final public function unsetData()
    {
    global $template;
    foreach($this as $key => $value)
    {
    unset($this->$key);
    }
    }

    final public function writeData($key)
    {
    global $template;
    echo $this->$key;
    }

    final public function outputError()
    {
    global $template;
    if(isset($this->error))
    {
    echo "<div id='message'> " . $this->error . " </div>";
    }
    }

    /* Manage different pages */

    final public function getPageNews()
    {
    global $template, $engine;

    if(!isset($_GET['id']) || !is_numeric($_GET['id']))
    {
    $_GET['id'] = 1;
    }
    $result = mysql_query("SELECT title, id FROM cms_news WHERE id != '" . $engine->secure($_GET['id']) . "' ORDER BY id DESC");

    while($news1 = mysql_fetch_array($result))
    {
    $template->setParams('newsList', '&laquo; <a href="index.php?url=news&id='.$news1["id"].'">' . $news1['title'] . '</a><br/>');
    }

    $news = $engine->fetch_assoc("SELECT title, longstory, author, published FROM cms_news WHERE id = '" . $engine->secure($_GET['id']) . "' LIMIT 1");
    $template->setParams('newsTitle', $news['title']);
    $template->setParams('newsContent', $news['longstory']);
    $template->setParams('newsAuthor', $news['author']);
    $template->setParams('newsDate', date("d-m-y", $news['published']));

    unset($result);
    unset($news1);
    unset($news);
    }

    final public function getPageHome()
    {
    global $template, $engine;
    $a = 1;
    $data = mysql_query("SELECT title, id, published, shortstory, image FROM cms_news ORDER BY id DESC LIMIT 5");

    while($news = mysql_fetch_array($data, MYSQL_ASSOC))
    {
    $template->setParams('newsTitle-' . $a, $news['title']);
    $template->setParams('newsID-' . $a, $news['id']);
    $template->setParams('newsDate-' . $a, date("d-m-y", $news['published']));
    $template->setParams('newsPreview' . $a, $news['shortstory']);
    $template->setParams('newsCaption-' . $a, $news['shortstory']);
    $template->setParams('newsIMG-' . $a, $news['image']);
    $a++;
    }

    unset($news);
    unset($data);
    }

    }

    ?>

  12. #117
    Valued Member Shebsonwai is offline
    MemberRank
    Mar 2012 Join Date
    wwwrootLocation
    108Posts

    Re: RevCMS Habbo Template

    Someone need to reply my message before this one..

  13. #118
    Apprentice HabbFX is offline
    MemberRank
    Mar 2012 Join Date
    13Posts

    Re: RevCMS Habbo Template

    amazing

    im guna try

    tryed it loved it

  14. #119
    Apprentice Vair is offline
    MemberRank
    Feb 2012 Join Date
    14Posts

    Re: RevCMS Habbo Template

    Can someone re-post the revised link? It doesnt work for me and the original is very messed up. I tried to edit it but it won't work >:(

  15. #120
    Valued Member DeTerp is offline
    MemberRank
    Mar 2012 Join Date
    120Posts

    Re: RevCMS Habbo Template

    best template ever



Advertisement