vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   BB Code Enhancements - BB Code for FLV files/ FLV URLs (https://vborg.vbsupport.ru/showthread.php?t=177213)

NAZIA 04-25-2008 10:00 PM

BB Code for FLV files/ FLV URLs
 
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. [By FTP]
  • Now go to your admin CP of the forum.
  • In Admincp >> Custom BB Codes >> Add New BB Code
OR
http://You_site_name/admincp/bbcode.php?do=add

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

Code:

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




EXAMPLE:
[FLV]http://almuslameen.info/speeches/Sheikh-Touseef-ur-Rahman/Do_not_Celebrate_Festival_of_Non_muslims_6.flv[/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 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

Quote:

Originally Posted by FRDS (Post 1499816)
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

Quote:

Originally Posted by jailer (Post 1555438)
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-fin...b-w-it-ts-348/
http://bzupages.com/f5/flv-player-bu...he-editor-350/

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




Quote:

Originally Posted by nirvana43 (Post 1555443)
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/flas...m#_Toc18055083

NAZIA 06-21-2008 04:39 PM

Quote:

Originally Posted by jailer (Post 1555499)
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/flas...m#_Toc18055083

Is there any option in VB that by which we restrict the user group to use the BB codes?
Sorry to say that
Quote:

Originally Posted by Nazia Jabeen
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.


All times are GMT. The time now is 02:54 AM.

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.01277 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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