UberCMS 2 Avatar Cache

Results 1 to 6 of 6
  1. #1
    Elite Member Xversion is offline
    Member +Rank
    Mar 2012 Join Date
    LocalhostLocation
    144Posts

    cool UberCMS 2 Avatar Cache

    Hi,

    I'm bored and dunno what to do so I decided to release a little script I coded..

    1) Go to your website root dir and create a folder called "cache"
    2) Open up your me.php in your root dir, search for:
    Code:
    // Column 1
    and under it paste the following:
    Code:
    if (!file_exists('./cache/'.$users->GetUserVar(USER_ID, 'look').'.png')){ 
    	file_put_contents('./cache/'.$users->GetUserVar(USER_ID, 'look').'.png', file_get_contents('http://www.habbo.nl/habbo-imaging/avatarimage?figure='.$users->GetUserVar(USER_ID, 'look').'&action=crr=667&size=b&direction=2&head_direction=3&gesture=sml&size=')); 
    		}
    3) Navigate to your comp-me.tpl and replace the default imager code with:
    Code:
    <img alt="%habboName%" src="%www%/cache/%look%.png" />
    Done.


  2. #2
    Newbie ComputerTrek is offline
    MemberRank
    Dec 2013 Join Date
    1Posts

    Re: UberCMS 2 Avatar Cache

    Thanks , Xversion.I've been looking for this for a long time. :D

  3. #3
    Elite Member Xversion is offline
    Member +Rank
    Mar 2012 Join Date
    LocalhostLocation
    144Posts

    Re: UberCMS 2 Avatar Cache

    Quote Originally Posted by ComputerTrek View Post
    Thanks , Xversion.I've been looking for this for a long time. :D
    Your welcome.

  4. #4
    Sorcerer Supreme Vrop93 is offline
    Member +Rank
    Jan 2012 Join Date
    Grocery StoreLocation
    320Posts

    Re: UberCMS 2 Avatar Cache

    This is a simple code, but it is useful thanks dude! Cheers

  5. #5
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: UberCMS 2 Avatar Cache

    I think hotlinking habbos servers will save you much more bandwidth.
    Also what you expect a with a hotel that has over 400 online? It will spam your server.

    Pretty useless unless you want to slow down page loading.

  6. #6
    Elite Member Xversion is offline
    Member +Rank
    Mar 2012 Join Date
    LocalhostLocation
    144Posts

    Re: UberCMS 2 Avatar Cache

    Quote Originally Posted by HillBilly View Post
    I think hotlinking habbos servers will save you much more bandwidth.
    Also what you expect a with a hotel that has over 400 online? It will spam your server.

    Pretty useless unless you want to slow down page loading.
    True, haven't though about all of this, just released it because I was bored.



Advertisement