PDA

View Full Version : BB Code Enhancements - [SW]Simple Flash & Silver light Players BBcode


SoltanWorld
06-11-2010, 10:00 PM
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 :

<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 : http://www.soltanworld.com/downloads/Music/Single/Soltane_Ghalbha.mp3

Button Image :

https://vborg.vbsupport.ru/external/2010/06/27.png (http://soltanworld.com/swplayers/flash/mp3.png)







2. Flash Video Player

Title : Flash Video player
Tag Name : media
Replacement :

<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 : Your Link
Button Image :

https://vborg.vbsupport.ru/external/2010/06/27.png (http://soltanworld.com/swplayers/flash/mp3.png)





3. Flash Mp3 Player with Playlist

Title : Mp3player with playlist
Tag name : mp3p
Replacement :

<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 : http://www.soltanworld.com/swplayers/4-6/mp3.xml




Silver Light



1. Single WMV Player

Title : WMV Player

Tag name : wmv

Replacement :

<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 : http://www.soltanworld.com/downloads/Movie/Persian/Classic/2_Marde_Khashen_01.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 :

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

http://sitename/forum/swplayers/flash or silverligh ....Demo :
Silver Light Demo (http://soltanworld.com/forum/local_links.php?catid=23&linkid=106)
mp3 player Demo (http://soltanworld.com/forum/local_links.php?catid=9&linkid=89)

mp3 player with playlist Demo (http://soltanworld.com)



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
any live demo?

Live Demo Link has been added

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.

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

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

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

<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 (http://www.velocityxl.com/swplayers/flash/swfobject.js)
SWF (http://www.velocityxl.com/swplayers/flash/player.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-aksiyon-izle/12215-iron-man-2-demir-adam-2-full-turkce-izle-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
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
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
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
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 :(

belowthebelt
12-06-2011, 01:26 AM
Just get
"This text will be replaced"

Does not display video

SoltanWorld
05-20-2012, 06:32 AM
Just get
"This text will be replaced"

Does not display video

More than 1 video need id generator

Preech
05-20-2012, 06:42 AM
So does the playlist option work still.

SoltanWorld
05-20-2012, 07:03 AM
yes as far as these items are BB Codes they're always working, if somewhere it doesn't work update your player files from the source website you'll get what you got

p.s : i'll update new players here soon ;)

Preech
05-28-2012, 08:53 AM
Next question. Any way to use this to play a playlist from another website.

SoltanWorld
05-28-2012, 07:03 PM
you can address the playlist from external link but i've not done this

Preech
05-29-2012, 06:36 AM
Thank you. Just curious, because I'm am setting wimpy to run through the templates of vbulletin. I was just trying to figure out how to get playlist to show in post.

Megaboost
05-31-2012, 01:50 PM
Google MP3 works fine with 4.2

acast
06-12-2012, 02:52 PM
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.Sorry, i dont understand too much what i have to do to see in all posts. Could you put the code i have to put to see in all the posts, please?