[BETA] Flash Video (FLV) integration

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

New version has been released: v1.0.3
this time I added customizable width and height parameters in bbcode.

I'm not able to create customizable width and height in the attachment part, as it would need a lot of coding.
If I find the time, I will do so.
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

thats pretty cool though thanks! i take it that means you can set each individual video to a different size?

What changes do i need to make to my current version?
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

download the new package and open install.xml in your browser.
Then you need to redo the step for:
- bbcode.php
- language_main.php
- bbcode.tpl

That should do the trick
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

ty SaWey
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

Hi Sawey,

The new updates are awesome! you can get people to upload and then if you wish to resize you can do that yourself...it works pretty good.

There is a problem though.... in the bbcode flv tag when you put over 1000 (4 figures) for width it doesn't work. 999 works fine. See for yourself.

regards

steve
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

Yes, I know.
The problem is in bbcode.php, in the following line:

Code: Select all

	$patterns[] = "#\[flv width=([0-9]?[0-9]?[0-9]) height=([0-9]?[0-9]?[0-9])\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!flv=))*?)\[/flv\]#is";
change it to:

Code: Select all

	$patterns[] = "#\[flv width=([0-9]?[0-9]?[0-9]?[0-9]) height=([0-9]?[0-9]?[0-9]?[0-9])\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!flv=))*?)\[/flv\]#is";
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

thanks that done it.
User avatar
Cama
Registered User
Posts: 21
Joined: Sun Sep 16, 2007 9:39 pm

Re: [BETA] Flash Video (FLV) integration

Post by Cama »

Very good work!
User avatar
Cama
Registered User
Posts: 21
Joined: Sun Sep 16, 2007 9:39 pm

Re: [BETA] Flash Video (FLV) integration

Post by Cama »

The error is a code. File admin_attachments

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$s_assigned_group_images = $lang['None'];
$s_assigned_group_streams = $lang['None'];
$s_assigned_group_flash = $lang['None'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$s_assigned_group_flv = $lang['None'];
#
#-----[ FIND ]------------------------------------------
#
else if ($row[$i]['cat_id'] == SWF_CAT)
{
$s_assigned_group_flash[] = $row[$i]['group_name'];
}
#
#-
Fix

Code: Select all

#-----[ FIND ]------------------------------------------
#
$s_assigned_group_images = $lang['None'];
$s_assigned_group_streams = $lang['None'];
$s_assigned_group_flash = $lang['None'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$s_assigned_group_flv = $lang['None'];
#
#-----[ FIND ]------------------------------------------
#
	$s_assigned_group_images = array();
	$s_assigned_group_streams = array();
	$s_assigned_group_flash = array();

#
#-----[ AFTER, ADD ]------------------------------------------
#
	$s_assigned_group_flv =  array();
#
#-----[ FIND ]------------------------------------------
#
else if ($row[$i]['cat_id'] == SWF_CAT)
{
$s_assigned_group_flash[] = $row[$i]['group_name'];
}
#
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

Cama wrote:The error is a code. File admin_attachments

Code: Select all

...
What do you mean by this?
Can't see any changes?
User avatar
Cama
Registered User
Posts: 21
Joined: Sun Sep 16, 2007 9:39 pm

Re: [BETA] Flash Video (FLV) integration

Post by Cama »

It is a small fix which eliminates an error if film display is chosen.
This code will cause an error in ACP:

Code: Select all

else if ($row[$i]['cat_id'] == FLV_CAT)
{
$s_assigned_group_flv[] = $row[$i]['group_name'];
}
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

I updated the mod so all fixes are now included.
Optimized flv regex, added new mediaplayer.swf
User avatar
JLA
Registered User
Posts: 589
Joined: Tue Nov 16, 2004 5:23 pm
Location: USA
Name: JLA FORUMS
Contact:

Re: [BETA] Flash Video (FLV) integration

Post by JLA »

Great mod - we had to make a few changes for it to function with our setup - but it works great.

Great job!

http://www.jlaforums.com
User avatar
JLA
Registered User
Posts: 589
Joined: Tue Nov 16, 2004 5:23 pm
Location: USA
Name: JLA FORUMS
Contact:

Re: [BETA] Flash Video (FLV) integration

Post by JLA »

One of the things we noticed that your mod doesn't work too well with SWF files (when making the appropriate changes in displaying.php and the attachments template file) In IE and Firefox the window will not resize and the pause/play does not work. It is ok for FLV but something with the player flash file you included does not go well in playing SWF files.

Just an FYI
Post Reply

Return to “[2.0.x] MODs in Development”