Jump to content

Sig Shoutbox


11823

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
Link to comment
https://forums.phpfreaks.com/topic/7426-sig-shoutbox/
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!!!!!
Link to comment
https://forums.phpfreaks.com/topic/7426-sig-shoutbox/#findComment-27428
Share on other sites

Archived

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

×
×
  • Create New...

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.