Avatar/look?

PowerTurtle

New Member
May 3, 2016
11
1
My /me site cant find my avatars look...
Does somebody know, where PlusEMU/RevCMS have the looks saved at?

I am using an Shock Theme edit....
 

PowerTurtle

New Member
May 3, 2016
11
1
It is using the habbo-imaging, most of the cases habbo's own. Try see if the link actually work, else change it.

Code:
<img src="{habboImagerPath}<?php echo $user1['look']; ?>&amp;action=wav&gesture=sml" alt="" />

Of what i can see in this code, it is serching for the users look, and it is defined in the database, but i cant find where it should be saved at tho.. and i dont know where
Code:
{habboImagerPath}
have been defined...
 

BIOS

ಠ‿ಠ
Apr 25, 2012
906
247
Code:
<img src="{habboImagerPath}<?php echo $user1['look']; ?>&amp;action=wav&gesture=sml" alt="" />

Of what i can see in this code, it is serching for the users look, and it is defined in the database, but i cant find where it should be saved at tho.. and i dont know where
Code:
{habboImagerPath}
have been defined...
{habboImagerPath} will most likely be defined in the CMS configuration I'm guessing
 

PowerTurtle

New Member
May 3, 2016
11
1
{habboImagerPath} will most likely be defined in the CMS configuration I'm guessing

The only thing there is close to that is:
PHP:
$_CONFIG['hotel']['imager'] = $_CONFIG['hotel']['url'].'/avatar.php?figure='; //something
I have tried to change the ['imager'] to ['habboImagerPath'] and it dident help...

I am using this edit of Shock Theme:
 

PowerTurtle

New Member
May 3, 2016
11
1
Its app/class.template.php Paste contents

Ahh, okay, this is the one from the shock theme i downloaded! I havent looked in the file before...but i can allready see that it is defined in there..
PHP:
namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class template implements iTemplate
{

    public $tpl;
   
    private $params = array();

    final public function Initiate()
    {
        global $_CONFIG, $users, $engine, $core, $template;
        $this->setParams('hotelName', $_CONFIG['hotel']['name']);
        $this->setParams('hotelDesc', 'desc', $_CONFIG['hotel']['desc']);
        $this->setParams('footer', $_CONFIG['hotel']['footer']);
        $this->setParams('url', $_CONFIG['hotel']['url']);
        $this->setParams('online', $core->getOnline());
        $this->setParams('status', $core->getStatus());
        $this->setParams('web_build', $_CONFIG['hotel']['web_build']);
        $this->setParams('external_vars', $_CONFIG['hotel']['external_vars']);
        $this->setParams('external_texts', $_CONFIG['hotel']['external_texts']);
        $this->setParams('swf_folder', $_CONFIG['hotel']['swf_folder']);
        $this->setParams('furni_data', $_CONFIG['hotel']['furni_data']);
        $this->SetParams('product_data', $_CONFIG['hotel']['product_data']);
        $this->SetParams('hotelmail', $_CONFIG['hotel']['mail']);
        $this->setParams('viptekst', $_CONFIG['hotel']['vip']);
        $this->setParams('tekst_on', $_CONFIG['hotel']['online']);
        $this->setParams('tekstmynter', $_CONFIG['hotel']['mynter']);
        $this->setParams('tekstpixler', $_CONFIG['hotel']['pixler']);
        $this->setParams('habboImagerPath', $_CONFIG['hotel']['imager']);
        $this->setParams('badgeImagePath', $_CONFIG['hotel']['badge']);
       
        //Social Sites
        $this->setParams('twitter', $_CONFIG['hotel']['twitter']); // Twiter Username
        $this->setParams('twitterwidget_id', $_CONFIG['hotel']['twitterwidget_id']); // Twiiter Widget ID
        $this->setParams('facebook', $_CONFIG['hotel']['facebook']); // Facebook Email
       
        $this->setParams('skin', $_CONFIG['template']['style']);
       
        if($users->isLogged())
        {   
            $this->setParams('userid', $users->getInfo($_SESSION['user']['id'], 'id'));
            $this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
            $this->setParams('rank', $users->getInfo($_SESSION['user']['id'], 'rank'));
            $this->setParams('motto', $users->getInfo($_SESSION['user']['id'], 'motto'));
            $this->setParams('email', $users->getInfo($_SESSION['user']['id'], 'mail'));
            $this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits'));
            $this->setParams('seasonal', $users->getInfo($_SESSION['user']['id'] ,'seasonal_currency'));
            $this->setParams('activitypoints', $users->getInfo($_SESSION['user']['id'], 'activity_points'));
            $this->setParams('figure', $users->getInfo($_SESSION['user']['id'], 'look'));
            $this->setParams('yourip', $users->getInfo($_SESSION['user']['id'], 'ip_last'));
            $this->setParams('lastSignedIn',  date('M j, Y H:i:s A', $users->getInfo($_SESSION['user']['id'],  'last_online'))); 

            if($this->params['rank'] > 3)
            {
                $this->setParams('housekeeping', '<li><a href="ase/">Housekeeping</a></li>');
            }
            else
            {
                $this->setParams('housekeeping', '');
            }
           
            if($_GET['url'] == 'me' || $_GET['url'] == 'account' || $_GET['url'] == 'home' || $_GET['url'] == 'settings' || $_GET['url'] == 'community')
            {
                $template->form->getPageHome();               
            }
           
            if($_GET['url'] == 'news' || $_GET['url'] == 'articles')
            {
                $template->form->getPageNews();
            }       
        }
       
    }
   
    final public function setParams($key, $value)
    {   
        $this->params[$key] .= $value;
    }
   
    final public function filterParams($str)
    {
        foreach($this->params as $key => $value)
        {
            $str = str_ireplace('{' . $key . '}', $value, $str);
        }

        return $str;
    }
       
    final public function write($str)
    {
        $this->tpl .= $str;
    }
   
    final public function outputTPL()
    {
        echo $this->filterParams($this->tpl);
        unset($this->tpl);
    }
}
?>
 

BIOS

ಠ‿ಠ
Apr 25, 2012
906
247
The only thing there is close to that is:
PHP:
$_CONFIG['hotel']['imager'] = $_CONFIG['hotel']['url'].'/avatar.php?figure='; //something
I have tried to change the ['imager'] to ['habboImagerPath'] and it dident help...

I am using this edit of Shock Theme:
That's it, if you look in the code you recently posted of the class you can see that it uses the setParams method and sets {habboImagerPath} to the value of this config setting:
PHP:
$this->setParams('habboImagerPath', $_CONFIG['hotel']['imager']);

So just change the $_CONFIG['hotel']['imager'] to the imaging link you want to use and then {habboImagerPath} will use this.
 

mcmatters

Member
Dec 2, 2014
195
6
That's it, if you look in the code you recently posted of the class you can see that it uses the setParams method and sets {habboImagerPath} to the value of this config setting:
PHP:
$this->setParams('habboImagerPath', $_CONFIG['hotel']['imager']);

So just change the $_CONFIG['hotel']['imager'] to the imaging link you want to use and then {habboImagerPath} will use this.
The problem is that avatar.php doesnt exist, so he should use the habbo one
 

Users who are viewing this thread

Top