Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

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

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 03-07-2008 Last Update: Never Installs: 4
Template Edits
Re-useable Code  
No support by the author.

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)


<-- 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

Quote:
<!-- end today's birthdays -->
</if>
Under it, add:

Quote:
<!-- 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)

Show Your Support

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

Comments
  #12  
Old 03-09-2008, 01:56 PM
Winterworks Winterworks is offline
 
Join Date: Feb 2008
Location: Canada
Posts: 640
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rename your song file to 'everywhere.mp3'

Then edit the link.
Reply With Quote
  #13  
Old 03-09-2008, 02:47 PM
dave9720 dave9720 is offline
 
Join Date: Dec 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Renamed song and edited file. Showing up on forum but doesn't play shows file length at 00.00 in propertys
Reply With Quote
  #14  
Old 03-10-2008, 12:12 PM
waller99 waller99 is offline
 
Join Date: Oct 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 03-10-2008, 07:16 PM
Winterworks Winterworks is offline
 
Join Date: Feb 2008
Location: Canada
Posts: 640
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, exactly.

I edited the code a little bit by the way.. Looks vetter now.
Reply With Quote
  #16  
Old 03-11-2008, 09:40 AM
Winterworks Winterworks is offline
 
Join Date: Feb 2008
Location: Canada
Posts: 640
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please Install
Reply With Quote
  #17  
Old 01-20-2009, 09:30 AM
Winterworks Winterworks is offline
 
Join Date: Feb 2008
Location: Canada
Posts: 640
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone still use this? If so then I'll edit it for vb 3.7 and 3.8.
Reply With Quote
  #18  
Old 02-20-2009, 02:25 AM
bing11 bing11 is offline
 
Join Date: Feb 2003
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes plz thank you
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:00 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.07688 seconds
  • Memory Usage 2,272KB
  • Queries Executed 22 (?)
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_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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete