PDA

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


NAZIA
26 Apr 2008, 14:16
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
26 Apr 2008, 16:41
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
26 Apr 2008, 22:40
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
13 Jun 2008, 00:38
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
21 Jun 2008, 16:34
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
21 Jun 2008, 16:45
sorry but does it allow us to directly paste youtube video url in threads and so that videos will play inline in threads??? :(

NAZIA
21 Jun 2008, 17:47
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
21 Jun 2008, 17:59
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
21 Jun 2008, 18:39
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
21 Jun 2008, 18:45
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.
http://www.vbulletin.org/forum/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
21 Jun 2008, 19:52
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.
http://www.vbulletin.org/forum/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 http://www.vbulletin.org/forum/member.php?u=49809 who make that hack, Hope he will make it for this BB code..
..
Its Okay Now..?

nexgo67
23 Jun 2008, 14:39
nice is running on 3.7.1 update 2

ask this for 3.6.8 have you

thank you

NAZIA
23 Jun 2008, 15:14
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
10 Jul 2008, 05:34
ahan
nice will test it later.
cheers

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

Ov3rrun
14 Jul 2008, 01:18
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
14 Jul 2008, 15:28
<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;popUpHelp=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;popUpHelp=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
15 Jul 2008, 12:38
Any support?

NAZIA
26 Jul 2008, 16:23
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
13 Aug 2008, 22:51
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
23 Aug 2008, 06:39
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
01 Sep 2008, 12:26
i get the same message, needs version 8? why? i got already version 9

GetNaughty
08 Oct 2008, 05:21
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
27 Oct 2008, 08:20
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
06 Nov 2008, 12:17
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
22 Jan 2009, 23:51
<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;popUpHelp=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;popUpHelp=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
27 Jan 2009, 21:11
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
04 Mar 2009, 16:59
Installed Works Great still tyvm!!!

LaydeeVictoria
19 Mar 2009, 18:21
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
12 Jul 2009, 09:13
thanks!

NAZIA
19 Nov 2009, 22:24
Upgrade Player files. to get high quality Video streaming...

NAZIA
26 Dec 2009, 20:09
BB Code upgraded for multiple videos per thread.

dej
20 Jul 2011, 02:01
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
20 Jul 2011, 09:15
hmmm...

it is,.

Or this:

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

sorry for any confusion...