Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Song of the Day Details »»
Song of the Day
Version: 1.00, by Trasion Trasion is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 09-02-2009 Last Update: Never Installs: 17
Re-useable Code Translations  
No support by the author.

This hack allows you to have a song of the day on your website. It allows you to pick a song from any directory, or even put in a radio stream for your website.

Just open your FORUMHOME template, and find:

Code:
<!-- end today's birthdays -->
</if>
Below it, add:

Code:
<!-- vBulletin Modification Radio by Mike -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_music')"><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 Modification Made by Mike </phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_music" style="$vbcollapse[collapseobj_forumhome_music]">
<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://trasion.com/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 Modification Radio by Mike -->
Then you'll have a radio at the bottom of your forum (you must follow the next steps for it to appear as well).

You must then make a new directory in the /includes/ folder called /music/. In it, add your songs (the song names can not contain spaces). Then change the link in the code I gave you, to link to your own website, and your own song name.

You must then take the radio icon in the attachments, and upload it in your /misc/ folder. It must keep the name radio.gif.

To make a radio appear instead of a song, just put the IP of the stream, or the website URL directly to the radio stream.

You can also change the "Low - Flo Rida'" part. Put your own song/radio name, or remove it completely.

Screenshots

File Type: jpg preview.jpg (29.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-06-2009, 05:09 PM
drsli's Avatar
drsli drsli is offline
 
Join Date: Jan 2008
Location: Germany
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool! I second, the original code doesn?t work with Firefox (MacOSX) and both codes don?t work with Safari either. Unfortunately...
Reply With Quote
  #13  
Old 09-07-2009, 10:45 AM
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
Location: Menorca, Spain
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trasion View Post

Arcade Fire, that code you posted, does that make it work on Firefox?

It does work on my Firefox with the regular code.. Weird.
Yes, work without problems in all navigators. (Xp)
Reply With Quote
  #14  
Old 09-08-2009, 06:16 PM
DeanLag DeanLag is offline
 
Join Date: Jul 2009
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome. I modified the code a bit (well, the phrases) and made it "Guess the song". I'm wondering how to stop it from caching though cause I just want to name the mp3 file as guess.mp3 so I don't have to edit the link everytime.
Reply With Quote
  #15  
Old 09-09-2009, 02:16 PM
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
Location: Menorca, Spain
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DeanLag View Post
Awesome. I modified the code a bit (well, the phrases) and made it "Guess the song". I'm wondering how to stop it from caching though cause I just want to name the mp3 file as guess.mp3 so I don't have to edit the link everytime.

Good Idea!!!!
Reply With Quote
  #16  
Old 11-13-2009, 09:02 PM
Trasion Trasion is offline
 
Join Date: Sep 2009
Location: New York
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone needs any help with this, please let me know. Please mark as installed.
Reply With Quote
  #17  
Old 11-18-2009, 12:06 AM
tdog360 tdog360 is offline
 
Join Date: Oct 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks as if it was based off Shoutcast Status 2.0
Reply With Quote
  #18  
Old 11-20-2009, 04:35 PM
revmitchell revmitchell is offline
 
Join Date: Dec 2006
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot get it to show up at all
Reply With Quote
  #19  
Old 11-24-2009, 03:22 AM
TRa5H's Avatar
TRa5H TRa5H is offline
 
Join Date: Apr 2008
Location: Middletown, PA
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be awesome to have this as a vbulleting install file so you can do this through an XML document.. that way you can just add the song through your options rather then have to change the song through the forumhome template each time...


Also I edited your coding to work with odeo mp3 player..

Check it out here: http://www.weltmuzik.com/forum/
Reply With Quote
  #20  
Old 12-11-2009, 11:54 PM
Trasion Trasion is offline
 
Join Date: Sep 2009
Location: New York
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please install this.
Reply With Quote
  #21  
Old 12-23-2009, 02:38 AM
AlBDJ-Net AlBDJ-Net is offline
 
Join Date: Dec 2008
Location: Albania
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it will be great if u use a flash play cos mos of users need to active the ActiveX to view the player..anyway thnx
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11656 seconds
  • Memory Usage 2,329KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete