PDA

View Full Version : Miscellaneous Hacks - Song of the Day v1


Winterworks
03-07-2008, 10:00 PM
I have decided that on my forum, I wanted a small hack, that would play songs on the forum, but instead, decided to make 'Song of the Day'.


Information:

Release V1:

You can play only one song, when it's uploaded to your forum, through FTP.

Release V2 (Coming Soon!):

You'll be able to listen to many different songs, they'll play on their own, and will pick a song randomly.


How to Upload:

Template(s) to Edit - 1
Codes to Add - 1

Template(s) to Edit: FORUMHOME

(Please Note: Everything in RED you must edit to your own needs)


https://vborg.vbsupport.ru/ <-- Upload this photo to 'yoursite/forum/images/misc'.

In your FTP, go to 'yoursite/forum/includes' and add a new directory named 'music'.

Go to AdminCP > Styles and Templates > Your Template > FORUMHOME and search for

<!-- end today's birthdays -->
</if>


Under it, add:


<!-- vBulletin v3.6.8 Modification Radio by Mike -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="Radio" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">vBulletin Song Player Hack - vBulletin 3.6.8 Modification Made by Mike </phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/radio.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">

<p align="center">

<font color="black"><b>Current Song: Low - Flo Rida'</b></font><br>
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="300" height="32" codebase="">
<param name="URL" ref value="http://cheatchat.org/forum/includes/music/low.mp3">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="0">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="100">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="Style" value>
<param name="Lang" value>
<param name="Filename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="6482">
<param name="_cy" value="1693">
</object><center>
</center>
<br>
</td>
</tr>
</tbody>
<!-- vBulletin v3.6.8 Modification Radio by Mike -->

That will add a working radio at the footer of your forum.



How to use it:

Each time you want a new song, you must upload a song into '/music', and edit the link above in the code.

This will only play the one song, until you upload a new one, next version should be edited, and play a assortment of songs.


Credits:

- Winterworks (Coming up with it)
- My Forum (Inspiring Me)
- HeRmAn'S (Making The Original Code)



(Please note that this is my first ever modification, I am still kinda new with vBulletin)

Winterworks
03-08-2008, 09:49 PM
Sorry, forgot to mention..

Only works with IE, and you can view a live demo, by clicking this link (http://forum.cheatchat.org) and scrolling to the bottom.

Edit: Below is a new screenshot..

codershark
03-09-2008, 06:19 AM
It would be nice when that go also in Firefox :D

Winterworks
03-09-2008, 11:31 AM
I'll try and make v2 or v3 have it with Firefox and IE :)

Please leave comments, and things I should do with v2 guys. :)

mirageboss
03-09-2008, 11:36 AM
Nice man! I thank-you for this :)

codershark
03-09-2008, 11:37 AM
yes it will also nice when it will work with vbulletin 3.7 :D

Winterworks
03-09-2008, 11:39 AM
Thanks guys ;)

If anyone needs support, or has questions, please ask them here.

dave9720
03-09-2008, 12:46 PM
Just added this to my forum, I don't see a radio anywhere? currently useing vb 3.68
also in the edit on forumhome you have in red http://cheatchat.org/forum I edit cheatchat.org to my forum address. I check in msm and IE.

Winterworks
03-09-2008, 01:00 PM
Did you add the full code, and add a song? You must upload it into your FTP also.

dave9720
03-09-2008, 01:03 PM
yes I did just edit forum name. uploaded song in music folder

Only edited this on code "http://bestsatellitepros.com/forum/includes/music/05 Everywhere.wma">

Winterworks
03-09-2008, 01:56 PM
Rename your song file to 'everywhere.mp3'

Then edit the link.

dave9720
03-09-2008, 02:47 PM
Renamed song and edited file. Showing up on forum but doesn't play shows file length at 00.00 in propertys

waller99
03-10-2008, 12:12 PM
It appears it must be an .mp3 file. You can't just rename a .wma to .mp3. You need to upload an mp3 file to the music folder.

Winterworks
03-10-2008, 07:16 PM
Yes, exactly.

I edited the code a little bit by the way.. Looks vetter now. ;)

Winterworks
03-11-2008, 09:40 AM
Please Install ;)

Winterworks
01-20-2009, 09:30 AM
Does anyone still use this? If so then I'll edit it for vb 3.7 and 3.8.

bing11
02-20-2009, 02:25 AM
yes plz thank you