Jump to content

Archived

This topic is now archived and is closed to further replies.

11823

Sig Shoutbox

Recommended Posts

Hi im new here so please dont go mad if this is in the wrong place :P

[img src=\"http://www.blisworthfc.com/jamie/shoutsig.gif\" border=\"0\" alt=\"IPB Image\" /]

Thats my sig shoutbox, script provided by [a href=\"http://www.spywire.net\" target=\"_blank\"]http://www.spywire.net[/a]. What I want are some questions answered and if possible, how will I do them :P

1. How can I center all shouts?
2. How can I change the font?

Below is the index of the code.

[code]
<?php

//
// shout sig by tOnk3r od spywire.net
//


header("Content-type: image/png");
$file = array_reverse(file('shouts.txt'));

$im = @imagecreate(550, 120)
   or die("Error! Could not create image stream.s");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 0, 0, 0);
$trans = imagecolortransparent($im,$background_color);
$i = 1;
$j = 0;
foreach ($file as $line_num => $line) {
    if($i <= count($file)-1)
        imagestring($im, 2, 5, $j,  substr($line, 0, strlen($line)-1), $text_color);
    else
        imagestring($im, 2, 5, $j,  $line, $text_color);
    $j+=15;
    $i++;
}
imagepng($im);
imagedestroy($im);
?>
[/code]
If anyone can help me it will be highly appreciated :)

-Jamie

Share this post


Link to post
Share on other sites
[!--quoteo(post=364863:date=Apr 14 2006, 01:28 PM:name=Ja(v)ie)--][div class=\'quotetop\']QUOTE(Ja(v)ie @ Apr 14 2006, 01:28 PM) [snapback]364863[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hi im new here so please dont go mad if this is in the wrong place :P

[img src=\"http://www.blisworthfc.com/jamie/shoutsig.gif\" border=\"0\" alt=\"IPB Image\" /]

Thats my sig shoutbox, script provided by [a href=\"http://www.spywire.net\" target=\"_blank\"]http://www.spywire.net[/a]. What I want are some questions answered and if possible, how will I do them :P

1. How can I center all shouts?
2. How can I change the font?

Below is the index of the code.

[code]
<?php

//
// shout sig by tOnk3r od spywire.net
//
header("Content-type: image/png");
$file = array_reverse(file('shouts.txt'));

$im = @imagecreate(550, 120)
   or die("Error! Could not create image stream.s");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 0, 0, 0);
$trans = imagecolortransparent($im,$background_color);
$i = 1;
$j = 0;
foreach ($file as $line_num => $line) {
    if($i <= count($file)-1)
        imagestring($im, 2, 5, $j,  substr($line, 0, strlen($line)-1), $text_color);
    else
        imagestring($im, 2, 5, $j,  $line, $text_color);
    $j+=15;
    $i++;
}
imagepng($im);
imagedestroy($im);
?>
[/code]
If anyone can help me it will be highly appreciated :)

-Jamie
[/quote]

Please Help!!!!!

Share this post


Link to post
Share on other sites
[!--quoteo(post=365262:date=Apr 16 2006, 04:43 AM:name=Ja(v)ie)--][div class=\'quotetop\']QUOTE(Ja(v)ie @ Apr 16 2006, 04:43 AM) [snapback]365262[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Please Help!!!!!
[/quote]

Help!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.