1 (edited by Rod 2005-07-29 03:14)

Topic: Video FLASH (FLV) reader by BBCODE

Example at
http://www.sortons.net/forum/viewtopic.php?id=4417

You need
1. download the FREE PLAYER created by Jeroen Wijering at http://www.jeroenwijering.com/?item=Flash+Video+Player (direct link download : http://www.jeroenwijering.com/downloads … player.zip)

2. There is a 100% FREE FLV encoder at http://www.rivavx.com/index.php?encoder (only for PC ... sorry !)

3. Add in CSS

.video {
    width :auto; 
    height : 320px; 
    background : #F7F7F7; 
    margin : 10px; 
    padding : 10px; 
    border : 1px solid #E7E7E7; 
    font-size : 14px; 
    font-weight : 600; 
    text-align : center;
}

4. Open /include/parser.php

'#\[video\](.*?)\[/video\]#',
'<div class="video">Title of your Video Box<object type="application/x-shockwave-flash" data="URL-OF-YOUR-PLAYER/flvplayer.swf?file=URL-WHERE-YOU-PUT-YOUR-FLV/$1.flv&autoStart=false" width="100%" height="100%" wmode="transparent"><param name="movie" value="URL-OF-YOUR-PLAYER/flvplayer.swf?file=URL-WHERE-YOU-PUT-YOUR-FLV/$1.flv&autoStart=false" /><param name="wmode" value="transparent" /></object></div>',

Advantages are great
1. no more to need QUICKTIME + REAL PLAYER + WINDOWS MEDIA PLAYERS ... and the very loud softs when you want to see a video.

2. total control of width, height, and quality.

3. On my forum example, the original video (Quicktime) was 102 mo. The Fla with the SIMILAR quality is ... 11mo !!! Stream is perfect smile

Re: Video FLASH (FLV) reader by BBCODE

hey man you can more explicit with the installation with this mod

El Mejor Lugar de la Red - Corporación Azakur4

Re: Video FLASH (FLV) reader by BBCODE

Can you explain a little bit more about this mod ?

4

Re: Video FLASH (FLV) reader by BBCODE

I'm coming : all your answers tomorrow smile

Re: Video FLASH (FLV) reader by BBCODE

Up smile

6

Re: Video FLASH (FLV) reader by BBCODE

Ok smile I listen your question, even if when reading again my post, it was simple to realize smile So .. ?

7 (edited by trongha 2006-06-03 06:26)

Re: Video FLASH (FLV) reader by BBCODE

with mp3?
Link download die!

post again, please!

I'm from Viet Nam. i speak english vey bad! Sorry.

Re: Video FLASH (FLV) reader by BBCODE

So...which css file should I embed your css code?

Re: Video FLASH (FLV) reader by BBCODE

imports/base.css should be fine.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Video FLASH (FLV) reader by BBCODE

Thanks... I will try to apply this to my site later smile

Re: Video FLASH (FLV) reader by BBCODE

I applied the FLV mod on my site...so far using the [video][/video] BBCODE works and shows the player already but it wont load the video... Anyone can help?

The CSS is pretty simple but I have a doubt about the parser.php. Here is how i put it in the parser.php:

$pattern = array('#\[b\](.*?)\[/b\]#s',
                     '#\[i\](.*?)\[/i\]#s',
                     '#\[u\](.*?)\[/u\]#s',
                     '#\[youtube\]http://www.youtube.com/watch\?v=(.*?)\[/youtube\]#s',
                     '#\[googlevid\]http://video.google.com/videoplay\?docid=(.*?)\[/googlevid\]#s',
                     '#\[url\]([^\[]*?)\[/url\]#e',
                     '#\[url=([^\[]*?)\](.*?)\[/url\]#e',
                     '#\[email\]([^\[]*?)\[/email\]#',
                     '#\[email=([^\[]*?)\](.*?)\[/email\]#',
                     '#\[video\](.*?)\[/video\]#',
                     '#\[qt=(.*?)\](.*?)\[/qt\]#',
                     '#\[real=(.*?)\](.*?)\[/real\]#',
                     '#\[wmv=(.*?)\](.*?)\[/wmv\]#',
                     '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s');

    $replace = array('<strong>$1</strong>',
                     '<em>$1</em>',
                     '<span class="bbu">$1</span>',
                     '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>',
                     '<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=$1&hl=en"></embed>',
                     'handle_url_tag(\'$1\')',
                     'handle_url_tag(\'$1\', \'$2\')',
                     '<a href="mailto:$1">$1</a>',
                     '<a href="mailto:$1">$2</a>',
                     '<div class="video">Vihe Video Box<object type="application/x-shockwave-flash" data="img/flvplayervihe.swf?file=img/$1.flv&autoStart=false" width="100%" height="100%" wmode="transparent"><param name="movie" value="img/flvplayervihe.swf?file=img/$1.flv&autoStart=false" /><param name="wmode" value="transparent" /></object></div>',
                     '<a href="$1" onclick="return enlarge(\'$1\', event, \'quicktime\', \'center\', \'425\', \'350\')">$2</a>',
                     '<a href="$1" onclick="return enlarge(\'$1\', event, \'realvideo\', \'center\', \'425\', \'350\')">$2</a>',
                     '<a href="$1" onclick="return enlarge(\'$1\', event, \'wmv\', \'center\', \'425\', \'350\')">$2</a>',
                     '<span style="color: $1">$2</span>');

Re: Video FLASH (FLV) reader by BBCODE

This is the link and as you can see the player is showing up fine but it won't load the flv file.

http://graphicsgenius.com/viewtopic.php?pid=131#p131

Re: Video FLASH (FLV) reader by BBCODE

well it does load the flv link from the parser.php. the problem now is how you insert the link in the BBCODE? I tried this but it won't work....

[video]i put the link in here but it won't play it, instead it still plays the link in the parser.[/video]

14

Re: Video FLASH (FLV) reader by BBCODE

...sorry to push up this old thread, but I have problems installing this....
Rod, could you please explain it one more time

I did it your way and only the flv player showed up in 100% / 100% , no size control and no moviefile.....?
I used only the "flvplayer.swf" - is that correct?