Re: Phoenix CMS [UberEmu Compatible]
Quote:
Originally Posted by
iJakey
Maybe not iFrames but something other than ajax. It's too over used these days.
Also: iFrames aren't terrible...I wasn't saying to use it I was just saying its just another option...
Surely due to the fact that it's over used says something about AJAX. Eh?
Re: Phoenix CMS [UberEmu Compatible]
Still....It's still overused...whether millions of people use it or not.
Re: Phoenix CMS [UberEmu Compatible]
Nice Aaron :) Looking good :D
Re: Phoenix CMS [UberEmu Compatible]
Re: Phoenix CMS [UberEmu Compatible]
Re: Phoenix CMS [UberEmu Compatible]
When are we expecting to see this demo site aaron?
Re: Phoenix CMS [UberEmu Compatible]
Yh my balls can't wait any longer lol.
Re: Phoenix CMS [UberEmu Compatible]
Dan is coming over to my house this morning for a few days so I should expect some more progress over the next few days.
Re: Phoenix CMS [UberEmu Compatible]
Aaron, are you planning on hosting the css files local? Its a much more smarter move of course than linking to Habbo (for any imaging).
Re: Phoenix CMS [UberEmu Compatible]
Quote:
Originally Posted by
matty13
Aaron, are you planning on hosting the css files local? Its a much more smarter move of course than linking to Habbo (for any imaging).
Yes of course, all of our CSS is with the cms files, the only linking to Habbo will be for the habbo imager (avatars) which I'm hoping to get rid of in the long run.
Re: Phoenix CMS [UberEmu Compatible]
Aaron, why don't you make a figure-downloader in PHP/ColdFusion :P , The figure-downloader then downloads the images from habbo.com automaticly :)
Here's a example:
avatarimage.php
PHP Code:
<?php
// Function that Creates the avatar
function CreateAvatar()
{
$figure = $_GET["figure"];
$direction = $_GET["direction"];
$head_direction = $_GET["head_direction"];
$gesture = $_GET["gesture"];
$action = $_GET["action"];
$size = $_GET["size"];
$URL = "http://www.habbo.nl/habbo-imaging/avatarimage?figure=".$figure."&direction=".$direction."&head_direction=".$head_direction."&action=".$action."&gesture=".$gesture."&size=".$size;
$i = file_get_contents($URL);
$f = fopen("../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png","a+");
fwrite($f,$i);
fclose($f);
}
// Function that Shows the avatar
function ShowAvatar()
{
$figure = $_GET["figure"];
$direction = $_GET["direction"];
$head_direction = $_GET["head_direction"];
$gesture = $_GET["gesture"];
$action = $_GET["action"];
$size = $_GET["size"];
$URL = "../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png";
$i = file_get_contents($URL);
echo $i;
}
// Checking shit
if(isset($_GET['figure']))
{
$figure = $_GET["figure"];
$direction = $_GET["direction"];
$head_direction = $_GET["head_direction"];
$gesture = $_GET["gesture"];
$action = $_GET["action"];
$size = $_GET["size"];
$filename = "../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png";
if (file_exists( $filename )) {
header( "Content-type: image/png" );
ShowAvatar();
} else {
header( "Content-type: image/png" );
CreateAvatar();
ShowAvatar();
}
}
?>
I know, its a bit messy coded, but i coded it in 5 min so its pretty good for a 5 min work :D
Re: Phoenix CMS [UberEmu Compatible]
Quote:
Originally Posted by
PEjump2
Aaron, why don't you make a figure-downloader in PHP/ColdFusion :P , The figure-downloader then downloads the images from habbo.com automaticly :)
I'll post a example in php in a few minutes.
That 3 mins has been 3 days mate. lol.
Also, Can't wait to see the demo site!
Re: Phoenix CMS [UberEmu Compatible]
Quote:
Originally Posted by
Sledmore
That 3 mins has been 3 days mate. lol.
Also, Can't wait to see the demo site!
:o lol, i will post it now then :P
Re: Phoenix CMS [UberEmu Compatible]
Quote:
Originally Posted by
PEjump2
Aaron, why don't you make a figure-downloader in PHP/ColdFusion :P , The figure-downloader then downloads the images from habbo.com automaticly :)
Here's a example:
avatarimage.php
PHP Code:
<?php
// Function that Creates the avatar
function CreateAvatar()
{
$figure = $_GET["figure"];
$direction = $_GET["direction"];
$head_direction = $_GET["head_direction"];
$gesture = $_GET["gesture"];
$action = $_GET["action"];
$size = $_GET["size"];
$URL = "http://www.habbo.nl/habbo-imaging/avatarimage?figure=".$figure."&direction=".$direction."&head_direction=".$head_direction."&action=".$action."&gesture=".$gesture."&size=".$size;
$i = file_get_contents($URL);
$f = fopen("../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png","a+");
fwrite($f,$i);
fclose($f);
}
// Function that Shows the avatar
function ShowAvatar()
{
$figure = $_GET["figure"];
$direction = $_GET["direction"];
$head_direction = $_GET["head_direction"];
$gesture = $_GET["gesture"];
$action = $_GET["action"];
$size = $_GET["size"];
$URL = "../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png";
$i = file_get_contents($URL);
echo $i;
}
// Checking shit
if(isset($_GET['figure']))
{
$figure = $_GET["figure"];
$direction = $_GET["direction"];
$head_direction = $_GET["head_direction"];
$gesture = $_GET["gesture"];
$action = $_GET["action"];
$size = $_GET["size"];
$filename = "../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png";
if (file_exists( $filename )) {
header( "Content-type: image/png" );
ShowAvatar();
} else {
header( "Content-type: image/png" );
CreateAvatar();
ShowAvatar();
}
}
?>
I know, its a bit messy coded, but i coded it in 5 min so its pretty good for a 5 min work :D
Thats actually cool, so it saves them as they are used basically? will work nicely.
Re: Phoenix CMS [UberEmu Compatible]
Yeah it does that, and i made that script for my ubercms edit :)