View Full Version : Currently Now Playing
Link14716
11-09-2004, 10:00 PM
EDIT 11/14: Redownload the zip and upload the new nowplaying.php.
This hack allows users using Winamp with the DoSomething plugin to have a "Now Playing" line underneath their posts showing what they are currently playing. See the screenshot for how this looks.
To install, upload all files to your forums directory, run hack_install.php, select "Currently Now Playing" and follow through the install.
Even though this is shown in the installer, I'm putting this here as well. The hack and the screen is attached, so enjoy.
For this hack to be useful, you need to provide instructions for your users to take advantage of this hack.
First, your users must be running Winamp 2.x or 5.x. They may get the latest version at winamp.com (http://www.winamp.com/). They must also be running the DoSomething plugin. Your users may get the latest version from here (http://www.oddsock.org/tools/dosomething/).
Now, instruct your users to right click in Winamp and go to Options -> Preferences. Then under Plugins, go to General Purpose. Double click on "DoSomething Plugin". Uncheck "Disable Plugin".
Under Actions, select "Submit a URL". Have them input "http://www.yoursite.com/forums/nowplaying.php?username=username&password=password&song=%%URL_CURRENTSONG%%" where username is their username and password is their password.
Tell them to leave "URL Result File" blank, as it is not needed. Now, click "Add -->" then "OK". Next, they must close Winamp. This is important so that the settings will be properly saved. Now, open Winamp up and play a song. If it adds "Now Playing" underneath their posts, they have done it correctly.
Now, run the rest of this installer and enjoy the hack. (Make sure you don't forget to do the template and the file modification)
If you use this hack, don't forget to click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=71545)
Lionel
11-10-2004, 02:52 AM
Too many instructions for users. Why not just embedding the sound on demand auto start=true like in the jukebox hack?
Link14716
11-10-2004, 03:54 AM
Because this has absolutely nothing to do with a jukebox hack.
It's so that someone who is playing music (or even videos) through Winamp will have the song that they are playing shown beneath their posts. It changes when their song changes. This is not a hack to play their music or anything like that.
Blam Forumz
11-10-2004, 03:59 AM
Woohoo thanks!
:D
edit - can it be modified to work with 'Now Playing' hack?
Link14716
11-10-2004, 04:04 AM
Woohoo thanks!
:D
edit - can it be modified to work with 'Now Playing' hack?
Like how?
They are more or less two seperate hacks, and should co-exist.
Blam Forumz
11-10-2004, 04:07 AM
Alright then, they do, I was just wandering if you could merge them, no biggie though..
Great hack anyway :)
Link14716
11-10-2004, 04:10 AM
In other words, show what they were listening to at the time of posting?
The only thing that may cause problems is if it is outdated, so I'll probably have to include the update time with it, but I can do that.
Blam Forumz
11-10-2004, 04:16 AM
Also would I have to set it out like this:
http://www.yoursite.com/forums/nowplaying.php?username=MYUSERNAME&password=MYPASSWORD&song=%%URL_CURRENTSONG%%
Link14716
11-10-2004, 04:21 AM
Also would I have to set it out like this:
http://www.yoursite.com/forums/nowplaying.php?username=MYUSERNAME&password=MYPASSWORD&song=%%URL_CURRENTSONG%%
I just used italics myself.
Blam Forumz
11-10-2004, 04:27 AM
What, oops, i meant like this
http://www.yoursite.com/forums/nowplaying.php?username=MY_USERNAME&password=MY_PASSWORD&song=%%URL_CURRENTSONG%%
Link14716
11-10-2004, 04:31 AM
Yeah, that is how it should be.
Blam Forumz
11-10-2004, 04:38 AM
Hmm, doesnt work >_<
Link14716
11-10-2004, 05:00 AM
Well, did you do the template (and file) edits?
Blam Forumz
11-10-2004, 05:02 AM
Yes indeed I did ><
Link14716
11-10-2004, 05:08 AM
Where it said edit postbit, did you actually edit postbit, or did you edit postbit_legacy? Looking at your board, you are using postbit_legacy.
Back in my day, we had to deal with only 1 postbit. :p
Blam Forumz
11-10-2004, 05:14 AM
Yeah I did edit postbit_legacy, always do :/
Blam Forumz
11-10-2004, 05:19 AM
Ok wait heres myu problem, I looked at the file (I did the template mod wrong)
I alter it so its correct : but i get this :
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_STRING, expecting ']' in /home/*******/public_html/forum/includes/adminfunctions_template.php(3055) : eval()'d code on line 252
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Link14716
11-10-2004, 05:21 AM
Actually, now that I put in the right username: http://www.blaminator.co.uk/forum/showpost.php?p=5900&postcount=19
It's working fine on your board.
Blam Forumz
11-10-2004, 05:23 AM
Ok ok sorry about that little error, that was my fault :/
I've done the modification 100% But it still wont work
Blam Forumz
11-10-2004, 05:24 AM
hmm :/ I dont see it working for me
Link14716
11-10-2004, 05:25 AM
Ok wait heres myu problem, I looked at the file (I did the template mod wrong)
I alter it so its correct : but i get this :
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_STRING, expecting ']' in /home/*******/public_html/forum/includes/adminfunctions_template.php(3055) : eval()'d code on line 252
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Eh? What code are you trying to put in?
Blam Forumz
11-10-2004, 05:26 AM
Like I said, I made a mistake (I took the code out of the php file and it added / and \ everywhere, but i got it working now)
Do you need to type anything whatsoever for the song to appear?
Link14716
11-10-2004, 05:27 AM
hmm :/ I dont see it working for me
Alright, go to
http://www.yoursite.com/forums/nowplaying.php?username=MY_USERNAME&password=MY_PASSWORD&song=OMG%20IT%20WORKS
in your browser. What are the results? Should update fine. I'm guessing you didn't do the Winamp part right.
Link14716
11-10-2004, 05:28 AM
Like I said, I made a mistake (I took the code out of the php file and it added / and \ everywhere, but i got it working now)
Do you need to type anything whatsoever for the song to appear?
Just after you configure the plugin, play a song.
Blam Forumz
11-10-2004, 05:34 AM
Username: Blaminator
Song: OMG IT WORKS
Song successfully updated!
I guess your right, I did the winamp bit wrong
Thanks ALOT :) Much appreciated
Link14716
11-10-2004, 05:36 AM
Alright, enjoy it. As for me, it's 2:30 AM and I have school tommorow, so good night. :p
yinyang
11-10-2004, 05:39 AM
here's a noob question for you. at the bottom of the thread, does it put the name of the song at the time the user posted the thread or does it keep up to date? i.e. it changes along with what the user is listening to regardless of how long ago he posted.
Blam Forumz
11-10-2004, 05:41 AM
Yeah it does..
Also Link :P Time to disturb you again, anyway to prevent this kinda thing from happening?
Now Playing: Metallica - Low Man\'s Lyric (Last Updated: Today at 07:38 AM)
(The '\')
Blam Forumz
11-10-2004, 05:55 AM
Alright, enjoy it. As for me, it's 2:30 AM and I have school tommorow, so good night. :p
Heh :P Only 8 AM here and I have school in 1 hour - uh oh, i need to get ready :/
yinyang
11-10-2004, 07:14 AM
this is working like a charm!! thank you very much! *clicks install*
Blam Forumz
11-10-2004, 02:56 PM
O_o How would I make it so it only shows the song in that paticular post?
Blam Forumz
11-10-2004, 04:07 PM
MEGA BUG!!
Whos online locations displays as "Unknown location" which shows your password (Full url of nowplaying.php)
Breaker
11-13-2004, 08:03 AM
MEGA BUG!!
Whos online locations displays as "Unknown location" which shows your password (Full url of nowplaying.php)
only admins can see the location when it shows unknown location i believe.... but still a bit of a problem :|
yinyang
11-13-2004, 06:46 PM
actually, if it's playing and you view > source the coding on the page, you can see it.
Breaker
11-14-2004, 06:43 PM
this hack has a HUGE security issue and i dont advise anyone installing it until it is fixed unless they use 2 "Submit URL" actions, the second containing false information.
Link14716
11-15-2004, 02:01 AM
Fine, here's your fix. No need to have a damned heart attack.
Breaker
11-15-2004, 05:59 AM
Fine, here's your fix. No need to have a damned heart attack.
sorry for that, having a member of my forums tell me my password isn't the best thing i want to hear really :)
thanks for the fix
That?s a great hack! Thank you very much! :D
Snitz
06-15-2005, 08:40 PM
im using this from 3.5:
<if condition="!empty($post['npsong'])">
<!-- now playing -->
<legend>Now Playing (Updated $post[npdisplaydate] $post[npdisplaytime])</legend><table><tr><td>
$post[npsong]
</td></tr>
</table></fieldset>
<!-- / now playing -->
</if>
instead of the one provided with the install file
but I think the <legend> isn't working coz the song name and singer isn't getting displayed inside it
http://www.radioonev5.com/snitz/song.JPG
BlackxRam
06-25-2005, 03:23 AM
Does this support Permissions? Can I have only certain Usergroups the ability to use this addon?
yahoooh
07-21-2005, 05:15 AM
can be changed to used for windows media player?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.