any good ones post them here plz +rep to all good ones, please do not repeat

any good ones post them here plz +rep to all good ones, please do not repeat
Joe
Heres the best one.
HabboTimes ~ Offizielle Fanseite zum Habbohotel
habbotools.de That one is good
was mine any good then?
Its the same thing... AllHabbo Had one.
Hey merseymusic,
I think the way you should approach this is by using a great text generator located at www.habbotimes.de - if you can navigate your way around the site you'll easily find it.
If you fail to find it; it is indeed located here: http://www.habbotimes.de/?s=63
It is german but it's easily understandable.
Thanks,
Xeoro.
have a folder with all the letters and define them in the $fonts variable.PHP Code:<?
$pos = '10';
$fonts['2'] = '2';
$fonts['1'] = 'blah';
$fonts['groot'] = 'groot';
$fonts['love'] = 'love';
if($_GET[font] == "1") {
define("height", 20);
}
if($_GET[font] == "groot") {
define("height", 43);
}
if($_GET[font] == "love") {
define("height", 34);
}
if(!function_exists('str_split')){
function str_split($string,$split_length=1){
$count = strlen($string);
if($split_length < 1){
return false;
} elseif($split_length > $count){
return array($string);
} else {
$num = (int)ceil($count/$split_length);
$ret = array();
for($i=0;$i<$num;$i++){
$ret[] = substr($string,$i*$split_length,$split_length);
}
return $ret;
}
}
}
if(preg_match("/^[a-zA-Z0-9 ]{0,30}$/", $_GET['message']) && !empty($_GET['message'])) {
$chars = str_split(str_replace(' ', '_', $_GET['message']));
} else {
$chars = str_split('Invalid_Message');
}
// Assign font variable
$fontDirectory = $fonts[$_GET['font']];
if($fontDirectory == '') $fontDirectory = 'test';
// Count size and create images
foreach($chars as $char) {
$cl = $fontDirectory.'/'.$char.'.gif';
$charsImgs[] = @imagecreatefromgif($cl);
@list($width) = @getimagesize($cl) or exit;
$charsWidth[] = $width;
$imgWidth = $imgWidth+$width;
}
// Create and merge final image
$imgWidth = ($pos*2)+$imgWidth;
$img = @imagecreate($imgWidth, height);
$bg = @imagecolorallocate($img, 255, 255, 255);
foreach($charsImgs as $charsImg) {
$width = array_shift($charsWidth);
@imagecopymerge($img, $charsImg, $pos, 0, 0, 0, $width, height, 100);
$pos = $pos+$width;
}
header("Content-type: image/gif");
@imagegif($img);
@imagedestroy($img);
exit;
?>
basically what i posted.Hey merseymusic,
I think the way you should approach this is by using a great text generator located at www.habbotimes.de - if you can navigate your way around the site you'll easily find it.
If you fail to find it; it is indeed located here: http://www.habbotimes.de/?s=63
It is german but it's easily understandable.
Thanks,
Xeoro.
+ rep for the code but i cant get it to work (im a n00b) lolhave a folder with all the letters and define them in the $fonts variable.PHP Code:<?
$pos = '10';
$fonts['2'] = '2';
$fonts['1'] = 'blah';
$fonts['groot'] = 'groot';
$fonts['love'] = 'love';
if($_GET[font] == "1") {
define("height", 20);
}
if($_GET[font] == "groot") {
define("height", 43);
}
if($_GET[font] == "love") {
define("height", 34);
}
if(!function_exists('str_split')){
function str_split($string,$split_length=1){
$count = strlen($string);
if($split_length < 1){
return false;
} elseif($split_length > $count){
return array($string);
} else {
$num = (int)ceil($count/$split_length);
$ret = array();
for($i=0;$i<$num;$i++){
$ret[] = substr($string,$i*$split_length,$split_length);
}
return $ret;
}
}
}
if(preg_match("/^[a-zA-Z0-9 ]{0,30}$/", $_GET['message']) && !empty($_GET['message'])) {
$chars = str_split(str_replace(' ', '_', $_GET['message']));
} else {
$chars = str_split('Invalid_Message');
}
// Assign font variable
$fontDirectory = $fonts[$_GET['font']];
if($fontDirectory == '') $fontDirectory = 'test';
// Count size and create images
foreach($chars as $char) {
$cl = $fontDirectory.'/'.$char.'.gif';
$charsImgs[] = @imagecreatefromgif($cl);
@list($width) = @getimagesize($cl) or exit;
$charsWidth[] = $width;
$imgWidth = $imgWidth+$width;
}
// Create and merge final image
$imgWidth = ($pos*2)+$imgWidth;
$img = @imagecreate($imgWidth, height);
$bg = @imagecolorallocate($img, 255, 255, 255);
foreach($charsImgs as $charsImg) {
$width = array_shift($charsWidth);
@imagecopymerge($img, $charsImg, $pos, 0, 0, 0, $width, height, 100);
$pos = $pos+$width;
}
header("Content-type: image/gif");
@imagegif($img);
@imagedestroy($img);
exit;
?>
Last edited by Florx; 07-03-2007 at 09:08 PM. Reason: Didnt read right :(
Want to hide these adverts? Register an account for free!