Back to vBulletin 4.x Add-ons

[SW] Multi Silverlight Player BBcode
Mod Version: 2.01, by SoltanWorld

vB Version: 4.x.x Rating: (1 vote - 4.00 average) Installs: 8
Released: 10 Nov 2010 Last Update: Never Downloads: 27
Not Supported Template Edits Additional Files  

What's this Mod ?

You can put 2 silver light players as BBcode to play wmv files in a thread.
Just you can use just one bbcode per thread page (java conflict).

How to Install ?

1. Upload files

First of all download the ZIP file from attachment and upload it to : forum/swplayers/silverlight

(if you have installed my last Modification [SW]Simple Flash & Silver light Players BBcode no need to upload these files. )
2. Create BB Code

Title : Multi Silver Light Player

Tag Name : wmv2

Replacement :

Code:
<script src="forum/swplayers/silverlight/silverlight.js" type="text/javascript"></script>
<script src="forum/swplayers/silverlight/wmvplayer.js" type="text/javascript"></script>
<script type="text/javascript">
function createPlayer(theContainer, theFile, go) {
    var cnt = document.getElementById(theContainer);
    var src = "forum/swplayers/silverlight/wmvplayer.xaml";
    var cfg = {height:"250", width:"300", file:theFile, autostart:go};
    var ply = new jeroenwijering.Player(cnt,src,cfg);
}
function init() {
    createPlayer("part1", "{option}", "false");
    createPlayer("part2", "{param}", "false");
}
</script>
<table>
<tr><td>
<p>Part 1</p>
<div id="part1">
</div></td>
<td><p>&nbsp;</p></td>
<td>
<p>Part 2</p>
<div id="part2">
</div>
</td></tr></table>
IMPORTANT : Disable Automatic Link Parsing Within This BB Code : YES

3. Template edit

Go to : Style Manager > Your Template > SHOWTHREAD template

Find :

Code:
<body<vb:if condition="$onload"> onload="{vb:raw  onload}"</vb:if>>
Replace with :

Code:
<body onload="init();<vb:if condition="$onload">{vb:raw onload}</vb:if>">
Save it
-------------------------------------------------------------
You are almost Done

Please Mark as Installed
-------------------------------------------------------------


Tips :


IF players doesn't shown up please edit BBcode and use full url for files in script like this :

Short URL
Code:
<script src="forum/swplayers/silverlight/silverlight.js"  type="text/javascript">
Full URL
Code:
<script src="http://yoursite.com/forum/swplayers/silverlight/silverlight.js"  type="text/javascript">
( 3 files' URLs should be replaced )

------------------------------------

Download

File Type: %1$s [SW] Multi Silverligh Player BBcode.zip (38.5 KB, 43 downloads)

Supporters / CoAuthors

  • SoltanWorld

Screenshots

Click image for larger version
Name:	[SW]Preview.jpg
Views:	155
Size:	46.8 KB
ID:	123539  

Similar Mods

BB Code Enhancements Innovative Small mp3 Multi-Player vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024