vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - Song of the Day (https://vborg.vbsupport.ru/showthread.php?t=222379)

Trasion 09-02-2009 10:00 PM

Song of the Day
 
1 Attachment(s)
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.

Arcade Fire 09-03-2009 03:32 PM

Thanks!!! Looks Nice.

Trasion 09-03-2009 03:38 PM

Thanks for the install, Arcade Fire! :)

If you should need any help with it, please feel free to ask me here.

Arcade Fire 09-03-2009 04:10 PM

Yes, one problem. In IE works fine, but in Firefox doesn?t work.

Edit: I made some changes to work for me:

PHP 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]">Radio RotoLandia</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"><bPr?ximamente </b></font>
<
br>
<
object id="mediaPlayer" width="400" height="32"
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject">
<
param name="Filename" value="http://rotolandia.com/includes/RadioRL/Ali_In_The_Jungle.mp3">
<
param name="animationatStart" value="0">
<
param name="volume" value="3">
<
param name="InvokeURLs" value="True">
<
param name="transparentatStart" value="true">
<
param name="autoStart" value="false">
<
param name="showControls" value="true">
<
param name="ShowDisplay" value="false">
<
param name="loop" value="false">
<
param name="AutoSize" value ="1">
<
embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
id="mediaPlayer2" name="mediaPlayer" displaysize="4" autosize="1"
bgcolor="skyblue" showcontrols="true" showtracker="-1"
showdisplay="0" showstatusbar="-1" videoborder3d="-1" width="250" height="44"
src="http://rotolandia.com/includes/RadioRL/Ali_In_The_Jungle.mp3" autostart="false" designtimesp="5311" loop="false">
</
embed>
</
object > <center>
</
center>
<
br>
</
td>
</
tr>
</
tbody>
<!-- 
vBulletin Modification Radio by Mike --> 




Greetings.

Canadians360 09-03-2009 06:03 PM

If you changed it then it would be a good idea to eddit the originol post instead of posting further down where members can still accidentaly install the older version.

I do like the idea of a radio stream. Could you explain how to install it.

Edit: never mind it was a bad URL

RTMdotORG 09-03-2009 07:32 PM

Thanks for this...
But Autostart is set to False and it Still autostarts...
any suggestions?

Nevermind...

it should be Autostart="0"

and

<param name="autoStart" value="0">

Also...
change <br> to <br />

Trasion 09-03-2009 08:37 PM

Thank you all for installing!

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

It does work on my Firefox with the regular code.. Weird.

RTMdotORG 09-04-2009 12:45 AM

Like I said, you need to change your code to <br /> and not <br>, it's not proper code.
And the above fixes i stated....

TheMeanBish 09-04-2009 09:32 AM

Well you gave me a nice idea. I used this idea and embedded my flash player. installed :)

note: I removed your name in the title hope you don't mind. its in the comments though.

Trasion 09-04-2009 12:22 PM

TheMeanBish, as long as you mark as installed, I don't care what you do with it. :) Thanks for the install!

RTM, I'll fix it when I get a chance.


All times are GMT. The time now is 01:58 PM.

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.01232 seconds
  • Memory Usage 1,772KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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