vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Song of the Day v1 (https://vborg.vbsupport.ru/showthread.php?t=172473)

Winterworks 03-07-2008 10:00 PM

Song of the Day v1
 
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

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)

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


All times are GMT. The time now is 07:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01258 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete