I'm a programmer/web developer from California, USA with an unhealthy appetite for all things anime (just like you!). I'll add more things here as laziness permits.
Hopefully you'll see me around the forums or just say hello. No random friend requests, please. However I do prefer my friends to be a bit random. ;)
In case you haven't noticed, my profile is a bit understated. I spend more time messing with forum signatures and coding stuff that most people don't care about. You can see some of my signature concoctions if you look here.
Well, do you have like Yahoo, Msn, or something? because I think it'll be easier to talk with that. I need someone to teach me step by step because I really have no knowledge, lol. :(
Okay uhm, this is what I did so far but I can't see my sig still. I'm having problems. :(
1. I made a domain. "moonfrost.comyr.com"
2. I made a background using GIMP, it's 600x140. I used the font FreeScript. I saved both of them in my laptop. Just saved normally [Ctrl+S], not by imageshack,photobucket, etc.
3. I uploaded both of them by using FileZilla plus your script. Changed their Numeric Value in Files Permission by 755, then changed the folder's numeric value I put them in [public_html] to 777.
4. I tried to edit your script and change the values but when I go to my domain and click your script, it says Could not write to cache; please make sure the cache directory exists and is writable by all (777 permissions). $cachedpath = Simple Background.png
Did I do something wrong? Thanks for reading and taking away your time.
yo saka, i hate to ask again but i lost the pm somewhere
i want my updates to center out rather then be alligned left, how do i do that again?
im using ur first minimal script, im not sure where to change it, so i copied down what i think affects the updates.
$buffer = file_get_contents("$url"); // download the feed
if ( !($buffer) ) die("Could not download RSS feed");
// now we have to sanitize the information we saved to the buffer (no newlines/tabs and replace xml entities)
$buffer = strtr($buffer, array("\n" => '', "\r" => '', "\t" => '', '<' => '<', '>'=>'>', '&' => '&', '"' => '"', '''=>"'") );
// these lines just extract the anime title and status information into $titles[] and $status[] arrays, plus other info
preg_match_all("/<item><title>([^<]*)<\/title>/i", $buffer, $titlematches);
preg_match_all("/<description>([^<]*) - ([\d?]+) of ([\d?]+) (episodes?|chapters?)<\/description>/i", $buffer, $statusmatches);
$titles = $titlematches[1]; // $titles is now an array of titles
$status = $statusmatches[1]; // $status is now an array of statuses
$current = $statusmatches[2]; // $current is now an array of all the current episodes
$totals = $statusmatches[3]; // $totals is now an array of all the episode totals
// let's go through the whole list and format them how we want
for($i = 0; $i < count($titles); $i++) {
// FORMAT THE TITLE VALUES
// just remove all that junk at the end
$titles[$i] = preg_replace('/ - (TV|Movie|ONA|OVA|OAD|Special)$/', '', $titles[$i]);
// limit the titles to 25 characters; you can adjust this to your needs
$titles[$i] = textlimit($titles[$i],15);
// FORMAT THE STATUS VALUES - you can change the format as you like
// lets format the strings to look like "watching @ 11/26" for watching, and only show status for the rest
if ($status[$i] == "Watching" or $status[$i] == "Re-Watching") {
$status[$i] = "$current[$i]/$totals[$i]";
} else { // "Completed, "Plan to Watch", "Dropped", or "On Hold"
$status[$i] = "$status[$i]"; // doesn't do anything as is, but feel free to change it
}
$status[$i] = strtolower($status[$i]); // make all the statuses lowercase
}
///////////////////////////////////////////////////////////////////////////////////////////
// LET'S START GENERATING THE SIGNATURE IMAGE
$sigimage = open_image("2.png"); // load your background image
// WRITE THE TEXT ONTO THE IMAGE
$font = 'aescrawl.ttf'; // if you use another font, make sure you copy the *.ttf file into the same directory
// let's define a font color - the last three arguments are the red, green, and blue values (so 0,0,0 = black and 255,255,255 = white)
$colour = imagecolorallocate($sigimage,255,255,255);
// draw the text - the template is imagettftext(image, font size, angle, x-pos, y-pos, font color, fontfile, text output)
imagettftext($sigimage,10,0,20,127,$colour,$font,$titles[0]);
imagettftext($sigimage,10,0,160,127,$colour,$font,$status[0]);