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]Simple Flash & Silver light Players BBcode (https://vborg.vbsupport.ru/showthread.php?t=244468)

SoltanWorld 06-11-2010 10:00 PM

[SW]Simple Flash & Silver light Players BBcode
 
1 Attachment(s)
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 :

https://vborg.vbsupport.ru/external/2010/06/27.png







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 :

https://vborg.vbsupport.ru/external/2010/06/27.png





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 :o

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 ;)

SoltanWorld 06-12-2010 09:14 AM

Change Log :
**************************************

- 07/05/2010 : Mp3 Player with Playlist added

sulasno 06-12-2010 10:16 AM

tagged & thanks

will install them after updating vBulletin to 4.0.4

tafreeh 06-12-2010 08:57 PM

can you add this into Profile ?

SoltanWorld 06-13-2010 05:06 AM

What do you mean by into profile? In profile Tabs Like Visitor Message you can add this yeah by editing setting and making custom bb code enabled .

n_only 06-14-2010 06:38 AM

is there a way to make it only for admin group only?

SoltanWorld 06-14-2010 09:04 AM

no idea abt this, but you should check permissions.

sadiq6210 06-14-2010 08:15 PM

Thanks =)

funmasti 06-15-2010 09:18 AM

any live demo?

Dr.osamA 06-15-2010 02:00 PM

Excellent = 5 sratrs +installed

thanx

Reeve of shinra 06-15-2010 03:51 PM

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.

AzzidReign 06-16-2010 12:21 AM

Uh oh...security issue? :(

Reeve of shinra 06-16-2010 01:09 AM

not with the code here but in the flash file itself.

SoltanWorld 06-16-2010 06:04 PM

Quote:

Originally Posted by funmasti (Post 2053929)
any live demo?

Live Demo Link has been added

Quote:

Originally Posted by Reeve of shinra (Post 2054075)
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 (Post 2054275)
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?

SoltanWorld 07-05-2010 08:39 AM

Mp3 Player with Playlist Added.

Enjoy

bferrell 07-18-2010 07:45 PM

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?

SoltanWorld 07-20-2010 07:19 AM

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>


bferrell 07-20-2010 07:22 PM

Nope, that's in there (I just copied and pasted it)... weird.

Blooded 07-20-2010 09:02 PM

Fixed and working :D

SoltanWorld 07-21-2010 02:54 AM

Dear Beferrel would you please link me to see ?

bferrell 07-21-2010 11:05 AM

I'd removed the BBcodes when the didn't work, and now when I try to add them back I get a "The connection to the server was reset while the page was loading." error?? I'm kind of freaked out, any thoughts and might cause this? I don't have this happen anywhere else in my admin cp...

SoltanWorld 07-22-2010 04:09 AM

I'm wonder what you have done, this mod is just a simple BBcode which doesnt hurt your forum or sth else, i believe that you have done sth wrong coze This kind of errors are not related to the Mod and it's server or hosting issue.

One more thing : If you have the same Video every where you go there are 2 thing that you maybe have done

1. You maybe have change the code where it render the file address
2. your file link has been cached which mean You have to clear your cache I have the same problem in Vba, but in Vbulletin no.

And dear friend as you can see other people are using this with out any problem as they follow the Installation. So read it and just let me know when you add the files and the BB codes does the player shown up? can you link me to see ?

manutdvn 07-22-2010 07:50 AM

I can make it work. It just shows the text line: This text will be replaced

Nothing happens :(.

Can you tell me how to fix?

SoltanWorld 07-22-2010 08:09 AM

Check the links, and other options and aslo This wil be shown when your player file has sth wrong with it.

make sure that in script you have enter the correct address :

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>

to make it sure that your address work you can use as full URL like :

http://yourdomain.com/forum/swplayers/flash/player.swf

and one more thing , for mp3 players i will update this mod to google player which in more faster and no error whitin it will you have.

SoltanWorld 07-22-2010 08:27 AM

Google mp3 Player added.

manutdvn 07-22-2010 10:12 AM

Quote:

Originally Posted by SoltanWorld (Post 2072799)
Check the links, and other options and aslo This wil be shown when your player file has sth wrong with it.

make sure that in script you have enter the correct address :

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>

to make it sure that your address work you can use as full URL like :

http://yourdomain.com/forum/swplayers/flash/player.swf

and one more thing , for mp3 players i will update this mod to google player which in more faster and no error whitin it will you have.

Of course, I checked the path link but the same as before. I tried with link:

http://mydomain.net/diendan/swplayers/flash/player.swf

It worked.

bferrell 07-22-2010 10:56 AM

I don't know why it's happening, nor do I claim it makes any sense, but it seems related to this bbcode because when I paste your replacement into my 'Test your BB Code' box I get the "The connection was reset" error. When I test other replacements like the one below, they test fine.

If I could get the bbcode reinstalled I would send you a test link, but right now I can't get it to even store the entries. I uninstalled some other mods I wasn't really using to see if they were causing an issue. I have your files in my cms 4.0.4 root (/www/www/swplayers). I tried deactivating all of my plugins, and I'm going to upgrade to 4.0.5 next to see if that helps.

Brett
www.velocityxl.com
JS
SWF



<object type="application/x-shockwave-flash" data="/misc/audio-player/player.swf" id="audioplayer" height="24" width="290">
<param name="movie" value="/misc/audio-player/player.swf">
<param name="FlashVars" value="playerID=audioplayer&amp;soundFile={param}" >
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>

kkingg 07-22-2010 09:11 PM

thanks but, it doesnt open facebook video on the internet explorer,


firefox and chrome is not problem working

example: http://www.myformtr.com/macera-aksiy...le-2010-a.html

SoltanWorld 09-19-2010 05:20 AM

I couldn't find the reason for it's problem with IE but i think it's IE bugs.

marshal_ramdev 12-02-2010 01:10 PM

thanks ..

SoltanWorld 04-30-2011 06:33 AM

Wlc dear

8thos 05-04-2011 07:27 AM

Gonna try this out soon.

gamerzhut 05-04-2011 05:19 PM

How to add the mp3 player alone to the members profile with auto play option?

SoltanWorld 05-10-2011 07:47 AM

Quote:

Originally Posted by gamerzhut (Post 2191782)
How to add the mp3 player alone to the members profile with auto play option?

You want to add a mp3 player bbcode with auto play option?

gamerzhut 05-10-2011 12:25 PM

Quote:

Originally Posted by SoltanWorld (Post 2193952)
You want to add a mp3 player bbcode with auto play option?

Exactly. Something like this mod which works for 3.8.x


https://vborg.vbsupport.ru/showthread.php?t=214321
Thanks in advance :)

SoltanWorld 06-03-2011 10:41 AM

Quote:

Originally Posted by gamerzhut (Post 2194011)
Exactly. Something like this mod which works for 3.8.x


https://vborg.vbsupport.ru/showthread.php?t=214321
Thanks in advance :)

here you are :

https://vborg.vbsupport.ru/showthread.php?t=264654

dej 07-20-2011 12:24 AM

This only allows me to post:

1 video PER thread.

Example:

Post 1 -----> 1st video appears

Post 2 -----> this video does not

????

SoltanWorld 07-31-2011 07:31 PM

Quote:

Originally Posted by dej (Post 2222668)
This only allows me to post:

1 video PER thread.

Example:

Post 1 -----> 1st video appears

Post 2 -----> this video does not

????

due to div id, which is named : mediaspace, if you want this to shown in all post you should have sth like generator to generate new div with id in java script.

hoadiem 09-18-2011 02:57 PM

anyone try mp3 player with playlist yet, mine not working

denman75 10-07-2011 09:14 AM

aint working with latest vb4 here ,silverlight just does not react :(


All times are GMT. The time now is 02:26 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.02144 seconds
  • Memory Usage 1,841KB
  • 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
  • (9)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete