Official signature TEST thread !

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

DarkBls

Inf Ex-admin
Mar 5, 2000
4,551
0
36
France
Welcome to the new official sig thread.

Note: You don't need to post each time to see what your new sig/avatar looks like. Just hit your browser refresh buton after updating your profile !
clin.gif


The content of this thread will be deleted after about 40 posts.

Keep you sig at a 56K user-friendly and under the 40KB limit.

HTML is NOT allowed in signature !
 

Rostam

PSN: Rostam_
May 1, 2001
2,807
0
0
Leiden, Holland
I might need some help, I got this php code that a friend wrote for me but I can't exactly use it as a sig :hmm:

the code:
PHP:
<?php 
$f = "http://home.tiscali.nl/~rostam/quotes.txt"; 
$a = file($f); 
srand((double)microtime()*1000000); 
$r= (rand(0, count($a)) - 1); 
echo '<body style=background:#161616><font face=Verdana color=#CCCCCC size=1><a>&nbsp;"' . $a[$r] . '"&nbsp;</a></font>'; 
?>

/me hopes somebody actually views these parts of the boards.

By the way Kisen K, it's great to see you again.
 

Derelan

Tracer Bullet
Jul 29, 2002
2,630
0
36
Toronto, Ontario
Visit site
There are two ways to use it as a sig. The simplest is to put the php file and the 'quotes.txt' file on a PHP-enabled webserver. Then you can link to the php as an image file.

Since not every message board accepts 'php' as a file type, you can put a ".htaccess" file in the same folder as the text file and the php file, put "AddType application/x-httpd-php .png" in the file, and rename your php to png. Now its an "image"!

Something tells me your code isn't going to work either way. If you want, you can use mine. It can use a png file as a background (or a blank png file in my case) and it wraps long sentences around the edges.

PHP:
<?php
function ImageStringWrap($image, $font, $x, $y, $text, $color, $maxwidth)
{
   $fontwidth = ImageFontWidth($font);
   $fontheight = ImageFontHeight($font);

   if ($maxwidth != NULL) {
       $maxcharsperline = floor($maxwidth / $fontwidth);
       $text = wordwrap($text, $maxcharsperline, "\n", 1);
     }

   $lines = explode("\n", $text);
   while (list($numl, $line) = each($lines)) {
       ImageString($image, $font, $x, $y, $line, $color);
       $y += $fontheight;
     }
}
//
header("Content-type: image/png");
$h_array = file("fortunes.txt");
srand((double) microtime() * 10000000);
$h = array_rand($h_array);
    
// Calculate vertical position//put your image name here (must be a png)
$im = imagecreatefrompng("randquote.png");
//change your text color here ( must be the hex value) ex. 255,255,255 would be white
$color = imagecolorallocate($im, 0, 0, 0);

//change your X & y coordinates here to place the text on your image where you want it
//(these will center the text on a 400x100 image)
$px=1;
$py=1;

//no need to touch this unless you know what your doing
//imagestring($im, 3, $px, $py, $h, $color);
ImageStringWrap($im, 2, 0, 0, rtrim($h_array[$h]), $color, ImageSX($im) );
//imagestring($im, 2, 1, 1, rtrim($h_array[$h]), $color);
imagepng($im);
imagedestroy($im);

?>

Put that php code, a transparent (or whatever) png file, and your quotes.txt in a folder on your webserver. Change any variables in the code you need to. Rejoice.
 

Hadmar

Queen Bitch of the Universe
Jan 29, 2001
5,566
45
48
Nerdpole
To make it work here the script has to create a pic containing the text. That pic can be added as sig here. Don't ask me how though; I'm not into php. :)
 

Hadmar

Queen Bitch of the Universe
Jan 29, 2001
5,566
45
48
Nerdpole
Hey, I'm not the one who wants to use it. :D

I simply didn't feel the need to point that out
 
Last edited: