What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » General Chit Chat » Edit a sig for me? Identify a font to?

Pages: (2): « First « 1 [ 2 ] Last »
Edit a sig for me? Identify a font to?
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: Edit a sig for me? Identify a font to?
download http://random.thedt.net/imagemagick.class.phps rename it as a php file and upload it somewhere on your server then run it.
it should create a file called "texttest.gif" which will look like
[Image: texttest.gif]

if that works tell me and ill keep working on getting your signature to work :P

edit:

pfft i went ahead and made one that works.
should update every 60sec.

also your christmas.gif must be in the same directory

the font and stuff can be changed but i didnt know what you wanted.

code:
<?php


if(file_exists('signature.gif')){
$modifiedTime = time() - filemtime('signature.gif');
if($modifiedTime<60){
outputFile();
exit;
}
}

$to_go = mktime(0, 0, 0, 12, 25, 2005) - time();

$days = ceil($to_go / (60 * 60 * 24));
$hours = ($to_go / (60 * 60)) % 24;
$minutes = ($to_go / 60) % 60;
$seconds = $to_go % 60;


$str = $days . " " . ($days == 1 ? "day" : "days") . ", " . $hours . " " . ($hours == 1 ? "hour" : "hours") . ",";
$str2 = $minutes . " " . ($minutes == 1 ? "minute" : "minutes") . " and " . $seconds . " " . ($seconds == 1 ? "second" : "seconds");


$cmd = <<<eot
convert   christmas.gif -coalesce -gravity northwest  -fill black -draw "text 325,40 '$str'" -draw "text 325,50 '$str2'" -draw "text 325,60 'till christmas'" -deconstruct signature.gif
eot
;


exec($cmd);
outputFile();


function outputFile(){
header("Content-type: image/gif");
echo file_get_contents('signature.gif');
}

?>



example of code... (mine updates every 240sec though)

[Image: rebalsig.php]

This post was edited on 09-18-2005 at 12:30 PM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
09-18-2005 06:57 AM
Profile PM Web Find Quote Report
RebelSean
Veteran Member
*****

Avatar
Microsoft Evangelist

Posts: 2602
Reputation: 59
33 / Male / Flag
Joined: May 2004
Status: Away
O.P. RE: Edit a sig for me? Identify a font to?
quote:
Originally posted by -dt-
download http://random.thedt.net/imagemagick.class.phps rename it as a php file and upload it somewhere on your server then run it.
it should create a file called "texttest.gif" which will look like
[Image: texttest.gif]

if that works tell me and ill keep working on getting your signature to work :P

I downloaded the code off that page and stuck it in a php file, and this what it looks like :s:

http://www.messengermad.com/Sean/christmas/blah.php
I'm on: Twitter, Facebook, and Neowin
09-18-2005 04:37 PM
Profile PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: Edit a sig for me? Identify a font to?
quote:
Originally posted by XxRebelSeanxX
I downloaded the code off that page and stuck it in a php file, and this what it looks like :
blah your running php4 so when i use the public to delcare the class varible it fails.

look at my edit of that post and use that code it should work

[Image: dt2.0v2.png]      Happy Birthday, WDZ
09-19-2005 05:41 AM
Profile PM Web Find Quote Report
RebelSean
Veteran Member
*****

Avatar
Microsoft Evangelist

Posts: 2602
Reputation: 59
33 / Male / Flag
Joined: May 2004
Status: Away
O.P. RE: Edit a sig for me? Identify a font to?
quote:
Originally posted by -dt-
quote:
Originally posted by XxRebelSeanxX
I downloaded the code off that page and stuck it in a php file, and this what it looks like :
blah your running php4 so when i use the public to delcare the class varible it fails.

look at my edit of that post and use that code it should work

Er, it updates every 4 minutes. How do I make it update every second? Like I have it now?
I'm on: Twitter, Facebook, and Neowin
09-19-2005 10:38 PM
Profile PM Web Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
RE: Edit a sig for me? Identify a font to?
code:
if(file_exists('signature.gif')){
$modifiedTime = time() - filemtime('signature.gif');
if($modifiedTime<60){
outputFile();
exit;
}
}


is the if statement which decides whether or not to re-write. if you remove it the picture will update on each view.
[Image: jeansiger5.jpg]
09-19-2005 10:51 PM
Profile PM Find Quote Report
RebelSean
Veteran Member
*****

Avatar
Microsoft Evangelist

Posts: 2602
Reputation: 59
33 / Male / Flag
Joined: May 2004
Status: Away
O.P. RE: Edit a sig for me? Identify a font to?
When I create that script -dt-, I get this now :S:

[Image: sig2.php]

The counter doesn't work :S.

@Ash_, when I removed that few lines of code, the script doesn't load anymore :undecided:.
I'm on: Twitter, Facebook, and Neowin
09-20-2005 09:05 PM
Profile PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On