vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - [SW] Multi Silverlight Player BBcode (https://vborg.vbsupport.ru/showthread.php?t=253458)

SoltanWorld 11-09-2010 10:00 PM

[SW] Multi Silverlight Player BBcode
 
1 Attachment(s)
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 )

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

ellinofatsa 11-10-2010 06:36 PM

thanks first

SoltanWorld 11-11-2010 04:20 AM

Quote:

Originally Posted by ellinofatsa (Post 2120308)
thanks first

You're Welcome :)


All times are GMT. The time now is 02:29 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.01294 seconds
  • Memory Usage 1,724KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete