PDA

View Full Version : BB Code Enhancements - BB Code for FLV files/ FLV URLs


NAZIA
04-25-2008, 10:00 PM
I am sharing This BB Custom Code with all members...
Hope you will like my this effort...
By this BB Code you can Write the Direct link of any .FLV file video.
It will envelope the Video automatically with the Player.
And movie will run within the site..

. So why are you waiting.
Come on..
What is new:


Multi Videos per thread allowed
Download the attachment..
Upload flv folder and all subfiles in the main folder of your site.
Now go to your admin CP of the forum.
In Admincp >> Custom BB Codes >> Add New BB CodeOR
http://You_site_name/admincp/bbcode.php?do=add

Here
Add following informations...
TITLE: Nazia's FLV Player
TAG: FLV
Replacement:

<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="520" height="420">
<param name="movie" value="flv/player.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="file={param}&image=flv/preview.jpg" />
<embed
type="application/x-shockwave-flash"
id="player2"
name="player2"
src="flv/player.swf"
width="520"
height="420"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file={param}&image=flv/preview.jpg"
/></object>

[B]
EXAMPLE: http://almuslameen.info/speeches/Sheikh-Touseef-ur-Rahman/Do_not_Celebrate_Festival_of_Non_muslims_6.flv
Button Image: Write the URL of the flv/flv.gif image..

and save all..
Description: The pasted link of your FLV video will automatically embedded with the BZUpages FLV player

NOTE: No need to replace any replacement code


--------------
Upgrade history:
27 December 2009
Multi Videos per thread allowed
FLV editor icon changed
Can be used for VB 3.8.x


20 November 2009
You have to do no modification in BBD code, Just upload (replace) latest version of JW FLV Player , after downloading the attachment.


Resources:
I have used JW FLV MEDIA PLAYER (http://www.jeroenwijering.com/?item=JW_FLV_Player) for playing video.

SEOvB
04-26-2008, 02:41 PM
You may want to install a additional modification that limits the use of BBcode to usergroups and not let usergroups you don't trust be able to embed flash onto your forum. It can have potentially disasterous security results

NAZIA
04-26-2008, 08:40 PM
You may want to install a additional modification that limits the use of BBcode to usergroups and not let usergroups you don't trust be able to embed flash onto your forum. It can have potentially disasterous security results
Oh!
I see.
Thanks for your info.
Actually I have made this code for my forum. That is why I have shared this with all friends.
If you don't like ,so that do not create this BB Code.
Moreover. If is there any security problem regarding to my this code.
Admin/ Modi you can delete this thread, Because I am newbee and have little knowledge.
ThAnKs

knezzaghy
06-12-2008, 10:38 PM
Hi,

When I get insert it, it tells me that I need to "upgrade your flash player to at least version 8 to view this video content." I have upgraded and am able to view the video on other pages. Is there something that needs to be modified with the code?

karen

jailer
06-21-2008, 02:34 PM
There's big gaps in the first script (example: Onload is Onloa d)
Not installed. :(
Second one works fine, but security does need to be addressed.

nirvana43
06-21-2008, 02:45 PM
sorry but does it allow us to directly paste youtube video url in threads and so that videos will play inline in threads??? :(

NAZIA
06-21-2008, 03:47 PM
There's big gaps in the first script (example: Onload is Onloa d)
Not installed. :(
Second one works fine, but security does need to be addressed.


Here are the Demo Links..
http://bzupages.com/f15/video-of-final-match-b-w-it-ts-348/
http://bzupages.com/f5/flv-player-button-in-the-editor-350/

Thanks for the gap discussed actually when I have pasted, It automatically appeares.
what sort of security you are saying. wana explain?




sorry but does it allow us to directly paste youtube video url in threads and so that videos will play inline in threads??? :(

Sorry dear nirvana. It only works with .flv urls...

jailer
06-21-2008, 03:59 PM
Flash files can be hiding places for security exploits such as redirects.
It's a good idea to use BB Code permissions to make sure untrusted usergroups don't post dangerous flash files.

Maybe have a read here: http://eyeonsecurity.org/papers/flash-xss.htm#_Toc18055083

NAZIA
06-21-2008, 04:39 PM
Flash files can be hiding places for security exploits such as redirects.
It's a good idea to use BB Code permissions to make sure untrusted usergroups don't post dangerous flash files.

Maybe have a read here: http://eyeonsecurity.org/papers/flash-xss.htm#_Toc18055083
Is there any option in VB that by which we restrict the user group to use the BB codes?
Sorry to say that
I don't have any idea about this.

As you are saying that member can share dangerous flv files. hmm flv videos not flash files.. Similarly by BB code for Utube video people can share the dang videos..
If that BB code have any restriction you can apply those cases with this code.

Now any confusion?

jailer
06-21-2008, 04:45 PM
YouTube aren't likely to have dangerous files on their servers though.
They may do, I don't know, but I'd say they're pretty secure.
FLV, SWF or any HTML - it's a bad idea to allow.

No, no option in VB but you can try this.
https://vborg.vbsupport.ru/showthread.php?p=1555453
Not currently working for me (3.7.1) so I don't have this hack installed right now until someone can help.

NAZIA
06-21-2008, 05:52 PM
YouTube aren't likely to have dangerous files on their servers though.
They may do, I don't know, but I'd say they're pretty secure.
FLV, SWF or any HTML - it's a bad idea to allow.

No, no option in VB but you can try this.
https://vborg.vbsupport.ru/showthread.php?p=1555453
Not currently working for me (3.7.1) so I don't have this hack installed right now until someone can help.
Alright..
But I am sorry that I don't have any Idea about BB code permissions,
So for this Please discus with Abe1 https://vborg.vbsupport.ru/member.php?u=49809 who make that hack, Hope he will make it for this BB code..
..
Its Okay Now..?

nexgo67
06-23-2008, 12:39 PM
nice is running on 3.7.1 update 2

ask this for 3.6.8 have you

thank you

NAZIA
06-23-2008, 01:14 PM
nice is running on 3.7.1 update 2

ask this for 3.6.8 have you

thank you
Yes. Buddy. It is also working with VB 3.6.8

Shaheen
07-10-2008, 03:34 AM
ahan
nice will test it later.
cheers

Q-v-n-s-Q
07-10-2008, 05:03 AM
simple and easy

Ov3rrun
07-13-2008, 11:18 PM
Hi, the code works OK, but it dont play more than one video at time ? why?

I put 3 videos on same post, and just one plays.

smooth-c
07-14-2008, 01:28 PM
<script type="text/javascript" src="http://www.maximum-jackson.com/discussion/images/swfobject.js"></script><br /> <div id="flashcontent" align="center"><p style="font-weight:bold;font-size:14pt;">You need to upgrade your Flash Player to at<br>least version 8 to view this video content.</p><p><a href="http://www.adobe.com/flashplayer/">Click here to download the latest version of Flash Player</a>.</p></div><br /> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("http://www.maximum-jackson.com/discussion/images/flvplayer.swf?theFile={param}&amp;defaultImage=htt p://www.maximum-jackson.com/discussion/images/graphic.jpg&amp;theVolume=75&amp;startPlayingOnload=no&amp;pop UpHelp=no&amp;buff erSeconds=2&amp;vide oSmoothing=yes","flvplayer","640","495","8","#0000 00"); so.addParam("movie","http://www.maximum-jackson.com/discussion/images/flvplayer.swf?theFile={param}&amp;defaultImage=htt p://www.maximum-jackson.com/discussion/images/graphic.jpg&amp;theVolume=75&amp;startPlayingOnload=no&amp;pop UpHelp=no&amp;buff erSeconds=2&amp;vide oSmoothing=yes"); so.addParam("bgcolor","#000000"); so.addParam("wmode","transparent"); so.write("flashcontent"); // ]]> </script>

That's the code I added to my replacement field, all pointing to the correct place yet I get

You need to upgrade your Flash Player to at
least version 8 to view this video content.

Click here to download the latest version of Flash Player.

Flash is installed and working correctly..?

smooth-c
07-15-2008, 10:38 AM
Any support?

NAZIA
07-26-2008, 02:23 PM
Hi, the code works OK, but it dont play more than one video at time ? why?

I put 3 videos on same post, and just one plays.

Any support?

Yes I only works only one video per thread, I tried to remove this bug,but did not find any solution..
So i don't know what to do..
Sorry for this..
Thanks you..

PAKIDIL
08-13-2008, 08:51 PM
i tried it to install but its shows a mesage that need flash player 8 to view the content i install it but still same mesage

binal0072003
08-23-2008, 04:39 AM
Hi,

When I get insert it, it tells me that I need to "upgrade your flash player to at least version 8 to view this video content." I have upgraded and am able to view the video on other pages. Is there something that needs to be modified with the code?

karen

same problem with me man please explain

Nikoo
09-01-2008, 10:26 AM
i get the same message, needs version 8? why? i got already version 9

GetNaughty
10-08-2008, 03:21 AM
i tried it to install but its shows a mesage that need flash player 8 to view the content i install it but still same mesage

Same thing happened to me. I wish it would work cause it would be awesome!

Nadeemjp
10-27-2008, 06:20 AM
Nazia, can we use both the codes you mentioned or either one should be enough? also, if we need both separately then how are we going to differentiate if both have coding of FLV???

NAZIA
11-06-2008, 10:17 AM
Nazia, can we use both the codes you mentioned or either one should be enough? also, if we need both separately then how are we going to differentiate if both have coding of FLV???
No we can use one player one time only...

CORSO
01-22-2009, 09:51 PM
<script type="text/javascript" src="http://www.maximum-jackson.com/discussion/images/swfobject.js"></script><br /> <div id="flashcontent" align="center"><p style="font-weight:bold;font-size:14pt;">You need to upgrade your Flash Player to at<br>least version 8 to view this video content.</p><p><a href="http://www.adobe.com/flashplayer/">Click here to download the latest version of Flash Player</a>.</p></div><br /> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("http://www.maximum-jackson.com/discussion/images/flvplayer.swf?theFile={param}&amp;defaultImage=htt p://www.maximum-jackson.com/discussion/images/graphic.jpg&amp;theVolume=75&amp;startPlayingOnload=no&amp;pop UpHelp=no&amp;buff erSeconds=2&amp;vide oSmoothing=yes","flvplayer","640","495","8","#0000 00"); so.addParam("movie","http://www.maximum-jackson.com/discussion/images/flvplayer.swf?theFile={param}&amp;defaultImage=htt p://www.maximum-jackson.com/discussion/images/graphic.jpg&amp;theVolume=75&amp;startPlayingOnload=no&amp;pop UpHelp=no&amp;buff erSeconds=2&amp;vide oSmoothing=yes"); so.addParam("bgcolor","#000000"); so.addParam("wmode","transparent"); so.write("flashcontent"); // ]]> </script>

That's the code I added to my replacement field, all pointing to the correct place yet I get

You need to upgrade your Flash Player to at
least version 8 to view this video content.

Click here to download the latest version of Flash Player.

Flash is installed and working correctly..?

I have this problem too

Davidinh
01-27-2009, 07:11 PM
Try to use <object> tag

<div align="center">
<object type="application/x-shockwave-flash" data="./clientscript/mediaplayer4/player.swf" id="player2" height="360" width="640">
<param name="movie" value="./clientscript/mediaplayer4/player.swf">
<param name="FlashVars" value="&amp;file={param}">
<param name="quality" value="best">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>
</div>

Download a new version of JW Player here (4.3) (http://www.longtailvideo.com/players/jw-flv-player/)

I use folder Clientscript to storage jw player JS on my site so depend on you put change the url "./clientscript/mediaplayer4" to fit your

good luck !!!

Xencored
03-04-2009, 02:59 PM
Installed Works Great still tyvm!!!

LaydeeVictoria
03-19-2009, 04:21 PM
I was getting asked to update flash too. I got round this by uploading all the files in the JW Media Player (Click Here To Download) (http://www.longtailvideo.com/players/jw-flv-player/) to my server and changing the replacement code to;

<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript" src="http://your site name/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("http://your site name/player-viral.swf","mediaplayer","320","220","8");
s1.addParam("allowfullscreen","true");
s1.addVariable("width","320");
s1.addVariable("height","220");
s1.addVariable("file","{param}");
s1.write("container");
</script>

There's a size difference between the media player files - Nazia's media player is 40k and the media player downloaded from JW is 45k. Perhaps it contains updated code? Not sure, honestly don't know much about the tech.

Nazia thanks so much for this mod! Works a treat! :up:

rizelim
07-12-2009, 07:13 AM
thanks!

NAZIA
11-19-2009, 08:24 PM
Upgrade Player files. to get high quality Video streaming...

NAZIA
12-26-2009, 06:09 PM
BB Code upgraded for multiple videos per thread.

dej
07-20-2011, 12:01 AM
In your directions, it says:

"Upload the all files in the image folder of your site."

Which folder goes where?

In the zip there is:

Forum Directory

and:

FLV

Do you mean --> upload the FLV FOLDER into Root > IMAGES?

Or:

Do you mean --> upload the FORUM DIRECTORY FOLDER into Root > IMAGES?

:confused:

Then, at the top of this page, you say:

"Upload flv folder and all subfiles in the main folder of your site."

Which is it?

This:
"Upload the all files in the image folder of your site."

Or this:

"Upload flv folder and all subfiles in the main folder of your site."

NAZIA
07-20-2011, 07:15 AM
hmmm...

it is,.

Or this:

"Upload flv folder in the main folder of your site."

sorry for any confusion...