I've been using php script to randomly pull images for my sigs for a while, but now I'm trying to incorporate it into Remote SigX, however I'm hitting a few speed bumps.
I can get the code to pull the image, but it won't show the text on top.
I suppose I'll get right to the code...
Here's the random image script, xenon-sig.php:
Code:
<?
$strDirectory = "/home/fluxwork/public_html/misc/xenon-sig/";
$resDirectory = opendir($strDirectory);
while (false !== ($strFilename = readdir($resDirectory)))
{
if ($strFilename[0] != ".")
{
$arrFiles[] = $strFilename;
}
}
$nRand = rand(0, count($arrFiles) - 1);
header("Location: http://magnum.liquidweb.com/~fluxwork/misc/xenon-sig/" . $arrFiles[$nRand]);
?>
Here's what I've done with sigx.php:
Code:
<?
// SigX Remote Image Generater (Basic Background)
// Version 1.1,
// Notes: you can use any image, JPG PNG or GIF (gif untested), any size and dimention. just make sure its big enough to fit your biggest text
// this code does not resize the background image.
// my email:
[email protected]include("xenon-sig.php");
// Settings, Edit
// This is the only part you need to edit.
// Username Setting
$un = "xenoNfluX";
// background image location
$backIMG = "$strDirectory"; // you can use URL for the image here too, JPG
// where the text goes on the image, offset to blank area on the image, in pixels.
$Xoffset=90;
$Yoffset=50;
Any ideas?