UberCMS 2 Avatar Cache Uber 

Status
Not open for further replies.
Junior Spellweaver
Joined
Mar 23, 2012
Messages
142
Reaction score
28
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.
 
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.
 
Status
Not open for further replies.
Back