Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
[SW]Simple Flash & Silver light Players BBcode Details »»
[SW]Simple Flash & Silver light Players BBcode
Version: 1.0.3, 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: 06-11-2010 Last Update: 07-21-2010 Installs: 36
Additional Files Is in Beta Stage  
No support by the author.

Flash Player :

JW Flash Player can Play :
FLV, H.264/MPEG-4, MP3 and YouTube Videos on your website





1. Single Mp3 Player BBcode :


Title : Mp3 player
Tag Name : mp3
Replacement :
Code:
<script type='text/javascript' src='forum/swplayers/flash/swfobject.js'></script>
 
<div id='mediaspace'>This text will be replaced</div>
 
<script type='text/javascript'>
  var so = new SWFObject('forum/swplayers/flash/player.swf','mpl','300','24','9');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable('file','{param}');
  so.write('mediaspace');
</script>
Example : [mp3]http://www.soltanworld.com/downloads/Music/Single/Soltane_Ghalbha.mp3[/mp3]

Button Image :









2. Flash Video Player


Title : Flash Video player
Tag Name : media
Replacement :
Code:
<script type='text/javascript' src='forum/swplayers/flash/swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
  var so = new SWFObject('forum/swplayers/flash/player.swf','ply','470','320','9','#000000');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable('file','{param}');
  so.write('mediaspace');
</script>
Example : [media]Your Link[/media]
Button Image :







3. Flash Mp3 Player with Playlist

Title : Mp3player with playlist
Tag name : mp3p
Replacement :

Code:
<script type='text/javascript'  src='forum/swplayers/4-6/swfobject.js'></script>    <div id='mediaspace'>Install Flash Player</div>   <script type='text/javascript'>   var so = new  SWFObject('forum/swplayers/4-6/player.swf','mpl','240','400','9');    so.addParam('allowfullscreen','false');   so.addParam('allowscriptaccess','always');   so.addParam('wmode','opaque');    so.addVariable('file','{param}');    so.addVariable('playlist','bottom');   so.write('mediaspace'); </script>
Example : [mp3p]http://www.soltanworld.com/swplayers/4-6/mp3.xml[/mp3p]




Silver Light




1. Single WMV Player

Title : WMV Player

Tag name : wmv

Replacement :

Code:
<script type="text/javascript" src="forum/swplayers/silverlight/silverlight.js"></script>
<script type="text/javascript"  src="forum/swplayers/silverlight/wmvplayer.js"></script>

<div id='mediaspace'></div>

<script type='text/javascript'>
 var cnt = document.getElementById('mediaspace');
 var src = 'forum/swplayers/silverlight/wmvplayer.xaml';
 var cfg = {height:'250', width:'470', file:"{param}"};
 var ply = new jeroenwijering.Player(cnt,src,cfg);
</script>
Example : [wmv]http://www.soltanworld.com/downloads/Movie/Persian/Classic/2_Marde_Khashen_01.wmv[/wmv]




Google Mp3 Player

This player i have seen through attachment player and i use this as mp3 player which is so much better than mine

Replacement :


Code:
<embed type="application/x-shockwave-flash" src="http://yourdomain.com/swplayers/google/audio-player.swf?audioUrl={param}&amp;d={vb:raw attachment.dateline}" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />




Attention : IF you have a problem first of all change the address of file to full address like :

Code:
http://sitename/forum/swplayers/flash or silverligh ....


Do not Forget : Mark As Installed For Updates

Download Now

File Type: zip [SW]Simple Flash & Silver light Players BBcode.zip (161.1 KB, 413 views)
File Type: zip [SW]Google Mp3 Player.zip (68.9 KB, 179 views)

Screenshots

File Type: jpg mp3.jpg (85.5 KB, 0 views)
File Type: jpg wmv.jpg (76.2 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 06-15-2010, 03:51 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This can create a security issue... the flash file being linked to could execute code to read the users cookies and gain their log on info to your site.
Reply With Quote
  #13  
Old 06-16-2010, 12:21 AM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uh oh...security issue?
Reply With Quote
  #14  
Old 06-16-2010, 01:09 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not with the code here but in the flash file itself.
Reply With Quote
  #15  
Old 06-16-2010, 06:04 PM
SoltanWorld's Avatar
SoltanWorld SoltanWorld is offline
 
Join Date: Feb 2010
Location: Loas Angeles
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by funmasti View Post
any live demo?
Live Demo Link has been added

Quote:
Originally Posted by Reeve of shinra View Post
This can create a security issue... the flash file being linked to could execute code to read the users cookies and gain their log on info to your site.
Quote:
Originally Posted by Reeve of shinra View Post
not with the code here but in the flash file itself.
I have not done anything about the flash file, but it's Longtail website mistake, isn't it?
Reply With Quote
  #16  
Old 07-05-2010, 08:39 AM
SoltanWorld's Avatar
SoltanWorld SoltanWorld is offline
 
Join Date: Feb 2010
Location: Loas Angeles
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mp3 Player with Playlist Added.

Enjoy
Reply With Quote
  #17  
Old 07-18-2010, 07:45 PM
bferrell bferrell is offline
 
Join Date: Nov 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason, no matter what url I enter, I get the same video (from the target directory on my website) playing?! Please, any advice?
Reply With Quote
  #18  
Old 07-20-2010, 07:19 AM
SoltanWorld's Avatar
SoltanWorld SoltanWorld is offline
 
Join Date: Feb 2010
Location: Loas Angeles
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you have not place the {param} in link tag, it should be like this in BB code

Code:
<script type="text/javascript" src="forum/swplayers/silverlight/silverlight.js"></script>
<script type="text/javascript"  src="forum/swplayers/silverlight/wmvplayer.js"></script>

<div id='mediaspace'></div>

<script type='text/javascript'>
 var cnt = document.getElementById('mediaspace');
 var src = 'forum/swplayers/silverlight/wmvplayer.xaml';
 var cfg = {height:'250', width:'470', file:"{param}"};
 var ply = new jeroenwijering.Player(cnt,src,cfg);
</script>
Reply With Quote
  #19  
Old 07-20-2010, 07:22 PM
bferrell bferrell is offline
 
Join Date: Nov 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, that's in there (I just copied and pasted it)... weird.
Reply With Quote
  #20  
Old 07-20-2010, 09:02 PM
Blooded Blooded is offline
 
Join Date: Feb 2010
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed and working
Reply With Quote
  #21  
Old 07-21-2010, 02:54 AM
SoltanWorld's Avatar
SoltanWorld SoltanWorld is offline
 
Join Date: Feb 2010
Location: Loas Angeles
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear Beferrel would you please link me to see ?
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 05:57 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.04576 seconds
  • Memory Usage 2,330KB
  • Queries Executed 27 (?)
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
  • (7)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete