Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Creating your own Winamp "currently playing" signature


You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion

Creating your own Winamp "currently playing" signature
Reply
 
Thread Tools
Old 27-07-2004, 16:16   #1
cf.mega poster
 
Bifta's Avatar
 
Join Date: Jul 2003
Location: Derry
Posts: 7,597
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
Creating your own Winamp "currently playing" signature

This requires a hosting account running PHP, e.g. any I-web account and Winamp (of course)

create a directory, e.g. music
chmod directory 777
create an empty text file called song.txt
chmod song.txt 777
upload to the folder you've created
create (and upload into the same folder) a file called update.php with the following content:

Code:
<?php
$password = putapasswordhere;
if (!$_GET[passwd]){ print "NO PASSWORD ";}
if (!$_GET[song]){ print "NO SONG ";}
if ($_GET[passwd] == $password) {
 $fp=fopen("song.txt","w");
 $song = stripslashes($_GET[song]);
 fwrite($fp, $song);
 fclose($fp);
 } else {
   print "password error ";
}
?>
change putapasswordhere to a password of your choice

create (and upload again) another php document called img.php with the following content:

Code:
<?php
$last_update = date ("U", filemtime('song.txt')); 
if ($last_update < time()-3600) {
$txtsong = "Not Listening Right Now"; }
else {
 $handle = fopen ("song.txt", "r");
 while (!feof ($handle)) {
 $txtsong = fgets($handle, 4096);
}
}
$font   = 2;
$imgw  = ImageFontWidth($font) * strlen($txtsong) + (10* ImageFontWidth($font) +30);
if (strlen($txtsong) > 45) { 
$txtsong = substr($txtsong, 0, 43).".."; 
$imgw  = ImageFontWidth($font) * strlen($txtsong) + (10* ImageFontWidth($font) +30);
}
$imgb = ($imgw -1);
Header("Content-Type: image/png");
$im = ImageCreate($imgw, 15);
$bgc = ImageColorAllocate($im, 255, 255, 255);
$black = ImageColorAllocate($im, 0, 0, 0);
ImageFill($im, 0, 0, $bgc);
ImageString($im, $font, 3, 0, "Listening to : $txtsong", $black);
ImageLine($im, 0, 0, 0, 14, $black);
ImageLine($im, 0, 0, $imgb, 0, $black);
ImageLine($im, $imgb, 0, $imgb, 14, $black);
ImageLine($im, 0, 14, $imgb, 14, $black);
Imagepng($im);
?>
Download the "dosomething" plugin for winamp from:

http://www.oddsock.org/tools/dosomet...thingv2_12.exe

install it, open winamp, go to options/preferences, look under plug-ins/general purpose for DoSomething Plugin, double click it. Where the six check boxes are up the top, uncheck everything apart from "Enable ID3 info gathering", in the "Actions" pulldown menu, select "Submit a URL", in the URL field it brings up enter the following: http://www.yourdomain.com/music/upda...tapasswordhere then click "Add -->" near the bottom right. Close winamp, open it back up.

In your control panel here, go to signature and use some img (with the []'s round them) tags with the url to your img.php file, e.g. http://www.yourdomain.com/music/img.php

And that's it.

Last edited by Bifta; 27-07-2004 at 16:21.
Bifta is offline   Reply With Quote
Old 27-07-2004, 16:28   #2
Yep, Dave Stones.
 
Join Date: Jun 2003
Location: Selly Oak, Birmingham
Age: 24
Services: BT Broadband Option 3, BT Landline, Freeview
Posts: 3,214
Dave Stones has reached the bronze age
Dave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze age
Send a message via MSN to Dave Stones
Re: Creating your own Winamp "currently playing" signature

wow, it works! nice
Dave Stones is offline   Reply With Quote
Old 27-07-2004, 16:32   #3
cf.mega poster
 
Bifta's Avatar
 
Join Date: Jul 2003
Location: Derry
Posts: 7,597
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
Re: Creating your own Winamp "currently playing" signature

Quote:
Originally Posted by Dave Stones
wow, it works! nice
More like wow, my instructions made sense!
Bifta is offline   Reply With Quote
Old 27-07-2004, 16:34   #4
Yep, Dave Stones.
 
Join Date: Jun 2003
Location: Selly Oak, Birmingham
Age: 24
Services: BT Broadband Option 3, BT Landline, Freeview
Posts: 3,214
Dave Stones has reached the bronze age
Dave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze age
Send a message via MSN to Dave Stones
Re: Creating your own Winamp "currently playing" signature

copy and paste is a remarkable thing

is there a way to change the colour/font at all so they dont all look the same, or is that *too* far-fetched?
Dave Stones is offline   Reply With Quote
Old 27-07-2004, 16:37   #5
cf.mega poster
 
Bifta's Avatar
 
Join Date: Jul 2003
Location: Derry
Posts: 7,597
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
Re: Creating your own Winamp "currently playing" signature

Quote:
Originally Posted by Dave Stones
copy and paste is a remarkable thing

is there a way to change the colour/font at all so they dont all look the same, or is that *too* far-fetched?
There is, $bgc is the background colour and $black is the font colour, both RGB values seperated by comma's. I'm not sure how to alter the font face, without using truetype somehow and I lost the document I had that incorporated that but you can alter the font size with the $font variable (all of this is in img.php)
Bifta is offline   Reply With Quote
Old 27-07-2004, 16:44   #6
Yep, Dave Stones.
 
Join Date: Jun 2003
Location: Selly Oak, Birmingham
Age: 24
Services: BT Broadband Option 3, BT Landline, Freeview
Posts: 3,214
Dave Stones has reached the bronze age
Dave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze ageDave Stones has reached the bronze age
Send a message via MSN to Dave Stones
Re: Creating your own Winamp "currently playing" signature

nice, it should now hopefully integrate with my website colours
Dave Stones is offline   Reply With Quote
Old 27-07-2004, 16:50   #7
PFF TV - Fantasy TV
 
Join Date: Jun 2003
Location: Stafford
Age: 34
Services: Sky World 300k BB NTL Phone
Posts: 2,386
poolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant futurepoolking has a brilliant future
Send a message via AIM to poolking Send a message via MSN to poolking Send a message via Yahoo to poolking
Re: Creating your own Winamp "currently playing" signature

I assume that for those who do not have i-web accounts you would need PHP compiled with GD?
poolking is offline   Reply With Quote
Old 27-07-2004, 16:54   #8
cf.mega poster
 
Bifta's Avatar
 
Join Date: Jul 2003
Location: Derry
Posts: 7,597
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
Re: Creating your own Winamp "currently playing" signature

Quote:
Originally Posted by poolking
I assume that for those who do not have i-web accounts you would need PHP compiled with GD?
Correct, but I've never had to install GD myself so relied on most commercial web hosts already having it available.
Bifta is offline   Reply With Quote
Old 28-07-2004, 19:21   #9
cf.addict
 
Join Date: Feb 2004
Posts: 382
heyyo is an unknown quantity at this point
Re: Creating your own Winamp "currently playing" signature

i heard its a risk installing this and people can hack in to your computer...is this true?
heyyo is offline   Reply With Quote
Old 28-07-2004, 19:54   #10
cf.mega poster
 
Bifta's Avatar
 
Join Date: Jul 2003
Location: Derry
Posts: 7,597
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
Re: Creating your own Winamp "currently playing" signature

Quote:
Originally Posted by heyyo
i heard its a risk installing this and people can hack in to your computer...is this true?
No
Bifta is offline   Reply With Quote
Old 28-07-2004, 23:19   #11
cf.addict
 
Join Date: Feb 2004
Posts: 382
heyyo is an unknown quantity at this point
Re: Creating your own Winamp "currently playing" signature

trying it out now, thanks
heyyo is offline   Reply With Quote
Old 18-08-2005, 23:43   #12
Ex SKY Engineer
 
iain_herts's Avatar
 
Join Date: Jul 2003
Location: south herts
Age: 24
Services: 2x sky+ /sky16Mb/bt phone
Posts: 690
iain_herts has reached the bronze age
iain_herts has reached the bronze ageiain_herts has reached the bronze ageiain_herts has reached the bronze ageiain_herts has reached the bronze ageiain_herts has reached the bronze age
Send a message via MSN to iain_herts
Re: Creating your own Winamp "currently playing" signature

almost
__________________
CLICK ME sioux ceramics
iain_herts is offline   Reply With Quote
Old 18-08-2005, 23:55   #13
Cable Forum Team
 
Rob M's Avatar
 
Join Date: Feb 2004
Location: /root/
Age: 31
Services: netstat -tula > /home/raistlin/netstat.txt
Posts: 8,176
Rob M has a pair of shiny starsRob M has a pair of shiny stars
Rob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny stars
Re: Creating your own Winamp "currently playing" signature

I think you've got the password wrong mate, might be worth checking it.
__________________

Shut down winamp and then restart, make sure it's not being blocked by your firewall as well
__________________
Formerly known as 'Raistlin'
Pausing Live TV and Eating Wotsits
Rob M is offline   Reply With Quote
Old 19-08-2005, 00:00   #14
Ex SKY Engineer
 
iain_herts's Avatar
 
Join Date: Jul 2003
Location: south herts
Age: 24
Services: 2x sky+ /sky16Mb/bt phone
Posts: 690
iain_herts has reached the bronze age
iain_herts has reached the bronze ageiain_herts has reached the bronze ageiain_herts has reached the bronze ageiain_herts has reached the bronze ageiain_herts has reached the bronze age
Send a message via MSN to iain_herts
Re: Creating your own Winamp "currently playing" signature

tryed that i keep getting
Quote:
error opening (http://***********.co.uk/music/updat...&passwd=******)
write : error(invalif argument
__________________
CLICK ME sioux ceramics
iain_herts is offline   Reply With Quote
Old 19-08-2005, 00:05   #15
Cable Forum Team
 
Rob M's Avatar
 
Join Date: Feb 2004
Location: /root/
Age: 31
Services: netstat -tula > /home/raistlin/netstat.txt
Posts: 8,176
Rob M has a pair of shiny starsRob M has a pair of shiny stars
Rob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny starsRob M has a pair of shiny stars
Re: Creating your own Winamp "currently playing" signature

Which line does it say the error is on?

When you created the text file how did you do it? When I created mine, even though it said it was creating a text file, it didn't put the .txt extension on it. Might be worth checking that.
__________________

Make sure you've got the permissions on your music directory and song.txt set to 777 as well.

It's no good using the number boxes on the I-web control panel (if that's what you're using) you need to tick all of the check boxes and then hit save.
__________________

Of course, I'm assuming that you're using I-web, you probably aren't.
__________________
Formerly known as 'Raistlin'
Pausing Live TV and Eating Wotsits
Rob M is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 00:45.


Links
Google
 
Web www.cableforum.co.uk


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
Copyright © 2003 - 2008, Cable Forum.
(s204569790.onlinehome.info)