Back to vBulletin 4.x Add-ons

Embedded Windows Streaming Medea Player, with download link.
Mod Version: 1.00, by camoit

vB Version: 4.1.2 Rating: (4 votes - 5.00 average) Installs: 27
Released: 25 Mar 2011 Last Update: 30 Mar 2011 Downloads: 145
Not Supported Re-usable Code  

Embedded Windows Streaming Medea Player with download link. Works in vB 4.1.11 and below

Here is a nice clean embedded WMP with a download link you can put in your forum.
Using the custom BB Codes.
Feel free to change things as needed to customize for your site. Please add in what you did in the post section.
Please read the hole mod before making changes to your board.
Thank You.

<<<<NOTE>>>>
FIRE FOX USERS: see bug fix and work around section below. It's not hard to make changes in the code for the fixes or behaviors that you may want to change.

For a live demo, see the first post, on the first page. http://www.mightyram50.net/vbulletin/showthread.php/38-Class-6-Off-Road-Race-Truck-D-50-build-out.-Chevy.-4.3L-V6?p=5369#post5369

It should work in earlier versions also. OH to download with the link below the player just right click then save target as. --- And BAM--- You got the song... Cool hu???

To Install First download the zip file.
Install Time 5 minutes.

Go to your AdminCP> Custom BB Codes> BB Code Manager. Click on Add New Code.

Title: WMP
BB Code Tag Name: WMP
Replacement code:
(just copy and paste from the download and place in the replacement box.)

Example: [wmp]http://www.yoursite.com/source.mp3[/wmp]

Description:
Embed a video link from another website...
You can use *.wmv, *.mpeg, *.mpg, *.avi. *mp3. and more.
For streaming content use the URL to the stream.

Use {option}: NO

Button Image: Can be used
(See Attach File for Icon.)

Remove Tag If Empty: YES

Disable BB Code Within This BB Code: YES

Disable Smilies Within This BB Code: YES

Disable Word Wrapping Within This BB Code: YES

Disable Automatic Link Parsing Within This BB Code: YES

This must be done when installing or to change the auto start feature. Date added 10-15-2011

Factory default is set this way. Please look when installing.
AUTO START
Internet Explorer----------------- OFF
Fire Fox --------------------------ON

To turn the "Auto Start" function ON or OFF
IE USERS: Look in the top section of code for this line:

To turn ON
Find:
<param name="AutoStart" value="False">

Change to:
<param name="AutoStart" value="True">

Now in the Fire Fox section near the bottom.
To turn the "Auto Start" function ON or OFF

To turn OFF auto start:

Find and change this:
autostart" value="False">

To This:
autostart="0"

For some reason Fire Fox want's it this way.

Date added 10-15-2011
Fire Fox BUG FIX and work around.

<<<<NOTE>>>> Date added 10-15-2011
In the bottom section, for Firefox users.

To STOP the auto start function

Change from this:
autostart" value="False"

To this:
autostart="0"

This will disable the auto start function.

Credit to hotrod122, for the bug fix.
Thanks.

<<<<NOTE>>>> Date added 10-15-2011
Fire Fox users. With a "LIVE" streaming feed the control buttons may not be visible.

You might want to add the fallowing line of text at the very top of the mod text.
Add this line, or your own line of text.

Find this line:
<object id="MediaPlayer1" width=640height=480 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"

On a new line just above the find line,
Add this line:
<b>Fire Fox Users may need to right click the screen for Start / Stop controls.</b>

If you are having problems. There are two things to check. First right click on the player screen area then select "Properties". If it shows your URL/directory/ href= or somthing like that then fallow the directions below.
Click on "View" then source at the top of your Browser. Find the code in the source and look for this line of code:
<param name="FileName" value= {param} ref>
See if your vBulletin is adding extra lines of code. If so it will have somthing like this:

target="_blank

If you see this code then look through the MOD section for the little fix I found:
Stop opening links in a new window.
Install this and you should be up and running.
The 3 lines of code below is what you will need to play around with in order to make it play right.

I am NOT a coder. But I have used this code for other PHP boards and have always managed to make it work.

NOTETo use with phpbb find and change the fallowing lines.

Find and change this:
<param name="FileName" value= {param} ref>
To this:
<param name="FileName" value="{URL}">
Find and change this:
src= {param} align="middle"
To this:
src="{URL}" align="middle"
Find and change this:
<a href= {param} >Download</a>
To this.
<a href="{URL}">Download</a>

Good Luck.

Download

File Type: %1$s WMP_embed.zip (2.8 KB, 159 downloads)

Screenshots

Click image for larger version
Name:	wmp_mod.jpg
Views:	552
Size:	295.4 KB
ID:	127665  


vblts.ru supports vBulletin®, 2022-2024