Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
[SW] Multi Silverlight Player BBcode Details »»
[SW] Multi Silverlight Player BBcode
Version: 2.01, by SoltanWorld SoltanWorld is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.x.x Rating:
Released: 11-09-2010 Last Update: Never Installs: 8
Template Edits
Additional Files  
No support by the author.

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 Now

File Type: zip [SW] Multi Silverligh Player BBcode.zip (38.5 KB, 41 views)

Screenshots

File Type: jpg [SW]Preview.jpg (46.8 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-10-2010, 06:36 PM
ellinofatsa ellinofatsa is offline
 
Join Date: Mar 2010
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks first
Reply With Quote
  #3  
Old 11-11-2010, 04:20 AM
SoltanWorld's Avatar
SoltanWorld SoltanWorld is offline
 
Join Date: Feb 2010
Location: Loas Angeles
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ellinofatsa View Post
thanks first
You're Welcome
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04959 seconds
  • Memory Usage 2,233KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete