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
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
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!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.