PDA

View Full Version : AnyMedia BBCode for 3.5.x


Pages : [1] 2 3 4 5 6 7 8

Crist
01-23-2006, 10:00 PM
###############################
# Jun.7th, 2006 17:00 GMT+8 #
# AnyMedia BBCode 3.0.4 Release #
###############################

@ Overview
---------------------------------
Products to Import: 1
Template Modifications: 4
File to Upload: 7 (2 swf, 1 gif, 3 php, 1 js)

@ Description
---------------------------------
Use only ONE bbcode to post almost 60 kinds of file,
and flash videos from more than 10 sites.

@ Credits
---------------------------------
Author of the Hack -- Crist Chsu
Author of Flash Single MP3 Player -- Jeroenwijering.COM
Author of Flash Video Player -- Jeroenwijering.COM
Author of PHP BEncode Library -- Gerard Krijgsman
Special thanks to Andreas's great suggestion, which made the mod become a plugin.

@ Translations
---------------------------------
Simplified Chinese by Crist Chsu (https://vborg.vbsupport.ru/member.php?u=112668) (http://www.QuChao.com)
Traditional Chinese by Crist Chsu (https://vborg.vbsupport.ru/member.php?u=112668) (http://www.QuChao.com)
German by Oberguru (https://vborg.vbsupport.ru/member.php?u=53751) (http://www.webgurus.de)
Arabic by Coffee (https://vborg.vbsupport.ru/member.php?u=22637) (http://www.shinqit.net)
Hebrew by Dacho (https://vborg.vbsupport.ru/member.php?u=71140) (http://www.dacho.co.il)
Italian by Fulvio di Stefano (http://www.internetdiffusion.com)

@ Supported Extensions
---------------------------------
Adobe Flash:
swf, spl, flv

Quick Time:
mov, qt, mqv, mpeg, mpg, m1s, m1v, m1a, m75, m15, mp2, mpm, mpv, mpa, flc, fli, cel, rtsp, rts, 3gp, 3gpp, 3g2, 3gp2, sdv, amc, mp4, sdp

Real Media:
rm, rmvb, ra, rv, ram, smil

Windows Media:
mp3, wma, wav, ogg, ape, mid, midi, asf, asx, wm, wmv, wsx, wax, wvx, avi

Adobe PDF:
pdf, fdf, xfdf, xdp, xfd

Image File:
gif, jpg, jpeg, bmp, png, xpm

P2P File:
torrent, emule, foxy, pplive

@ Supported Flash Video Sites
---------------------------------
Google (http://video.google.com/)
Youtube (http://www.youtube.com/)
vSocial (http://www.vsocial.com/)
iFilm (http://www.ifilm.com/)
MetaCafe (http://www.metacafe.com/)
DailyMotion (http://www.dailymotion.com/video/)
CurrentTV (http://www.current.tv/studio/)
Vimeo (http://www.vimeo.com/)
Sharkle (http://www.sharkle.com/video/)
FreeVideoBlog (http://video.freevideoblog.com/)
MyVideoDe (http://www.myvideo.de/)

@ Features
---------------------------------
You're allowed to ...
1. Custom the tag name;
2. Custom the title of the player;
3. Decide which usergroup could see the download link;
4. Use Flash Single Mp3 Player to play the mp3 file;
5. Custom the width & height of the media;
6. Decide whether to make the media autostart by default;
7. Decide whether to collapse the player box by default;
8. Play the Google Videos via proxy;
9. Auto-detect the attachment type;
10. Use AnyMedia player to play attachments;
11. Custom the default value of loop;
12. Filter the AnyMedia BBCodes in Quote tags;
13. Choose which extension could be supported;
14. Choose whether to use AnyMedia Player or not for each supported video site;

@ How to Use
---------------------------------
Tag without options:
url_of_the_file

ex.
http://server/file.mp3
Shown as a mp3 player (Use the flash mp3 player by default).

Tag with options:
url_of_the_file
url_of_the_file
url_of_the_file
url_of_the_file

ex.
http://server/file.mp3
It will use the real player to play the file.mp3,
the object is 300px width, 380px height,
it will autostart and will repeat for twice.

http://server/file.flv
It will use the flash player to play the file.flv,
the object is 250px width, 150px height,
it'll NOT autostart but will repeat for 3 times.

http://server/file.swf
It will use the flash player to play the file.swf,
the object is 400px width, 480px height,
and it'll NOT autostart.

http://server/file.pdf
It will post the pdf object on the page,
the object is 421px width, 211px height.

Other Rules:
1.WIDTH and HEIGHT are both required if you want to add options;
2.Available values for the AUTOSTART option: 1, true & yes.
3.Separate the options with commas.

@ Change Logs
---------------------------------
[1.1.0]
Hide the "download link" will show a warning
[NEW] Usergroup Permission Restriction

[1.2.0]
[DEL] Codes Modifications (Thanks to Andreas's suggestion)
[CHG] Allow every group to use anymedia by default
[NEW] Cache the Templates

[1.3.0]
[CHG] Use Google Video Player to play the Google's.
[NEW] Allow to play the wsx, wav and the flv files from google, youtube, vsocial .
[NEW] Allow you to custom the tag name.
[NEW] Allow you to set the title for the player box.
[NEW] Allow you to collapse the player box by default.
Playing a WMV file with no pictures.

[2.0.0]
[CHG] Change the method of loading, Fix the "Bug" that long loading.
[NEW] "Fix" the 'Activating Active Content' (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp) issues in the new IE Update. (It means that, if you've installed the new IE update, there's no need to Click the media object before you want to play it :D )

[2.1.0]
Fix the bug that cannot autoplay a wmv (& etc.) file.
[BUG] Fix the bug that when custom the video size of google/youtube/vsocial will get a non-supportted error.
[NEW] Let you to choose whether to play a google video through a proxy. It's useful for Chinese users.

[B][2.2.0]
Fix the bug that cannot autoplay a wmv on Firefox.
[BUG] Fix the bug that auto play a google/youtube/vsocial video when disable it.

[B][2.3.0]
Fix a tiny bug with bt parsing.
[NEW] Support the attachments from your own forum, and you could switch it off.

[B][3.0.0]
[CHG] Rebuild the code of the whole AnyMedia.
[CHG] Use flvplayer to play Google Video again.
Fix the bug that error with parsing when allow_url_fopen's off.
[BUG] Fix a bug with url parsing.
[BUG] Fix the parsing error of youtube video.
[NEW] [B]eMule & foxy types added.
[NEW] loop option added.
[NEW] Use AnyMedia Player to play the attachment when upload one.
[NEW] 8 More flash video sites supported.
[NEW] Chinese versions added.

[3.0.1]
Fixed the bug that cannot autoplay a wmv (& etc.) file.
[BUG] Fixed the bug that always insert a tag named [media].
[CHG] Hide AnyMedia button in editor when disable it.
[CHG] Hide AnyMedia Player for unsupported attachment.
[NEW] Multi-Language Documents added. It will auto-detect the language when you open it.
[LAN] German version by Oberguru (https://vborg.vbsupport.ru/member.php?u=53751) (http://www.webgurus.de (http://www.webgurus.de/)) added.
[LAN] Arabic version by Coffee (https://vborg.vbsupport.ru/member.php?u=22637) (http://shinqit.net (http://shinqit.net/)) added.

[B][3.0.2]
Fixed the bug that cannot disable extensions in admincp .
[BUG] Fixed the bug with youtube playing session.
[CHG] Used a special player to play youtube video.
[NEW] Added an option to switch the youtube video playing method.
[NEW] You could use 'Ctrl + wheel' to resize the image now.
[NEW] New option added in admincp, you could choose whether to disable AnyMedia BBCode in Quote tags.

[B][3.0.3]
Fixed the bug with mp3's (flash player) autoplay issue.
[BUG] Fixed the bug with flv's autoplay issue.
[BUG] Fixed the bug with 3gp files' parsing error.
[BUG] Fixed the bug with iamges' resize issue.
[BUG] Fixed the bug with attachments' autoplay issue.
[NEW] Support the latest Google Movie Preview (http://video.google.com/movietrailers.html).
[LAN] Hebrew version by Dacho (https://vborg.vbsupport.ru/member.php?u=71140) (http://www.dacho.co.il (http://www.dacho.co.il/)) added.

[B][3.0.4]
Get Google Video back to work again.
[NEW] [B]PPLive (http://www.pplive.com) supported. You could watch the World Cup Live on your board with your members now. Which team will be the biggest winner this time? :banana: (It can only work with IE, sigh...:surprised: )
[NEW] New option group added in admincp, you could choose whether to use build-in player for each supported sites.


@ [B]Frequently Asked Questions
---------------------------------
Q: I got white screen when playing a google video.
A: AnyMedia fetch the correct video url, but there's sth wrong with the flvplayer.swf, try to refresh the page to solve it.

Q: When using mp3player.swf to play mp3, it's played fast/slowly.
A: Flash doesn't support vbr (variable bit rate) mp3 files.It only support a mp3 with a fixed bitrate of 64/96/128 kbps ,a sample frequency of 22.05kHz and joint stereo. To solve it, turn the option off in admincp to make it be played by WMP.

Q: I have to click play button twice to play a google video.
A: Emmm... Even using the google player, you also have to click twice. I don't know why, and I'm trying to fixed it. If you know, just tell me. :)

Q: The supported extensions checkbox are always unchecked even if I check them all.
A: The permission cache is not updated. Overwrite the 'includes/xml/bitfield_anymedia.xml' file, and log into your admincp to visit 'admincp/index.php?do=buildbitfields' to rebuild the permission cache.

Q: When I use build-in player to play Youtube, it will be loading all the time.
A: To use the build-in player to play Youtube videos, your server have to enable the 'allow_url_fopen' option, or enable the 'fsockopen / curl_init' functions. If failed, turn the 'Use AnyMedia Player for Youtube Video' option off in admincp.

Q: I cannot get the PPLive working with my Firefox or etc.
A: As far as I know, the pplive object can only work with IE. And if you know how to embed it on FireFox, just tell me. :)

@ [B]Todo
---------------------------------
1. Add a Playlist.
2. Integrate it with CMPS, Link & Download Sys, and etc.
3. read ID3 tag.

@ Notes
---------------------------------
1. We need other translations, if you made one, just PM (https://vborg.vbsupport.ru/private.php?do=newpm&u=112668) me.

If you like the hack, Please click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=106239) .

I DO NOT know whether I should update the hack.
I'm not a coder of vBulletin-Chinese Team now, as I left there weeks ago.
Sorry about this, and I'll tell you how the update's going if it's really on the way.

nitro
01-24-2006, 10:19 PM
Looks interesting :)
I try to stay away from file edits but this one may well be worth it when I get round to using it live.

Is there a way to restrict the media tag per forum id's ?

Mastar
01-24-2006, 10:21 PM
I have installed! You can only use caps wid the tags?

sinoeu
01-24-2006, 10:55 PM
A MUST to include in the official vbb version! Crist, you rock!!! :up:

Guest210212002
01-24-2006, 11:04 PM
Hm, installed, but not working - nothing at all shows up in the post. Files uploaded, changes made, product imported.

What am I missing?

I thought the template compressor might be hosing it, but it makes no difference.

If I view my source, there's no reference to it at all. :(

Barakat
01-24-2006, 11:12 PM
just Great Great > installed

ChurchMedia
01-24-2006, 11:47 PM
Installed but not working.

nhacso
01-25-2006, 12:09 AM
Crist, you can edit code make the end user (as me, you or someone) can easily choose the other tag name (not only the tag call is "media", so the end user can edit to diffence name they like).

For simple more, Can you make the option call example is "abc" include the name tag to run all media type (put in Vbulletin Options in AdminCP)?. After, the end user go to AdminCP/Vbulletin Options/abc will check & fill the fied name tag. Default name tag is "media" as the author is Crist written the code, the end user as me when install & using mod hack will change the tag is "media" to "music" for suitable of my forum. After, the "music" tag will become the main tag to run all media type instead of the "media" tag.

mightyb
01-25-2006, 12:10 AM
I have installed it but it does not work here either.

Guest210212002
01-25-2006, 12:51 AM
Mighty cool mod too, especially for my site, which is music related.

I hope this gets sorted out.

/me can't wait

plateau
01-25-2006, 03:57 AM
cool !

jlkimball11
01-25-2006, 05:34 AM
Installed but not working.
yeah ! Installed but not working in site for me. :ermm:

70age
01-25-2006, 05:53 AM
very good!!

Crist
01-25-2006, 07:58 AM
Is there a way to restrict the media tag per forum id's ?
It's in the ToDos.
It'll come true in next version.
:rolleyes:

Crist
01-25-2006, 08:10 AM
I have installed! You can only use caps wid the tags?

[media] or [MEDIA] are both right.
:nervous:

Crist
01-25-2006, 08:55 AM
Hm, installed, but not working - nothing at all shows up in the post. Files uploaded, changes made, product imported.

What am I missing?

I thought the template compressor might be hosing it, but it makes no difference.

If I view my source, there's no reference to it at all. :(



Installed but not working.



I have installed it but it does not work here either.



yeah ! Installed but not working in site for me.

Sorry for my lapsus...
I used the Chinese Product ID write the Code Mods of the English Version.

Now I've Updated the zip pack already,
One who failed to install the hack may download the new pack,
and Redo the Code Modifications. (Just redo this step,others are right.)

:surprised:

Snake
01-25-2006, 09:27 AM
You da man! :D

Thanks!

sensimilla
01-25-2006, 09:51 AM
outstanding hack! works like a charm, that download function is just perfect!

thanks Crist

EasyTarget
01-25-2006, 10:03 AM
does this let you choose which of the media types you allow on your board or does it allow all of them?

kadafi_alive
01-25-2006, 10:58 AM
Flash doesn't work in IE but it does on Firefox

imported_yesonline
01-25-2006, 10:59 AM
Excellent work, just the one I am looking for. :)

nitro
01-25-2006, 11:16 AM
Works great on my test install, I am wondering tho should there be a first post restricion at all as a page full of say swf's added with the media tag is going take quite some time to load. I just added 3 in firefox and as they are cached each time no real problem but then I opened the same page in IE which of course wasnt cached and it took some loading time to completely load the page.

I think it should be conditionaled to certain forum ids so it cannot be used where its not wanted and restriced to first post of the thread. Im sure this can be covered with an if /if around the template edit. :)

jlkimball11
01-25-2006, 11:28 AM
Sorry for my lapsus...
I used the Chinese Product ID write the Code Mods of the English Version.

Now I've Updated the zip pack already,
One who failed to install the hack may download the new pack,
and Redo the Code Modifications. (Just redo this step,others are right.)

:surprised:
OK! Done. Thanks you. Very cool :nervous:

yack
01-25-2006, 12:55 PM
A MUST to include in the official vbb version! Crist, you rock!!! :up:
A MUST to include in the official vbb version.

凉鞋,俺挺你,就是挺你,挺着你。

Guest210212002
01-25-2006, 02:15 PM
Thank you Crist, that worked perfectly. :D

Great hack!

Mastar
01-25-2006, 04:10 PM
I did the update but now when I make a post with the tags, the thread doesn't show.

Can you please come to the site and see for yourself and see what is wrong?

www.thebedrocktavern.com



}

/**
* Handles a match of the tag that will be displayed as an media object
*
* Author Crist Chsu @ VBZH
*
* @param string The URL to the media.
*
* @param string If tag has option, the width, height, and whether to autoplay.
*
* @return string Object code of the contain media.
*/
function handle_bbcode_media($text, $options='')
{
global $vbulletin, $vbphrase, $stylevar;
if(!$this -> is_wysiwyg())
{
$media['url'] = $media['link'] = htmlspecialchars_uni( strip_bbcode( strip_tags( $text ) ) );
$extensions = explode( ',' , trim( $this->registry->options['anymediasupport'] ) );
$extensions = iif( is_array( $extensions ) , $extensions , array() );
if ( !empty( $options ) )
{
$option_array=explode( ',' , $options );
if ( count( $option_array ) > 1 AND count( $option_array ) < 5 )
{
$media['width'] = iif( isset( $option_array[0] ) AND !empty( $option_array[0] ) AND ereg( '^[0-9]{1,3}$' , $option_array[0] ), $option_array[0] , $this->registry->options['anymediawidth'] );
$media['height'] = iif( isset( $option_array[1] ) AND !empty( $option_array[1] ) AND ereg( '^[0-9]{1,3}$' , $option_array[1] ), $option_array[1] , $this->registry->options['anymediaheight'] );
$media['autoplay'] = iif( isset( $option_array[2] ) AND !empty( $option_array[2] ) AND in_array( $option_array[2] , array( 'true' , 'yes' , '1' ) ) , 'true' , 'false' );
$media['extension'] = iif( isset( $option_array[3] ) AND !empty( $option_array[3] ) AND in_array( $option_array[3] , $extensions ) , $option_array[3] );
}
}
$media['width'] = iif( isset( $media['width'] ) AND !empty( $media['width'] ) , $media['width'] , $this->registry->options['anymediawidth'] );
$media['height'] = iif( isset( $media['height'] ) AND !empty( $media['height'] ) , $media['height'] , $this->registry->options['anymediaheight'] );
$media['autoplay'] = iif( isset( $media['autoplay'] ) AND !empty( $media['autoplay'] ) , $media['autoplay'] , iif($this->registry->options['anymediaautoplay'],'true','false') );
$media['extension'] = iif( isset( $media['extension'] ) AND !empty( $media['extension'] ) , $media['extension'] , strtolower( file_extension( $text ) ) );
if ( in_array( $media['extension'] , $extensions ) )
{
switch ( $media['extension'] )
{
// MP3
case 'mp3':
if ( $this->registry->options['anymediamp3player'] )
{
$media['url'] = $this->registry->options['bburl'].'/players/mp3player.swf?file=' . htmlentities( urlencode( $media['url'] ) ) . '&autoPlay=' . $media['autoplay'];
$media['autoplay'] = "true";
$media['height'] = 20;
$media['mime']='application/x-shockwave-flash';
$media['type']='adobe_flash';
}
else
{
$media['height']=45;
$media['mime']='application/x-mplayer2';
$media['type']='windows_media';
}
break;
// Adobe Flash
case 'flv':
$media['url'] = $this->registry->options['bburl'].'/players/flvplayer.swf?videoUrl=' . htmlentities( urlencode( $media['url'] ) ) . '&thumbnailUrl=' . urlencode( $this->registry->options['bburl'].'/clear.gif' ) . '&playerMode=embedded';
$media['autoplay'] = "true";
$media['height'] += 27;
case 'swf':
$media['mime']='application/x-shockwave-flash';
$media['type']='adobe_flash';
break;
case 'spl':
$media['mime']='application/futuresplash';
$media['type']='adobe_flash';
break;
// Quick Time
case 'mov':
case 'qt':
case 'mqv':
$media['mime']='video/quicktime';
$media['type']='quick_time';
break;
case 'mpeg':
case 'mpg':
case 'm1s':
case 'm1v':
case 'm1a':
case 'm75':
case 'm15':
case 'mp2':
case 'mpm':
case 'mpv':
case 'mpa':
$media['mime']='video/x-mpeg';
$media['type']='quick_time';
break;
case 'flc':
case 'fli':
case 'cel':
$media['mime']='video/flc';
$media['type']='quick_time';
break;
case 'rtsp':
case 'rts':
$media['mime']='application/x-rtsp';
$media['type']='quick_time';
break;
case '3gp':
case '3gpp':
$media['mime']='video/3gpp';
$media['type']='quick_time';
break;
case '3g2':
case '3gp2':
$media['mime']='video/3gpp2';
$media['type']='quick_time';
break;
case 'sdv':
$media['mime']='video/sd-video';
$media['type']='quick_time';
break;
case 'amc':
$media['mime']='application/x-mpeg';
$media['type']='quick_time';
break;
case 'mp4':
$media['mime']='video/mp4';
$media['type']='quick_time';
break;
case 'sdp':
$media['mime']='application/sdp';
$media['type']='quick_time';
break;
// Real Media
case 'rm':
case 'rmvb':
case 'ra':
case 'rv':
case 'ram':
case 'smil':
$media['mime']='audio/x-pn-realaudio-plugin';
$media['type']='real_media';
break;
// Windows Media
case 'wma':
case 'ogg':
case 'ape':
case 'mid':
case 'midi':
$media['height']=45;
case 'asf':
case 'asx':
case 'wm':
case 'wmv':
case 'wax':
case 'wvx':
case 'avi':
$media['mime']='application/x-mplayer2';
$media['type']='windows_media';
break;
// Adobe PDF
case 'pdf':
$media['mime']='application/pdf';
$media['type']='adobe_pdf';
break;
case 'fdf':
$media['mime']='application/vnd.fdf';
$media['type']='adobe_pdf';
break;
case 'xfdf':
$media['mime']='application/vnd.adobe.xfdf';
$media['type']='adobe_pdf';
break;
case 'xdp':
$media['mime']='application/vnd.adobe.xdp+xml';
$media['type']='adobe_pdf';
break;
case 'xfd':
$media['mime']='application/vnd.adobe.xfd+xml';
$media['type']='adobe_pdf';
break;
// Images
case 'gif':
case 'jpg':
case 'jpeg':
case 'bmp':
case 'png':
case 'xpm':
$media['type']='image';
break;
// Torrent
case 'torrent':
include_once("bencode.php");
$content = @file_get_contents( $media['url'] );
if ( $content )
{
$bencode = new BEncodeLib();
$torrent = $bencode->bdecode($content);
if ( is_array( $torrent ) )
{
$media['announce'] = $torrent['announce'];
$media['created_by'] = $torrent['created by'];
$media['creation_date'] = iif( $torrent['creation date'] , vbdate( $vbulletin->options['dateformat'], $torrent['creation date'], true ) . " <span class=\"time\">" . vbdate( $vbulletin->options['timeformat'], $torrent['creation date'], true )."</span>" );
$media['encoding'] = $torrent['encoding'];
$media['codepage'] = $torrent['codepage'];
$media['name'] = iif( $torrent['info']['name.utf-8'] , $torrent['info']['name.utf-8'] , $torrent['info']['name']);
$media['length'] = iif( $torrent['info']['length'] , $this -> format_size( $torrent['info']['length'] ) );
$media['piece_length'] = iif( $torrent['info']['piece length'] , $this -> format_size( $torrent['info']['piece length'] ) );
$media['publisher'] = iif( $torrent['info']['publisher.utf-8'] , $torrent['info']['publisher.utf-8'] , $torrent['info']['publisher']);
$media['publisher_url'] = iif( $torrent['info']['publisher-url.utf-8'] , $torrent['info']['publisher-url.utf-8'] , $torrent['info']['publisher-url']);
if ( is_array( $torrent['nodes'] ) )
{
foreach ( $torrent['nodes'] as $key => $value )
{
$media['nodes'] .= $torrent['nodes'][$key][0] . ":" . $torrent['nodes'][$key][1] . "<br />";
}
}
if ( is_array( $torrent['info']['files'] ) )
{
foreach ( $torrent['info']['files'] as $key => $value )
{
$media['files'] .= iif( $torrent['info']['files'][$key]['path'] , implode( '/' , $torrent['info']['files'][$key]['path.utf-8'] ) , implode( '/' , $torrent['info']['files'][$key]['path'] ) ) . " ( " . $this -> format_size( $torrent['info']['files'][$key]['length'] ) . " ) <br />";
}
}
$media['type']='torrent';
}
else
{
$media['type'] = 'torrent_error';
}
}
else
{
$media['type'] = 'torrent_error';
}
break;
default:
$media['type'] = 'unknown';
}
}
else
{
$media['type']="unknown";
}
$media['id']=rand();
$media['layout']=$media['width']+$stylevar['cellpadding']*2+$stylevar['cellspacing']*4;
eval('$text = "' . fetch_template('anymedia') . '";');
}
else
{
if ( !empty( $options ) )
{
$text = "[MEDIA=".$options."]" . $text . "" ;
}
else
{
$text = "" . $text . "" ;
}
}
return $text;
}

/**
* Formatted a size.
*
* Author Crist Chsu @ VBZH
*
* @param integer The size in byte.
*
* @return string The formatted size.
*/
function format_size($size)
{
if ( $size < 1024000 )
{
return vb_number_format( $size / 1024 ) . " KB";
}
elseif ( $size < 1048576000 )
{
return vb_number_format( $size / 1048576 ) . " MB";
}
elseif ( $size < 1073741824000 )
{
return vb_number_format( $size / 1073741824 ) . " GB";
}
else
{
return vb_number_format( $size / 1099511627776 ) . " TB";
}
}
/**
* Emulates the behavior of a pre tag in HTML. Tabs and multiple spaces
* are replaced with spaces mixed with non-breaking spaces. Usually combined
* with code tags. Note: this still allows the browser to wrap lines.
*
* @param string Text to convert. Should not have <br> tags!
*
* @param string Converted text
*/
function emulate_pre_tag($text)

Guest210212002
01-25-2006, 04:21 PM
I had to reimport the product to get it to work, in addition to the new code edit.

Also, depending on how you have it configured, the template compressor hack breaks this.

Mastar
01-25-2006, 05:00 PM
I had to reimport the product to get it to work, in addition to the new code edit.

Also, depending on how you have it configured, the template compressor hack breaks this.

I reimported the product also & I don't have the template compressor installed

whatelse counld be wrong?

imported_predatorkill
01-25-2006, 06:42 PM
In IE works perfectly but in Firefox it says "Install Missing Plugins"

When i click on that is says "Unknown plugin" :ermm: :ermm:

Great hack tho!It wont stream the video,it will just cache it all and play it,right?

nitro
01-25-2006, 07:50 PM
Im streaming avi in FF right now with it on my testbed accross my home network its running fine.

@imported_predatorkill What type of media file you put in ?

My question now is it seem there is no restriction. Someone could load the first page of a thread with 10 1.5 GB avi's and it will sit there loading each one eventually. You can even use the ftp:// protocol in the tags :o One avi will load quickly but how is a thread page going to handle multiple posts with media tages or even a single post with multiple media tags. :D

Crist
01-26-2006, 01:38 AM
does this let you choose which of the media types you allow on your board or does it allow all of them?

YES,
You could choose what you need in admincp...

Crist
01-26-2006, 01:47 AM
A MUST to include in the official vbb version.

凉鞋,俺挺你,就是挺你,挺着你。

Thanks for the icon you made for the hack...
LOL

Crist
01-26-2006, 02:14 AM
I did the update but now when I make a post with the tags, the thread doesn't show.

Can you please come to the site and see for yourself and see what is wrong?

www.thebedrocktavern.com



}

/**
* Handles a match of the tag that will be displayed as an media object
*
* Author Crist Chsu @ VBZH
*
* @param string The URL to the media.
*
* @param string If tag has option, the width, height, and whether to autoplay.
*
* @return string Object code of the contain media.
*/
function handle_bbcode_media($text, $options='')
{
global $vbulletin, $vbphrase, $stylevar;
if(!$this -> is_wysiwyg())
{
$media['url'] = $media['link'] = htmlspecialchars_uni( strip_bbcode( strip_tags( $text ) ) );
$extensions = explode( ',' , trim( $this->registry->options['anymediasupport'] ) );
$extensions = iif( is_array( $extensions ) , $extensions , array() );
if ( !empty( $options ) )
{
$option_array=explode( ',' , $options );
if ( count( $option_array ) > 1 AND count( $option_array ) < 5 )
{
$media['width'] = iif( isset( $option_array[0] ) AND !empty( $option_array[0] ) AND ereg( '^[0-9]{1,3}$' , $option_array[0] ), $option_array[0] , $this->registry->options['anymediawidth'] );
$media['height'] = iif( isset( $option_array[1] ) AND !empty( $option_array[1] ) AND ereg( '^[0-9]{1,3}$' , $option_array[1] ), $option_array[1] , $this->registry->options['anymediaheight'] );
$media['autoplay'] = iif( isset( $option_array[2] ) AND !empty( $option_array[2] ) AND in_array( $option_array[2] , array( 'true' , 'yes' , '1' ) ) , 'true' , 'false' );
$media['extension'] = iif( isset( $option_array[3] ) AND !empty( $option_array[3] ) AND in_array( $option_array[3] , $extensions ) , $option_array[3] );
}
}
$media['width'] = iif( isset( $media['width'] ) AND !empty( $media['width'] ) , $media['width'] , $this->registry->options['anymediawidth'] );
$media['height'] = iif( isset( $media['height'] ) AND !empty( $media['height'] ) , $media['height'] , $this->registry->options['anymediaheight'] );
$media['autoplay'] = iif( isset( $media['autoplay'] ) AND !empty( $media['autoplay'] ) , $media['autoplay'] , iif($this->registry->options['anymediaautoplay'],'true','false') );
$media['extension'] = iif( isset( $media['extension'] ) AND !empty( $media['extension'] ) , $media['extension'] , strtolower( file_extension( $text ) ) );
if ( in_array( $media['extension'] , $extensions ) )
{
switch ( $media['extension'] )
{
// MP3
case 'mp3':
if ( $this->registry->options['anymediamp3player'] )
{
$media['url'] = $this->registry->options['bburl'].'/players/mp3player.swf?file=' . htmlentities( urlencode( $media['url'] ) ) . '&autoPlay=' . $media['autoplay'];
$media['autoplay'] = "true";
$media['height'] = 20;
$media['mime']='application/x-shockwave-flash';
$media['type']='adobe_flash';
}
else
{
$media['height']=45;
$media['mime']='application/x-mplayer2';
$media['type']='windows_media';
}
break;
// Adobe Flash
case 'flv':
$media['url'] = $this->registry->options['bburl'].'/players/flvplayer.swf?videoUrl=' . htmlentities( urlencode( $media['url'] ) ) . '&thumbnailUrl=' . urlencode( $this->registry->options['bburl'].'/clear.gif' ) . '&playerMode=embedded';
$media['autoplay'] = "true";
$media['height'] += 27;
case 'swf':
$media['mime']='application/x-shockwave-flash';
$media['type']='adobe_flash';
break;
case 'spl':
$media['mime']='application/futuresplash';
$media['type']='adobe_flash';
break;
// Quick Time
case 'mov':
case 'qt':
case 'mqv':
$media['mime']='video/quicktime';
$media['type']='quick_time';
break;
case 'mpeg':
case 'mpg':
case 'm1s':
case 'm1v':
case 'm1a':
case 'm75':
case 'm15':
case 'mp2':
case 'mpm':
case 'mpv':
case 'mpa':
$media['mime']='video/x-mpeg';
$media['type']='quick_time';
break;
case 'flc':
case 'fli':
case 'cel':
$media['mime']='video/flc';
$media['type']='quick_time';
break;
case 'rtsp':
case 'rts':
$media['mime']='application/x-rtsp';
$media['type']='quick_time';
break;
case '3gp':
case '3gpp':
$media['mime']='video/3gpp';
$media['type']='quick_time';
break;
case '3g2':
case '3gp2':
$media['mime']='video/3gpp2';
$media['type']='quick_time';
break;
case 'sdv':
$media['mime']='video/sd-video';
$media['type']='quick_time';
break;
case 'amc':
$media['mime']='application/x-mpeg';
$media['type']='quick_time';
break;
case 'mp4':
$media['mime']='video/mp4';
$media['type']='quick_time';
break;
case 'sdp':
$media['mime']='application/sdp';
$media['type']='quick_time';
break;
// Real Media
case 'rm':
case 'rmvb':
case 'ra':
case 'rv':
case 'ram':
case 'smil':
$media['mime']='audio/x-pn-realaudio-plugin';
$media['type']='real_media';
break;
// Windows Media
case 'wma':
case 'ogg':
case 'ape':
case 'mid':
case 'midi':
$media['height']=45;
case 'asf':
case 'asx':
case 'wm':
case 'wmv':
case 'wax':
case 'wvx':
case 'avi':
$media['mime']='application/x-mplayer2';
$media['type']='windows_media';
break;
// Adobe PDF
case 'pdf':
$media['mime']='application/pdf';
$media['type']='adobe_pdf';
break;
case 'fdf':
$media['mime']='application/vnd.fdf';
$media['type']='adobe_pdf';
break;
case 'xfdf':
$media['mime']='application/vnd.adobe.xfdf';
$media['type']='adobe_pdf';
break;
case 'xdp':
$media['mime']='application/vnd.adobe.xdp+xml';
$media['type']='adobe_pdf';
break;
case 'xfd':
$media['mime']='application/vnd.adobe.xfd+xml';
$media['type']='adobe_pdf';
break;
// Images
case 'gif':
case 'jpg':
case 'jpeg':
case 'bmp':
case 'png':
case 'xpm':
$media['type']='image';
break;
// Torrent
case 'torrent':
include_once("bencode.php");
$content = @file_get_contents( $media['url'] );
if ( $content )
{
$bencode = new BEncodeLib();
$torrent = $bencode->bdecode($content);
if ( is_array( $torrent ) )
{
$media['announce'] = $torrent['announce'];
$media['created_by'] = $torrent['created by'];
$media['creation_date'] = iif( $torrent['creation date'] , vbdate( $vbulletin->options['dateformat'], $torrent['creation date'], true ) . " <span class=\"time\">" . vbdate( $vbulletin->options['timeformat'], $torrent['creation date'], true )."</span>" );
$media['encoding'] = $torrent['encoding'];
$media['codepage'] = $torrent['codepage'];
$media['name'] = iif( $torrent['info']['name.utf-8'] , $torrent['info']['name.utf-8'] , $torrent['info']['name']);
$media['length'] = iif( $torrent['info']['length'] , $this -> format_size( $torrent['info']['length'] ) );
$media['piece_length'] = iif( $torrent['info']['piece length'] , $this -> format_size( $torrent['info']['piece length'] ) );
$media['publisher'] = iif( $torrent['info']['publisher.utf-8'] , $torrent['info']['publisher.utf-8'] , $torrent['info']['publisher']);
$media['publisher_url'] = iif( $torrent['info']['publisher-url.utf-8'] , $torrent['info']['publisher-url.utf-8'] , $torrent['info']['publisher-url']);
if ( is_array( $torrent['nodes'] ) )
{
foreach ( $torrent['nodes'] as $key => $value )
{
$media['nodes'] .= $torrent['nodes'][$key][0] . ":" . $torrent['nodes'][$key][1] . "<br />";
}
}
if ( is_array( $torrent['info']['files'] ) )
{
foreach ( $torrent['info']['files'] as $key => $value )
{
$media['files'] .= iif( $torrent['info']['files'][$key]['path'] , implode( '/' , $torrent['info']['files'][$key]['path.utf-8'] ) , implode( '/' , $torrent['info']['files'][$key]['path'] ) ) . " ( " . $this -> format_size( $torrent['info']['files'][$key]['length'] ) . " ) <br />";
}
}
$media['type']='torrent';
}
else
{
$media['type'] = 'torrent_error';
}
}
else
{
$media['type'] = 'torrent_error';
}
break;
default:
$media['type'] = 'unknown';
}
}
else
{
$media['type']="unknown";
}
$media['id']=rand();
$media['layout']=$media['width']+$stylevar['cellpadding']*2+$stylevar['cellspacing']*4;
eval('$text = "' . fetch_template('anymedia') . '";');
}
else
{
if ( !empty( $options ) )
{
$text = "[MEDIA=".$options."]" . $text . "" ;
}
else
{
$text = "" . $text . "" ;
}
}
return $text;
}

/**
* Formatted a size.
*
* Author Crist Chsu @ VBZH
*
* @param integer The size in byte.
*
* @return string The formatted size.
*/
function format_size($size)
{
if ( $size < 1024000 )
{
return vb_number_format( $size / 1024 ) . " KB";
}
elseif ( $size < 1048576000 )
{
return vb_number_format( $size / 1048576 ) . " MB";
}
elseif ( $size < 1073741824000 )
{
return vb_number_format( $size / 1073741824 ) . " GB";
}
else
{
return vb_number_format( $size / 1099511627776 ) . " TB";
}
}
/**
* Emulates the behavior of a pre tag in HTML. Tabs and multiple spaces
* are replaced with spaces mixed with non-breaking spaces. Usually combined
* with code tags. Note: this still allows the browser to wrap lines.
*
* @param string Text to convert. Should not have <br> tags!
*
* @param string Converted text
*/
function emulate_pre_tag($text)

Maybe you could contact me with msn messenger or other IM.
My contacts are on the install guide page of the hack.

Crist
01-26-2006, 02:21 AM
Im streaming avi in FF right now with it on my testbed accross my home network its running fine.

@imported_predatorkill What type of media file you put in ?

My question now is it seem there is no restriction. Someone could load the first page of a thread with 10 1.5 GB avi's and it will sit there loading each one eventually. You can even use the ftp:// protocol in the tags :o One avi will load quickly but how is a thread page going to handle multiple posts with media tages or even a single post with multiple media tags. :D
In next version I'll do some restriction work on it.
:devious:

Crist
01-26-2006, 02:24 AM
In IE works perfectly but in Firefox it says "Install Missing Plugins"

When i click on that is says "Unknown plugin" :ermm: :ermm:

Great hack tho!It wont stream the video,it will just cache it all and play it,right?
I think you should install the plugin for the FF yourself.
the hack won't install it automatically.

4number8
01-26-2006, 02:43 AM
Thank you sir, what a great feature to have, running to click install :)

Guest210212002
01-26-2006, 03:10 AM
/me puts in the early nomination for hack of the month

Crist
01-26-2006, 05:36 AM
* Chris-777 puts in the early nomination for hack of the month
Yeah,that's what I wanna it to be.
LoL.. :nervous:

ericgtr
01-26-2006, 12:34 PM
This looks like a great mod! Is there an option to disallow it for guests?

Crist
01-26-2006, 01:09 PM
This looks like a great mod! Is there an option to disallow it for guests?
No.......
But i'm gonna restrict it with the usergroup permissions..

imported_predatorkill
01-26-2006, 04:47 PM
The problem is that the plugin x-mplayer2 (something like that) to play the .wmv files cannot be downloaded automatically from firefox...An when i try to make it manually there is no plugin for this...

PtP
01-26-2006, 09:22 PM
Not sure what the issue is but I recieve this error when I post or edit a post using the media bbcode.

Let me add that the bbcode does appear to work correctly though and the error does not show when the post is viewed at a later time.

Warning: in_array(): Wrong datatype for second argument in /includes/class_bbcode.php(1631) : eval()'d code on line 159

Silvio
01-27-2006, 10:58 AM
ty crist u really cool!!! *installed*

chairman miaow
01-27-2006, 12:35 PM
Not sure what the issue is but I recieve this error when I post or edit a post using the media bbcode.

Let me add that the bbcode does appear to work correctly though and the error does not show when the post is viewed at a later time.

Warning: in_array(): Wrong datatype for second argument in /includes/class_bbcode.php(1631) : eval()'d code on line 159


Got the same problem....

nitro
01-27-2006, 10:08 PM
The problem is that the plugin x-mplayer2 (something like that) to play the .wmv files cannot be downloaded automatically from firefox...An when i try to make it manually there is no plugin for this...

I converted a small avi to wmv and it was fine in FF 1.50 for me, well it was when I put the address in and not just the filename. :D But the quality was not to good. What ver FF you using, not that it should matter really between 1.0x and 1.5 xmplayer is not a plugin well not in windows anyway cant be sure on nix but I think its just how its named becasue FF is as much if not more for nix than win32 and xmplayer is a nix app like wmp. In windows it shud use the wmp embed I think

You can also get a mediaconnecter plugin for FF (win) which you can set to other apps ie vlcplayer etc for certain filetypes. You should not need it for embedded wmv's to work tho.

silurius
01-28-2006, 03:27 AM
Not sure what the issue is but I recieve this error when I post or edit a post using the media bbcode.

Let me add that the bbcode does appear to work correctly though and the error does not show when the post is viewed at a later time.

Warning: in_array(): Wrong datatype for second argument in /includes/class_bbcode.php(1631) : eval()'d code on line 159

I got this also, although the basic functionality does appear to be working well so far.

Second problem: I turned off Autoplay, but a WMV still autoplays.

o85au
01-28-2006, 10:21 AM
Not sure what the issue is but I recieve this error when I post or edit a post using the media bbcode.

Let me add that the bbcode does appear to work correctly though and the error does not show when the post is viewed at a later time.

Warning: in_array(): Wrong datatype for second argument in /includes/class_bbcode.php(1631) : eval()'d code on line 159



I also have had this problem, not sure where the error is?

Regardz :)

whitetigergrowl
01-30-2006, 03:32 AM
The error appears to be coming from when you turn off the option in the Admin CP 'AnyMedia BB Options' for 'Whether to show the download link'. Something needs to be fixed for that. When I turn it on everything seems fine.

Crist
01-30-2006, 11:48 AM
The error appears to be coming from when you turn off the option in the Admin CP 'AnyMedia BB Options' for 'Whether to show the download link'. Something needs to be fixed for that. When I turn it on everything seems fine.
Okay
I'm seeing into it.
:nervous:

Crist
01-30-2006, 03:40 PM
Oh yeah,
I fixed it.

One who gets the error like

Warning: in_array(): Wrong datatype for second argument in /includes/class_bbcode.php(1631) : eval()'d code on line 159
may import the XML file again to fix the bug,
I've updated the zip pack already.

I'll release a new version soon,
with some restrictions.

whitetigergrowl
01-30-2006, 10:43 PM
Thank you. Works like a charm now!

chairman miaow
01-31-2006, 08:37 AM
Wicked ! Works beautifully now....

Superb hack :up:

jmacieira
01-31-2006, 06:11 PM
Hi Crist

The one that I need do to do the update of the new version ?

Crist
01-31-2006, 06:16 PM
<u>1.1.0 Released</u>

@ Change Log
-----------------
[BUG] Hide the "download link" will show a warning
[NEW] Usergroup Permission Restriction

ChurchMedia
01-31-2006, 09:03 PM
Works great now. Thanks!

mlrst
01-31-2006, 10:27 PM
I installed everything correctly or so I think... however when I submit my thread, it just shows up as a link with the bbcode on each end. Almost as if absolutely nothing happens... looks like this.

http://domain.com/dir/file.wmv

and that's it, now errors or warnings, just text.

Thanks in advance, I can't wait to get this working...

ChurchMedia
01-31-2006, 10:29 PM
Check your usergroup permissions. The same thing happened to me. When I changed those it worked great.

silurius
01-31-2006, 11:31 PM
Check your usergroup permissions. The same thing happened to me. When I changed those it worked great.Could you explain this a different way? I also applied the update today and now get the following. I then saw your suggestion and updated one usergroup, but that did not affect anything and I wasn't sure what you meant above.

http://domain.com/dir/file.wmv

hotwheels
02-01-2006, 12:07 AM
damn, this is a kick ass program............I too think this should be hack of the month. clicks *install*

mlrst
02-01-2006, 12:40 AM
Check your usergroup permissions. The same thing happened to me. When I changed those it worked great.

What permissions would affect this? I posted as Admin if it helps... is there something added by the install that has to be included?

mikeB
02-01-2006, 12:43 AM
Second problem: I turned off Autoplay, but a WMV still autoplays.

anyone solve this prob? it only happens to me in FF?
I find in FF that autostart=0 instead of autoplay=false is what works

any help is appreciated

mlrst
02-01-2006, 12:55 AM
Ok I think I found the permission change, but now i get:

Error: Non supported media type.

I'm using IE and it's just a .wmv file... am I missing a player?

UPDATE: mp3's work...

michaelsilvia
02-01-2006, 07:06 AM
I had the same problem viewing the video. You will have to set the user groups permission. After I changed the permissions it worked great! I have been wanting this for a long time!

This is by far one of the best hacks! Very simple and a great addition to any forum. Thanks for the great hack Crist!

Mike

silurius
02-01-2006, 02:21 PM
I had the same problem viewing the video. You will have to set the user groups permission. After I changed the permissions it worked great!This is totally confusing me. I mean it's probably a given that most of us are logging in under an admin account, so what does it mean?

chairman miaow
02-01-2006, 02:49 PM
Log into your admin control panel

Click on "Usergroups"

Then "Usergroup Manager"

This will display the various user groups - click on each "edit usergroup" button (or click the "Go" button) , then scroll to the bottom - there should be a section titled "AnyMedia BBCode Permissions"

Set the control to yes or no , depending on which usergroups you want to use the BB Code.

Repeat for each usergroup that you want to be able to use this hack (I believe every usergroup is set to "No" by default)

silurius
02-02-2006, 12:18 AM
Log into your admin control panel

Click on "Usergroups"

Then "Usergroup Manager"

This will display the various user groups - click on each "edit usergroup" button (or click the "Go" button) , then scroll to the bottom - there should be a section titled "AnyMedia BBCode Permissions"

Set the control to yes or no , depending on which usergroups you want to use the BB Code.

Repeat for each usergroup that you want to be able to use this hack (I believe every usergroup is set to "No" by default)Well, this is the problem then. I do not see anything remotely resembling "AnyMedia BBCode Permissions". I suppose I might need to uninstall and reinstall the hack again?

ChurchMedia
02-02-2006, 02:34 AM
This is what my usergroup permissions screen looks like. At the very bottom. I did completetly re-hack when he changed it.

Crist
02-02-2006, 10:35 AM
anyone solve this prob? it only happens to me in FF?
I find in FF that autostart=0 instead of autoplay=false is what works

any help is appreciated

I'll refer to some docs and if it's really a problem,I'll fix it as soon.

Crist
02-02-2006, 10:39 AM
Ok I think I found the permission change, but now i get:

Error: Non supported media type.

I'm using IE and it's just a .wmv file... am I missing a player?

UPDATE: mp3's work...
Whether the url (file) is end with ".wmv" ???
If not (such as "http://host/file?asfawgsavagasf"),
You must use a option to play it,
just like
http://host/file?asfawgsavagasf

Crist
02-02-2006, 10:55 AM
Well, this is the problem then. I do not see anything remotely resembling "AnyMedia BBCode Permissions". I suppose I might need to uninstall and reinstall the hack again?
just upload the files again
and re-import the xml file.
then do change the usergroup permissions...

Crist
02-02-2006, 11:01 AM
Do change the permission for every usergroup after you install the hack plz!

silurius
02-02-2006, 03:05 PM
just upload the files again
and re-import the xml file.
then do change the usergroup permissions...Thanks, Crist. I tried that last night anyway and that was it.

LB1UE
02-03-2006, 08:30 AM
Ok I'm stupid and lazy. How do I install this.
I know there are some fancy install buttons here, but they only redirect me to the first post.

TIA

Crist
02-03-2006, 01:32 PM
Ok I'm stupid and lazy. How do I install this.
I know there are some fancy install buttons here, but they only redirect me to the first post.

TIA
The button use to sign it as an installed hack for you,
but will never really install the hack for you.
You should download the hack to install by yourself,
it'll only take you a few minutes.

LB1UE
02-03-2006, 05:34 PM
The problem is, I uploaded all the files, but I have no idea how to continue.

---

73 de LB1UE

PixelFx
02-03-2006, 05:55 PM
this looks pretty cool .. would this support adding a winamp audio stream to it?

LB1UE
02-03-2006, 05:57 PM
No idea, I don't even know how to install it

LB1UE
02-03-2006, 06:33 PM
No idea, I don't even know how to install it

I figured ... it was a product not a plugin :)

docvader
02-04-2006, 07:07 PM
Getting the "Nonsupported Media Type" error when I use mpegs or wmv.

Have to use this tag: [MEDIA=0,0,0,wmv] to make it work.

Why won't the mpegs or wmv files work with just a simple [media] tag, as this was designed to do??

My MIME type for mpegs is: Content-type: video/mpeg
My MIME type for wmv is: Content-type: video/x-ms-wmv

Videos work fine with Links and Downloads Hack. Not sure why the windows media player is not automatically popping up with this one. Can we just use WMP for all video and audio files to keep this simple???

Thanks!
rich

EDIT: Upon playing with this, I've discovered that avi and wmv files work fine with the [media] tag.
mpeg, and mpg files, basically do nothing but show a blank "Any Media" box, with no player.
Hope this helps. Not sure what I've done wrong here.

Crist
02-05-2006, 03:35 PM
Getting the "Nonsupported Media Type" error when I use mpegs or wmv.

Have to use this tag: [MEDIA=0,0,0,wmv] to make it work.

Why won't the mpegs or wmv files work with just a simple [media] tag, as this was designed to do??

mpegs is not a default supported extension.
You could use mpeg,
or u could edit the code to add this one.



My MIME type for mpegs is: Content-type: video/mpeg
My MIME type for wmv is: Content-type: video/x-ms-wmv

Videos work fine with Links and Downloads Hack. Not sure why the windows media player is not automatically popping up with this one. Can we just use WMP for all video and audio files to keep this simple???

we use QuickTime to play mpeg files by default.
If you want to use WMP for all videos (except for some certain types,such as rm and etc.), u could edit the code too.


Thanks!
rich

EDIT: Upon playing with this, I've discovered that avi and wmv files work fine with the [media] tag.
mpeg, and mpg files, basically do nothing but show a blank "Any Media" box, with no player.
Hope this helps. Not sure what I've done wrong here.
We use QuickTime to play mpeg files by default.

akanevsky
02-05-2006, 04:24 PM
Great, will install later.

docvader
02-05-2006, 04:31 PM
Understand.

Since I'm technologically impaired here, can you please tell me what code to alter to force the browsers to use WMP for all the video files (mpeg and mpg).

And what part of China are you in? I've traveled the country extensively.

Thanks!
rich

9tn.tip.
02-05-2006, 05:27 PM
very nice thanks!! installed!

tomraider
02-06-2006, 06:01 AM
work well , thanks

Crist
02-06-2006, 09:38 AM
Understand.

Since I'm technologically impaired here, can you please tell me what code to alter to force the browsers to use WMP for all the video files (mpeg and mpg).

And what part of China are you in? I've traveled the country extensively.

Thanks!
rich

Edit the Code in class_bbcode.php

Search:


case 'mpeg':
case 'mpg':
case 'm1s':
case 'm1v':
case 'm1a':
case 'm75':
case 'm15':
case 'mp2':
case 'mpm':
case 'mpv':
case 'mpa':
$media['mime']='video/x-mpeg';
$media['type']='quick_time';
break;


Replace with


case 'mpeg':
case 'mpg':
case 'm1s':
case 'm1v':
case 'm1a':
case 'm75':
case 'm15':
case 'mp2':
case 'mpm':
case 'mpv':
case 'mpa':
$media['mime']='video/x-mpeg';
$media['type']='windows_media';
break;


Done.


I Live in Wuhan,
do you know it?
:)

docvader
02-06-2006, 04:16 PM
OK, got it. Still doesn't work, but it's calling to windows media player in my source
case 'mpeg':
case 'mpg':
case 'm1s':
case 'm1v':
case 'm1a':
case 'm75':
case 'm15':
case 'mp2':
case 'mpm':
case 'mpv':
case 'mpa':
$media['mime']='video/mpeg';
$media['type']='windows_media';

Used mime type 'video/x-mpeg' also, to no avail. (I use 'video/mpeg', and other hacks work with this no problem)

Is there somewhere else (forum permissios) that I need to look at? I have overlooked something, somewhere, and I just know that it has to be something really simple... Usergroup permissions are set.

Never been to Wuhan. I train in gong fu in Henan, and have traveled western, northern, and a bit of eastern China quite a bit. Wonderful country. Just some absolutely incredible places to see and experience, especially Yunnan.

Thanks!
rich

sinoeu
02-06-2006, 04:28 PM
Never been to Wuhan. I train in gong fu in Henan, and have traveled western, northern, and a bit of eastern China quite a bit. Wonderful country. Just some absolutely incredible places to see and experience, especially Yunnan.
rich

With 8 million people and lots of universities and a French consulate, Wuhan is a big industrial city in the central China, like Chicago in US. ;)

As to gong fu, you have made the right choice: Henan :rolleyes:

docvader
02-06-2006, 04:53 PM
It's a Mozilla thing. I've done some investigating here, hope this helps:

When using Mozilla based Netscape Navigator

Pagesource when I use [MEDIA=0,0,0,wmv]: This works well, though it autoplays when it was told not to:

<!-- Windows Media -->
<object data="http://www.russbo.org/files/video/military/wmpruss.mpeg" type="application/x-mplayer2" width="640" height="480" class="player_mozilla">
<param name="autoplay" value="false" />
</object>

<!--[if IE]>
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="640" height="480">
<param name="autoplay" value="false" />
<param name="filename" value="http://www.russbo.org/files/video/military/wmpruss.mpeg" />
</object>
<![endif]-->

Pagesource when I use latest bbcode edited php file (to make it use WMP), your standard hack:This shows NO player and does not work:

<!-- Windows Media -->
<object data="http://www.russbo.org/files/video/military/wmpruss.mpeg" type="video/mpeg" width="640" height="480" class="player_mozilla">
<param name="autoplay" value="false" />
</object>

<!--[if IE]>
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="640" height="480">
<param name="autoplay" value="false" />
<param name="filename" value="http://www.russbo.org/files/video/military/wmpruss.mpeg" />
</object>
<![endif]-->





When using Internet Explorer, your hack works perfectly, as written.

This is the page source:

<!-- Windows Media -->
<object data="http://www.russbo.org/files/video/military/wmpruss.mpeg" type="video/mpeg" width="640" height="480" class="player_mozilla">
<param name="autoplay" value="false" />
</object>
<!--[if IE]>
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="640" height="480">
<param name="autoplay" value="false" />
<param name="filename" value="http://www.russbo.org/files/video/military/wmpruss.mpeg" />
</object>
<![endif]-->


It's a Mozilla thing. I don't know how to fix it, but, that's the problem.

Never been to Wuhan. Have a monk teacher/friend who teaches at their Wushu University there. I hear that it's an excellent sports university. My travels have taken me to Xinjiang, Yunnan, Tibet, Harbin, Xian, Huangshan/Guilin areas, among others. Definitelly have to return to Chengdu/Tibet/Yunnan part of your country. It is phenomenal!

Crist
02-06-2006, 05:04 PM
I think you may add me to your msn list or etc.
I'll tell you how to handle the prob.

My contact method is in the zip file,
on the install guide page.

PS. I'm so glad to know that you like our country. :)

Crist
02-06-2006, 05:09 PM
With 8 million people and lots of universities and a French consulate, Wuhan is a big industrial city in the central China, like Chicago in US. ;)

As to gong fu, you have made the right choice: Henan :rolleyes:
If I answered "Ichang" and how do you introduce it?
LOL

chrisciardi
02-06-2006, 08:32 PM
this looks like a super complete hack, however, i cannot seem to get it to even show up on my board. everything installed per instructions but no media player. the only other hacks i use are vbportal and templates hack

can anyone help me, as i really need video to take my forum live

thanks a million
chris

www.thinktalk.com/forum

Guest210212002
02-06-2006, 10:30 PM
Is it possible to have this not buffer the clip before loading the page? I'm noticing some long load times on pages that have good sized attachments.

docvader
02-06-2006, 11:13 PM
chriciardi, look at my posts immediately above. You might have better luck changing the bbcode.php edit to use windows media instead of quicktime.

It is a fantastic hack, but I'm having mozilla issues with it. Nothing that can't be fixed, I'm sure.

Andreas
02-07-2006, 01:24 AM
Suggestion to turn this into a Plugin


Put functions handle_bbcode_media() and format_size() into its own PHP file, place it in includes
Btw.: format_size() is redundant; vb_number_format() has a parameter to format the ouput as filesize.
Change the signature to

handle_bbcode_media(&$parser, $text, $options='')

Change all $this in function handle_bbcode_media() into $parser
Change the Plugin on bbcode_fetch_tags to have

'callback' => 'handle_external',
'external_callback' => 'handle_bbcode_media'

Also make sure you require the file with your functions here.


=> No more file edits.

sinoeu
02-07-2006, 09:45 AM
If I answered "Ichang" and how do you introduce it?
LOL

The city with the biggest dam of the world. OVER :rolleyes:

Crist
02-07-2006, 08:05 PM
Suggestion to turn this into a Plugin


Put functions handle_bbcode_media() and format_size() into its own PHP file, place it in includes
Btw.: format_size() is redundant; vb_number_format() has a parameter to format the ouput as filesize.
Change the signature to

handle_bbcode_media(&$parser, $text, $options='')

Change all $this in function handle_bbcode_media() into $parser
Change the Plugin on bbcode_fetch_tags to have

'callback' => 'handle_external',
'external_callback' => 'handle_bbcode_media'

Also make sure you require the file with your functions here.


=> No more file edits.

Thanks very much for your suggestion, buddy. :)
I'm working on it now,and will release a new version later.

zagman76
02-07-2006, 08:18 PM
I know it's on it's way - but the ability to restrict to particular forums would be terriffic!

Crist
02-07-2006, 08:25 PM
Is it possible to have this not buffer the clip before loading the page? I'm noticing some long load times on pages that have good sized attachments.

Yes, there's a way.

W3C recommend us to use type="MIME" to call a media object.
It works well on Mozilla, Firefox, Opera and etc.

However, there's bug when we use IE to view it: It will download the whole file then play it. So you must wait for long before you could see the rest of the page.(You can even find that it sometimes display a blank object, it's another bug I think.)

So, to IE,
I use the traditional way to display it: just use the clsid.

Therefore,
It could be display perfectly on IE and other explorers.

So, if u don't care the bug,
just do as this:

edit the anymedia template

take adobe flash as example:

replace these codes

<object data="$media[url]" type="$media[mime]" width="$media[width]" height="$media[height]" class="player_mozilla">
<param name="play" value="$media[autoplay]" />
<param name="wmode" value="opaque" />
<param name="quality" value="high" />
</object>
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="$media[width]" height="$media[height]">
<param name="movie" value="$media[url]" />
<param name="play" value="$media[autoplay]" />
<param name="wmode" value="opaque" />
<param name="quality" value="high" />
</object>
<![endif]-->


To


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="$media[width]" height="$media[height]">
<param name="movie" value="$media[url]" />
<param name="play" value="$media[autoplay]" />
<param name="wmode" value="opaque" />
<param name="quality" value="high" />
</object>


and replace these codes


<style type="text/css">
.player_mozilla{display:block;}
</style>
<!--[if IE]>
<style type="text/css">
.player_mozilla{display:none;}
</style>
<![endif]-->


To


<style type="text/css">
.player_mozilla{display:block;}
</style>

Crist
02-07-2006, 10:48 PM
[1.2.0]
[DEL] Codes Modifications (Thanks to Andreas's suggestion)
[CHG] Allow every group to use anymedia by default
[NEW] Templates Cache

[How to upgrade]
1.Re-import the XML file (Must).
2.Remove the codes we added to the class_bbcode.php.(Note:You could also skip the step, it'll work well too.)



Could anybody Move the thread to [vB3.5 Extensions] Forum?
It became an Extension just now. :)

sinoeu
02-07-2006, 11:38 PM
It became an Extension just now. :)

Bravo!

Just another noob requst: can you include a sript to delete those old media BBcode buttons(MP3, WMV, RM...) that are no longer useful? :nervous:

camp nou
02-08-2006, 03:28 PM
This is probably what I have been looking for.

But as a total noob I need som help to get it right.

I have followed the "How to install" guide as far as I can:

1.Extract and upload the files of the uploads folder;
Done!
2.Import the product-anymedia.xml in admincp;
Done!
3.Follow Templates Modifications, be careful and remember to save;
Done!
4.Follow Codes Modifications, be careful and remember to overwrite the old one;
Here is where I stop. What code is to be modified?
5.Log into the admincp and setup AnyMedia BBCode Options;
Can anybody tell me how to set up this?
6.Change the AnyMedia BBCode Permissions if it's necessary;
Ok. I'll do that later
7.Please read How to Use first;
Done. I think i will figure this one out.
8.All Done!

Thanks :nervous:

IrPr
02-08-2006, 04:38 PM
4.Follow Codes Modifications, be careful and remember to overwrite the old one;
5.Log into the admincp and setup AnyMedia BBCode Options;

4.Download New Version ( 1.2.0 ) ;) No Code Modifications Needed
5.vBOptions -> AnyMedia

All Done! ;)

Special Thanks to Andreas and Crist !

3dsoft
02-08-2006, 05:45 PM
swf media files work without a problem but when I try to play a wmv file nothing happens. The media player loads but the movie doesn't show. Is there something which I have to consider when playing wmv files?

thanks for your help

Edit:
Okay, it seems that this problem only occurs when using the Opera browser. That means no .wmv files in Opera!

Internet Explorer and Firefox works without any problems.

Mr.D
02-09-2006, 08:33 AM
swf media files work without a problem but when I try to play a wmv file nothing happens. The media player loads but the movie doesn't show. Is there something which I have to consider when playing wmv files?

thanks for your help

Edit:
Okay, it seems that this problem only occurs when using the Opera browser. That means no .wmv files in Opera!

Internet Explorer and Firefox works without any problems.

Yes this happens to me to wmv files dont work in Opera when will this be fixed? By the way great HACK :banana: :banana: :banana: :banana: :rambo:

Crist
02-09-2006, 11:07 AM
This is probably what I have been looking for.

But as a total noob I need som help to get it right.

I have followed the "How to install" guide as far as I can:

1.Extract and upload the files of the uploads folder;
Done!
2.Import the product-anymedia.xml in admincp;
Done!
3.Follow Templates Modifications, be careful and remember to save;
Done!
4.Follow Codes Modifications, be careful and remember to overwrite the old one;
Here is where I stop. What code is to be modified?
5.Log into the admincp and setup AnyMedia BBCode Options;
Can anybody tell me how to set up this?
6.Change the AnyMedia BBCode Permissions if it's necessary;
Ok. I'll do that later
7.Please read How to Use first;
Done. I think i will figure this one out.
8.All Done!

Thanks :nervous:

Sorry, Step 4 is useless now.
I update the install guide just now.

docvader
02-09-2006, 03:11 PM
Crist

Latest version: I have the same issue with the mpegs not playing (it wants QuickTime, instead of Windows Media Player). Now, I hate Microsoft as much as anyone else, and I am an Apple afficionado, but, let's face it, WMP has beaten QT when it comes to widespread availability.

Can you make a product that forces videos, other than the usual Mac file formats, to use WMP?

Thanks! Hope all is well over there in Wuhan. I'll be there this summer.

rich

chairman miaow
02-09-2006, 03:16 PM
I'll second that ! I've done the code change from the earlier post , but it still tries to play mpegs and wmv using quick time :ermm:

Crist
02-09-2006, 05:05 PM
Crist

Latest version: I have the same issue with the mpegs not playing (it wants QuickTime, instead of Windows Media Player). Now, I hate Microsoft as much as anyone else, and I am an Apple afficionado, but, let's face it, WMP has beaten QT when it comes to widespread availability.

Can you make a product that forces videos, other than the usual Mac file formats, to use WMP?

Thanks! Hope all is well over there in Wuhan. I'll be there this summer.

rich

Just the same way.

You could edit the product xml file.

Find

case 'mpeg':
case 'mpg':
case 'm1s':
case 'm1v':
case 'm1a':
case 'm75':
case 'm15':
case 'mp2':
case 'mpm':
case 'mpv':
case 'mpa':
$media['mime']='video/x-mpeg';
$media['type']='quick_time';



Replace with


case 'mpeg':
case 'mpg':
case 'm1s':
case 'm1v':
case 'm1a':
case 'm75':
case 'm15':
case 'mp2':
case 'mpm':
case 'mpv':
case 'mpa':
$media['mime']='video/x-mpeg';
$media['type']='windows_media';

docvader
02-09-2006, 11:19 PM
Thought so. But still doesn't work in Netscape. Page source as follows:
<!-- Windows Media -->
<object data="http://www.russbo.org/files/video/apache.mpeg" type="video/x-mpeg" width="640" height="480" class="player_mozilla">
<param name="autoplay" value="false" />
</object>

<!--[if IE]>
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="640" height="480">
<param name="autoplay" value="false" />
<param name="filename" value="http://www.russbo.org/files/video/apache.mpeg" />
</object>
<![endif]-->
Not getting a player.

And for some reason, when I type in a URL in IE advanced reply box, it automatically puts [url] tags on it, which annoys the player....

Tulsa
02-10-2006, 12:54 AM
My question is on the autostart feature. I tossed up a wmv file to test with and that showed just fine but it seems to always autostart regardless of how I have the setting in the ACP.

Thoughts?

lonelime
02-10-2006, 06:35 AM
same question above....

I dont want it autostart, how do i disable the autostart???

if possible, can this one setup like whole album song, instead of single, I can setup like 10 songs together, then i just click next song, and next song, thisone I have to setup single song on every page......

but anyway... this is really kool one i ever seen

thanks

icare
02-11-2006, 03:50 AM
this is what i get in my post
http://funcop.net/Army.swf

it doesnt show any media. Please advise what I am doing wrong?

Tulsa
02-11-2006, 09:17 AM
If this is a link on your sites server, try using just /army.swf

Crist
02-11-2006, 11:44 AM
this is what i get in my post
http://funcop.net/Army.swf

it doesnt show any media. Please advise what I am doing wrong?

Have you change the permissions ?

heeeh
02-11-2006, 01:16 PM
太棒了!
tai bang le!

icare
02-11-2006, 04:36 PM
Have you change the permissions ?


Which permissions do I need to change?
I dont think I have changed any permissions.
Please advise which permissions do I need to change and how?

lonelime
02-12-2006, 05:39 AM
Which permissions do I need to change?
I dont think I have changed any permissions.
Please advise which permissions do I need to change and how?


go to usergroups manager.... then you will see what Chris was taking about.....

btw..... this version is great

thanks again

docvader
02-12-2006, 07:16 AM
Anyone figure out why Netscape Navigator is not pulling up WMP for mpegs? Editing the product.xml file doesn't pull up the player (though it does, flawlessly, in IE). Is there some simple setting that I'm missing somewhere?

packetattack
02-12-2006, 08:06 AM
Installed under 3.5.3. Works great. Thanks!

icare
02-12-2006, 06:26 PM
go to usergroups manager.... then you will see what Chris was taking about.....

btw..... this version is great

thanks again

Kindly please explain me... I think I had already set permissions... a register user can view the thread content... I even tested login with admin user and still cant view that video.. please advise whats wrong wit it

ice chrono
02-13-2006, 02:09 PM
any idea on how to link from google video?

xss illz
02-13-2006, 09:59 PM
Great Mod Installed!!!!

S@NL - BlackBik
02-13-2006, 10:20 PM
After some testing I reach the following conclusions:
It's working fine in Internet Explorer and Netscape
In Firefox the "autostart off" option doesn't work
In Opera most media won't play at all.

Can this hack be made more compatable with all these browsers?

smdani
02-14-2006, 04:59 AM
After some testing I reach the following conclusions:
It's working fine in Internet Explorer and Netscape
In Firefox the "autostart off" option doesn't work
In Opera most media won't play at all.

Can this hack be made more compatable with all these browsers?

I have the same use and I think that it?s not about the plugin but the navigator and the software that it takes to play the media which is different for each one


I leave another suggestion.
It would be great for me and my users to have the possibility to post online videos like YouTube and Google Video. In fact, I have done a bbcode for doing this and was so easy, as it?s only a piece of code and I think, that it would be implemented in your plugin easily. They booth have their own players and leave their code for putting it in your website, in fact you?re using the one from google video for the flv extension

Anyway thanks very much for that great plugin

MarsNIIT
02-14-2006, 07:42 AM
Seem Whether to show the download link. not working.

I click property of this media still have link :(, not hide link

Silvio
02-14-2006, 01:00 PM
Hi Crist,
Excuse my bad english, I hope is understandable
Little problem,
I upgraded your hack from 1.1 perfectly working on VB3.5.3 to anymedia1.2

1) unload old product-anymedia.xml (1.1)
2) removed modifcations on includes/class_bbcode.php File
3) uploaded and overwritten old files on my site from your new 1.2 Upload directory
4) reloaded new product-anymedia.xml (1.2)
5) set up all permissions on usergroup.

The medias posted with 1.1 are all working and visible, as are the one posted with new 1.2; But if I try to preview a post with a new media, then an issue is there.

here what happen (example)

1) I create a post
2) I insert the url where my media is, and in this example I insert : http://www.myurl.xyz/mypath/forum/flashpath/flashfile.swf
3) I highlight it and then press on M picture of allmedia hack and it correctly write on the writing pane http://www.myurl.xyz/mypath/forum/flashpath/flashfile.swf
4) press preview

It will show up 2 errors --> Error: Non supported media type.

If I look what happend to the code on my editing pane after preview, I can see that it was translated in an unspected way, and in the specific case will be :

http://www.myurl/mypath/forum/flashpath/flashfile.swf[/url][url="http://www.myurl/mypath/forum/flashpath/flashfile.swf"] (http://www.myurl/mypath/forum/flashpath/flashfile.swf)

What I did wrong???


4B) If not preview is pressed but POST, then all seems to work great!

ciao and take care & ty for great hack!!

Edit : How is possible to :
Enable Users to see medias posted by authorized Users?
I do explain better: If I do not authorize a group, then that group wont see that media.
But if I want to let them see it and Just dont' post a media? how that could be possible?
again ciao & have fun

Dez_U
02-14-2006, 03:04 PM
I am puting this in a post after instal, is this correct or should I be adding something else?

http://www.theurbans.co.uk/wmp/Ram2big.wmv

thanks

Crist
02-16-2006, 05:40 PM
any idea on how to link from google video?

I have the same use and I think that it?s not about the plugin but the navigator and the software that it takes to play the media which is different for each one


I leave another suggestion.
It would be great for me and my users to have the possibility to post online videos like YouTube and Google Video. In fact, I have done a bbcode for doing this and was so easy, as it?s only a piece of code and I think, that it would be implemented in your plugin easily. They booth have their own players and leave their code for putting it in your website, in fact you?re using the one from google video for the flv extension

Anyway thanks very much for that great plugin

I May let it support YouTube & Google Video in the next version.
:)

Crist
02-16-2006, 05:50 PM
After some testing I reach the following conclusions:
It's working fine in Internet Explorer and Netscape
In Firefox the "autostart off" option doesn't work
In Opera most media won't play at all.

Can this hack be made more compatable with all these browsers?

It's hard to let it be compatable for all the browsers,
but I try my best to make it with most of them.

:(

Crist
02-16-2006, 05:52 PM
Seem Whether to show the download link. not working.

I click property of this media still have link :(, not hide link

It will show the download link when the media is non-supported,
as well as the bit torrent file.

DannyMilner
02-16-2006, 05:53 PM
Nice work!

Is it safe to allow users to post swf? I have heard many times that it isn’t safe.

Anyway great extension!

Crist
02-16-2006, 06:07 PM
Hi Crist,
Excuse my bad english, I hope is understandable
Little problem,
I upgraded your hack from 1.1 perfectly working on VB3.5.3 to anymedia1.2

1) unload old product-anymedia.xml (1.1)
2) removed modifcations on includes/class_bbcode.php File
3) uploaded and overwritten old files on my site from your new 1.2 Upload directory
4) reloaded new product-anymedia.xml (1.2)
5) set up all permissions on usergroup.

The medias posted with 1.1 are all working and visible, as are the one posted with new 1.2; But if I try to preview a post with a new media, then an issue is there.

Don't worry.
You upgraded it perfectly,




here what happen (example)

1) I create a post
2) I insert the url where my media is, and in this example I insert : http://www.myurl.xyz/mypath/forum/flashpath/flashfile.swf
3) I highlight it and then press on M picture of allmedia hack and it correctly write on the writing pane http://www.myurl.xyz/mypath/forum/flashpath/flashfile.swf
4) press preview

It will show up 2 errors --> Error: Non supported media type.

If I look what happend to the code on my editing pane after preview, I can see that it was translated in an unspected way, and in the specific case will be :

http://www.myurl/mypath/forum/flashpath/flashfile.swf[/url][url="http://www.myurl/mypath/forum/flashpath/flashfile.swf"] (http://www.myurl/mypath/forum/flashpath/flashfile.swf)

What I did wrong???
4B) If not preview is pressed but POST, then all seems to work great!


You added other bbcodes between the [Media] Code.
So it didn't work.

Don't insert other bbcodes (or html tags) to the [Media] code.
JUST THE URL.




ciao and take care & ty for great hack!!

Ciao = Goodbye?
the only Italian word that I know.

:nervous:


Edit : How is possible to :
Enable Users to see medias posted by authorized Users?
I do explain better: If I do not authorize a group, then that group wont see that media.
But if I want to let them see it and Just dont' post a media? how that could be possible?
again ciao & have fun
You could do this in this version,
Maybe I will add it into the new version.
:)

Crist
02-16-2006, 06:15 PM
I am puting this in a post after instal, is this correct or should I be adding something else?

http://www.theurbans.co.uk/wmp/Ram2big.wmv

thanks
It's Ok,
but it will not autostart.
use "yes" or "1" instead of "autostart"

smdani
02-16-2006, 06:34 PM
I May let it support YouTube & Google Video in the next version.
:)
Thancks a lot Crist!! :up:

S@NL - BlackBik
02-16-2006, 06:44 PM
It's hard to let it be compatable for all the browsers,
but I try my best to make it with most of them.

:(

Hey, you can't do more than your best :)
Thanks in advance for looking into it.

Dez_U
02-16-2006, 07:00 PM
It's Ok,
but it will not autostart.
use "yes" or "1" instead of "autostart"

thanks for that reply.

problem I get is it just shows as the link, nothing else.

any ideas?

Silvio
02-16-2006, 08:02 PM
You added other bbcodes between the [Media] Code.
So it didn't work.

Don't insert other bbcodes (or html tags) to the [Media] code.
JUST THE URL.


Nope sir i did not inserted any othr bbcodes. I inserted just 1 regular url to a flash file, then presse "preview" and it does all that. (pressing "post" wont do that).

2) I insert the url where my media is, and in this example I insert : http://www.myurl.xyz/mypath/forum/flashpath/flashfile.swf


To be able to show you here what it was doing, I had to post it on a php tag, so vbull wont parse it and show to you what the result was.(*)


Ciao = Goodbye?
the only Italian word that I know.


Ciao is a very common italian word used in different occasion during talks between ppl (normally with friends and confidents, always in 2nd person singular)
it means both
1) ciao when u meet a person or when u start a phone call and is something like Hi, hallo
2) ciao when u leave a person or b4 hunging a phone call and in that case means bye

ciao ;)


(*) that also is 4 me very strange because if then I post here that "strange" triple url, vbull will parse it on a regular one even on code tag.
To show you that, I discovered that the only way was using php tag to paste here that "strange" issue, een now if i edit that post on edit pane will show up the regular one but you see all that confused url...
...that is matrixxxx -->red pill :D


again ciao

Aerith_Freak
02-18-2006, 04:28 PM
Just a couple of suggestions.

1) Support for the Google Video .gvp extension and Google Player
2) Along with the restrictions, possibly make media entries show up as hyperlinks that when clicked on will open in a pop-up window where the media can be viewed - thus stopping people from raping page loading times with massively huge files etc or cluttering thread pages up with millions of files.

chairman miaow
02-18-2006, 09:29 PM
I like the sound of those suggestions too !

OrangeFlea
02-19-2006, 08:41 PM
Great hack.

1). Are there plans to support the .wav format? Many soundclips on the web are in this format, so I'd really to see it included.


2.) When posting media files, is there a way to have AnyMedia centered on the page by default?


3.) Is there a way to modify the code so that, instead of a default width/height, the tool would pick the ideal dimensions for the media file in question?

For example, when you embed different media with HTML, you cant use a default height and width because it won't look right from one format to the next (i.e. .wmv to .mov.). I discovered the best way to embed was to simply leave the height and width out and not specify, so the media would auto-size itself to the best fit.

Right now, I'm having trouble with the default setting when posting .mov files. Wmv. works great, but the default cuts off parts of some .mov files.

Crist
02-20-2006, 11:20 PM
thanks for that reply.

problem I get is it just shows as the link, nothing else.

any ideas?

Have you changed the permissions?

And is the url valid?

mr. visual
02-21-2006, 06:31 AM
This is a great hack! I just have one quick question - would it be possible to start with the media player collapsed so you have to click it to view the media?

camp nou
02-21-2006, 03:47 PM
Will an upgrade to vBulletin 3.5.4 do anything with this Extention?

docvader
02-21-2006, 04:12 PM
3.54 is out?

Anyone fix the netscape / mozilla issue yet? MPEGS aren't happy with this hack in those browsers.

camp nou
02-21-2006, 04:23 PM
3.54 is out?

Yes

http://www.vbulletin.com/forum/showthread.php?postid=1079030

hugh_
02-21-2006, 06:17 PM
The media icon's stopped working, looking at it now it points here (http://www.xblteams.com//images/editor/media.gif) but the file's no longer available at that address.

So Where can I get a copy and how do I change the link to my local server?

Thanks...

hugh

S@NL - BlackBik
02-21-2006, 06:48 PM
There is a double slash in that addres. Maybe that's the problem ;)
This could be resolved by editting the template I think.

hugh_
02-21-2006, 07:06 PM
Double slashes don't seem to bother web servers in my experience...

hugh

Guest210212002
02-22-2006, 01:05 PM
Will an upgrade to vBulletin 3.5.4 do anything with this Extention?

I had to reinstall it, but it works fine on 3.5.4 for me now.

bglynn
02-22-2006, 02:23 PM
How can I default the media window to be collapsed? How can I change the window titel from AnyMedia to somethign else, such as Click For Video? I added a translation for anymedia_player, but it didn't change. I also tried removing the phrase call in anymedia template, but it's still there.

Aeolian
02-25-2006, 01:37 AM
i need .wsx support for streaming..
this does not seem to work..

bashy
02-25-2006, 02:57 PM
Workin well, thanks for this m8 :)

Crist
02-26-2006, 08:38 AM
Just a couple of suggestions.

1) Support for the Google Video .gvp extension and Google Player
2) Along with the restrictions, possibly make media entries show up as hyperlinks that when clicked on will open in a pop-up window where the media can be viewed - thus stopping people from raping page loading times with massively huge files etc or cluttering thread pages up with millions of files.

1). is the gvp file played by the flv player?
if so,i'll add it into next version.

2). it's a good idea,
but I don't wanna add this into later version soonly.
:surprised:

Crist
02-26-2006, 09:05 AM
Great hack.

1). Are there plans to support the .wav format? Many soundclips on the web are in this format, so I'd really to see it included.


2.) When posting media files, is there a way to have AnyMedia centered on the page by default?


3.) Is there a way to modify the code so that, instead of a default width/height, the tool would pick the ideal dimensions for the media file in question?

For example, when you embed different media with HTML, you cant use a default height and width because it won't look right from one format to the next (i.e. .wmv to .mov.). I discovered the best way to embed was to simply leave the height and width out and not specify, so the media would auto-size itself to the best fit.

Right now, I'm having trouble with the default setting when posting .mov files. Wmv. works great, but the default cuts off parts of some .mov files.

1.yes, I will add it into the next version.
2.To do this, You could use CENTER tag.
3.Okay,I'll try to fix it

Crist
02-26-2006, 09:10 AM
This is a great hack! I just have one quick question - would it be possible to start with the media player collapsed so you have to click it to view the media?
I'll made a option for you to do this in the next version

chairman miaow
02-26-2006, 05:22 PM
Cool.....can't wait for the updated version :up:

Blackbeard
02-26-2006, 05:58 PM
just install on 3.5.4 and when i try to add a wvx file all i get is url.wvx

went into vboptions and went over anymedai options where else do i need to go to make this work

Crist
02-27-2006, 12:56 PM
[1.3.0]
[CHG] Use Google Video Player to play the Google's.
[NEW] Allow to play the wsx, wav and the flv files from google, youtube, vsocial .
[NEW] Allow you to custom the tag name.
[NEW] Allow you to set the title for the player box.
[NEW] Allow you to collapse the player box by default.

Google Video bans the IP from China, as I cannot test the google video perfectly, if you meet problems when playing a google video, just post it here.thx

[How to Upgrade from 1.2 to 1.3]
1.Upload the files in "uploads" dir.
2.And re-import the product xml file.
post your questions follow.

its_me_that_guy
02-27-2006, 01:07 PM
Thanks alot.

interceptor
02-27-2006, 04:57 PM
swf media files work without a problem but when I try to play a wmv file nothing happens. The media player loads but the movie doesn't show. Is there something which I have to consider when playing wmv files?

thanks for your help

Edit:
Okay, it seems that this problem only occurs when using the Opera browser. That means no .wmv files in Opera!

Internet Explorer and Firefox works without any problems.

Have problem with this in IE. I can hear sound, but picture dont show up.
I using latest version .

Silvio
02-27-2006, 06:06 PM
...same here but on .swf. I am using both IE6&Firfox1.5.01

Aeolian
02-27-2006, 09:40 PM
hello..
4 next update plz add the extension .wsx

thanks!!

Crist
02-28-2006, 03:54 AM
hello..
4 next update plz add the extension .wsx

thanks!!

Yes,
wsx added.

sensimilla
02-28-2006, 04:08 AM
like they say "if it aint broken dont fix it"
I did the upgrade and wmv dont play for me anymore.. :(

any ideas or should i revert to previous version ?

Reverted to version 1.0 works fine, could you fix it please ?

TIA

kpr
02-28-2006, 10:29 AM
Same problem pic doesnt show but sound does.

Watson
02-28-2006, 11:19 AM
thanks for this hack, works well

kpr
02-28-2006, 11:48 AM
like they say "if it aint broken dont fix it"
I did the upgrade and wmv dont play for me anymore.. :(

any ideas or should i revert to previous version ?

Reverted to version 1.0 works fine, could you fix it please ?

TIA
How do you revert back to that version to get it working again?

sensimilla
03-01-2006, 04:12 AM
Ive just uninstalled the new one, and lucky me i still had 1.00 on my hard drive.

chairman miaow
03-01-2006, 08:23 AM
like they say "if it aint broken dont fix it"
I did the upgrade and wmv dont play for me anymore.. :(

any ideas or should i revert to previous version ?

Reverted to version 1.0 works fine, could you fix it please ?

TIA

Looking at the pic you've attached , the viewer is "collapsed" - if you click the arrow on the right hand corner , it will show the full video player....or did you already do that ?

interceptor
03-01-2006, 08:50 AM
Looking at the pic you've attached , the viewer is "collapsed" - if you click the arrow on the right hand corner , it will show the full video player....or did you already do that ?

Like this?

TosaInu
03-01-2006, 09:02 AM
Looks very neat, another reason to speed the update to 3.5.4.

sensimilla
03-01-2006, 11:11 AM
Looking at the pic you've attached , the viewer is "collapsed" - if you click the arrow on the right hand corner , it will show the full video player....or did you already do that ?

yep i did >> like in interceptors post..

I did the upgrade to 3.5.4 today and reverted postbit template, g
I will try again...

chairman miaow
03-01-2006, 11:33 AM
Hmm....actually , I've just realised it's happening on my site too ! Seems to be when I play .wmv files ?

Crist
03-02-2006, 03:30 AM
I Fixed the bug that playing a WMV file without the pics

The one thing you must to do is download the zip and re-import the xml file to fix it.

interceptor
03-02-2006, 05:26 AM
Everything ok now, thanks.

kpr
03-02-2006, 09:39 AM
thanks for the fix.

Silvio
03-02-2006, 08:20 PM
Ty master. now working immages.

a little problem I noticed is that mp3 isnt autoplaying.


and again I have some problem Pressing on M picture. after using it it makes confusion in the link. if i manually type -media- than will work!

regards

vchase
03-03-2006, 07:34 AM
i installed, it works perfectly fine but the player loads too slow ... can you explain ?

Tralala
03-03-2006, 10:23 AM
Snap 2: Playing a MP3 file (maybe I should show the filename next version?)

Yes please.

Tralala
03-03-2006, 10:58 AM
Strange bug here. I want to use this for MP3 playback only.

So I removed all but "mp3" from supported extensions, and Set "MP3" as the Tag name for the BBcode.

It works fine on creation of MP3 Playback links.

http://www.testforum/forums/mp3s/test.mp3


However, when I go to EDIT a post like this, in Firefox or Camino, the tag re-appears as "media:"

http://www.testforum/forums/mp3s/test.mp3


This doesn't happen in Safari, however... when I go to edit a link like this it remembers/respects the mp3 tag.

Anu clues as to what is going on here?

dream0r
03-03-2006, 02:29 PM
Strange bug here. I want to use this for MP3 playback only.

So I removed all but "mp3" from supported extensions, and Set "MP3" as the Tag name for the BBcode.

It works fine on creation of MP3 Playback links.

http://www.testforum/forums/mp3s/test.mp3


However, when I go to EDIT a post like this, in Firefox or Camino, the tag re-appears as "media:"

http://www.testforum/forums/mp3s/test.mp3


This doesn't happen in Safari, however... when I go to edit a link like this it remembers/respects the mp3 tag.

Anu clues as to what is going on here?

Hi, hack works fine for almost everything, i just cant seem to work out the youtube, could anyone explain how to get a youtube video to work. thanks

obmob
03-04-2006, 03:08 AM
Sounds great, i'll try, thanks :)

monivn
03-04-2006, 10:47 AM
Can i disablde use media code in signature?

Stone Cold 3:16
03-04-2006, 04:13 PM
Can i disablde use media code in signature?

I put the media code with 'https://vborg.vbsupport.ru/images/smoothblue/top_logo.gif' in between it just to test, and it stays as:

https://vborg.vbsupport.ru/images/smoothblue/top_logo.gif

Whats wrong?

nix
03-04-2006, 04:31 PM
Has anyone gotten flv files to work? I cannot for some reason.

we_scooter
03-04-2006, 08:16 PM
what if some one trying to play dirty with flash files that contains stuff to log your hash cookies and stuff.. does it restrict certine command s in flash ?

cartooner
03-05-2006, 01:52 AM
dumb question...I'm ready to install this hack. Where do I upload the GOOGLEPLAYER.SWF, FLVPLAYER.SWF and MP3PLAYER.SWF files to on my Forum Directory???

RsX
03-05-2006, 02:24 AM
I may be an idiot for asking this but by import do you mean upload? o_O

2.Import the product-anymedia.xml in admincp;


I tried uploading it to the admincp but that obviously didnt work. Where is it possible to import an xml file in the admin cp?

kucssa
03-05-2006, 02:34 AM
A great and useful Extensions!!:)

tuanluu
03-05-2006, 08:49 AM
updated work greate

Annapurna
03-05-2006, 08:54 AM
Does it contain the possibilty to upload mediafiles with the normal attachment feature and then using dropdown-selection to set file automatically?

Andreas

steffen.prd
03-05-2006, 03:42 PM
Is it also possible to use dynamic links which also exist in the attachment system?
If you can arrange this the script would be really perfect.

Greatings
Steffen

cartooner
03-05-2006, 10:13 PM
Could someone help me ..Where dors the GOOGLEPLAYER.SWF, FLVPLAYER.SWF and MP3PLAYER.SWF files get UPLOADED to on my Forum Directory???
Does they get uploaded to the Forums root directory, or do I create a music dir...please help.

Crist
03-06-2006, 02:39 AM
Hi, hack works fine for almost everything, i just cant seem to work out the youtube, could anyone explain how to get a youtube video to work. thanks

put the link into the tag,
that's all.

just like "http://www.youtube.com/watch?v=XXXXXXXX"

Crist
03-06-2006, 02:51 AM
Can i disablde use media code in signature?

Sorry, could't disable it in this version

Crist
03-06-2006, 02:58 AM
I put the media code with 'https://vborg.vbsupport.ru/images/smoothblue/top_logo.gif' in between it just to test, and it stays as:

https://vborg.vbsupport.ru/images/smoothblue/top_logo.gif

Whats wrong?

Check the usergroup permissions
and make sure you put the "gif" ext into the "Supported extensions"...

Crist
03-06-2006, 03:09 AM
Has anyone gotten flv files to work? I cannot for some reason.

for what reason?
detail it.

Crist
03-06-2006, 03:13 AM
dumb question...I'm ready to install this hack. Where do I upload the GOOGLEPLAYER.SWF, FLVPLAYER.SWF and MP3PLAYER.SWF files to on my Forum Directory???
upload them into

forum_root/players/

Crist
03-06-2006, 03:15 AM
I may be an idiot for asking this but by import do you mean upload? o_O




I tried uploading it to the admincp but that obviously didnt work. Where is it possible to import an xml file in the admin cp?

login to the admincp
upload the xml as a product

Crist
03-06-2006, 03:18 AM
Is it also possible to use dynamic links which also exist in the attachment system?
If you can arrange this the script would be really perfect.

Greatings
Steffen

You may post it by your self like this:

mp3[/COLOR]]http://host/attachment.php?attachmentid=XXXX&d=XXXXXXXX

nix
03-06-2006, 06:01 AM
for what reason?
detail it.
All other extensions seem to work but when I try a flv file I get the player to show but no media will play.

Crist
03-06-2006, 08:00 AM
All other extensions seem to work but when I try a flv file I get the player to show but no media will play.
it's a google video?
or just a flv file?

nix
03-06-2006, 08:10 AM
just a flv

chairman miaow
03-06-2006, 09:53 AM
put the link into the tag,
that's all.

just like "http://www.youtube.com/watch?v=XXXXXXXX"

Same problem here - I put the link in the tag , but it just shows the player with a black screen....

hotwheels
03-06-2006, 12:40 PM
I Fixed the bug that playing a WMV file without the pics

The one thing you must to do is download the zip and re-import the xml file to fix it.
hey crist? could you send out an email letting other's know that you fixed that bug? I had been waiting for the update and just happen to run back through your thread and found you had repaired it...............thanks a bunch, hotwheels

vampireus
03-06-2006, 12:57 PM
I set in default for not autoplay, but some file types are still autoplay

http://host17.hrwebservices.net/~atrl/videos/ladiesnight.wmv (http://host17.hrwebservices.net/%7Eatrl/videos/ladiesnight.wmv)
http://www.voodooi.com/lovesongs/sarah_mclachlan0-gloomy_sunday(live).asf (http://www.voodooi.com/lovesongs/sarah_mclachlan0-gloomy_sunday%28live%29.asf)

File types using WMP, Real don't work in Opera 8.52, all the buttons are greyed out or the player don't show up

Can't get this link to load

http://youtube.com/watch?v=N5pSkJ4wX-M

hotwheels
03-06-2006, 01:06 PM
Quick question............I am still getting the error that this media isn't supported.........could you look at this and tell me what is wrong? http://video.google.com/videoplay?docid=4965397551823343996&q=turbo+mustang

I am not sure why it isn't working. This is what is in the anymedia in my control panel; Supported extensions flv, swf, swf, spl, mov, qt, mqv, mpeg, mpg, m1s, m1v, m1a, m75, m15, mp2, mpm, mpv, mpa, flc, fli, cel, rtsp, rts, 3gp, 3gpp, 3g2, 3gp2, sdv, amc, mp4, sdp, rm, rmvb, ra, rv, ram, smil, mp3, wma, wav, ogg, ape, mid, midi, asf, asx, wm, wmv, wax, wvx, avi, pdf, fdf, xfdf, xdp, xfd, gif, jpg, jpeg, png, bmp, xpm, torrent, google, youtube, vsocial

steffen.prd
03-06-2006, 05:11 PM
it's a google video?
or just a flv file?

thank you but i found the solution myself.

i integrated 2 new features:

With the first feature you can set if the player will be collapsed or not, without setting, the script will use your admin setting.

With the second feature you can set a pretitle.

Look at the screenshot to see a examples and pls excuse me for my bad english :)

ex:
url_of_media_file

EDIT 07.03.2006: new xml file, now it works.

Greetings from Germany
Steffen

beezo
03-06-2006, 08:28 PM
youtube's not working for me either

Desihunk
03-06-2006, 08:45 PM
Thanks :)

* Desihunk clicks install

KevNJ
03-06-2006, 08:53 PM
Okay I read through every post with no answer for my problem.

I installed this twice with no luck. I dont have the Permissions options in Vb Options to turn the bbcode on like this screen shot. Im running 3.5.1 if that matters.

https://vborg.vbsupport.ru/attachment.php?attachmentid=42010

smdani
03-07-2006, 07:11 AM
Same problem here - I put the link in the tag , but it just shows the player with a black screen....
Same problem too

steffen.prd
03-07-2006, 09:48 AM
Okay I read through every post with no answer for my problem.

I installed this twice with no luck. I dont have the Permissions options in Vb Options to turn the bbcode on like this screen shot. Im running 3.5.1 if that matters.

https://vborg.vbsupport.ru/attachment.php?attachmentid=42010

in my file was an error. i updated the file, now it works.

here is the file again:

I'm sorry.

hotwheels
03-07-2006, 09:46 PM
thanks for the file steffen.prd.................i still can't get the dang thing to work right.

KevNJ
03-07-2006, 11:58 PM
Im with hotwheels after the new xml file still not working. I tried overwriting and then uninstalled and reinstalled. Same outcome - not working. :\

cartooner
03-08-2006, 03:41 PM
upload them into

forum_root/players/

Ok..done. Then for the music files do I create a directory in forum_root for that to, or do members link to their own??

cartooner
03-08-2006, 04:42 PM
I upload a music file to FileCabin, and post it with Media tags like this

http://www.filecabin.com/audio/mp3/1141843113-Love.mp3/



And I get a non-supported file error message....even though mp3 is listed as one of supported files.

steffen.prd
03-08-2006, 07:16 PM
thanks for the file steffen.prd.................i still can't get the dang thing to work right.

did you set up the user rights again? works the basic script or nothing? you get an output?

hmm, in my testboard its working fine. at the weekend i have some time to control the file again if there are any mistakes or faults.

greetings

chairman miaow
03-08-2006, 08:29 PM
I upload a music file to FileCabin, and post it with Media tags like this

http://www.filecabin.com/audio/mp3/1141843113-Love.mp3/




And I get a non-supported file error message....even though mp3 is listed as one of supported files.

Maybe try without the last "/" in the link ?

http://www.filecabin.com/audio/mp3/1141843113-Love.mp3

Tralala
03-09-2006, 01:04 AM
Maybe try without the last "/" in the link ?

http://www.filecabin.com/audio/mp3/1141843113-Love.mp3




Maybe try a valid URL?

(I tried that link and got "404 Not Found.")

3dsoft
03-10-2006, 12:46 PM
in my file was an error. i updated the file, now it works.

here is the file again:

I'm sorry.

Your file doesn't work either.
I am just getting a black screen with vsocial and youtube.

steffen.prd
03-11-2006, 02:49 PM
i dont have changed anything at the playing modules, only 2 variables in a template and 2 more rows in the php script.

the problem with the black screen is caused in another code...

you others, can you explain me the problem more exactly, pls?

i tested the files in my boards and it works fine, like it should be. i cant find any mistakes.

Stone Cold 3:16
03-11-2006, 02:52 PM
I may be an idiot for asking this but by import do you mean upload? o_O




I tried uploading it to the admincp but that obviously didnt work. Where is it possible to import an xml file in the admin cp?


Admin CP --> Plugins and Products --> Manage Products --> New Product [at the bottom] --> Import

nestoras
03-11-2006, 07:17 PM
it works great man!thanks for that mod!

nroe
03-12-2006, 04:27 PM
A MUST to include in the official vbb version.

凉鞋,俺挺你,就是挺你,挺着你。

靠!这你都来灌水。。。我也来灌一篇

unitedpunjab
03-13-2006, 06:48 AM
Your file doesn't work either.
I am just getting a black screen with vsocial and youtube.

Same Problem :banana:

KevNJ
03-13-2006, 03:15 PM
Well atleast you guys are getting a black screen. I cant even get the options to show up in the permissions, to turn the feature on and off it shows in the vb obtions.. but not in the usergroup persmisisons. Weird.

Replicators
03-14-2006, 04:43 AM
Is there anyway to remove the bar at the top? Like the thing i scribbled out in the attached image. It looks horrible if someone has many of them in one post and it's really unneeded.

sinoeu
03-14-2006, 11:08 AM
Is there anyway to remove the bar at the top? Like the thing i scribbled out in the attached image. It looks horrible if someone has many of them in one post and it's really unneeded.

yes, actually it's unneeded. But i think if it can display some media info like type, name, length...that will be useful and cool!:cool:

steffen.prd
03-14-2006, 12:37 PM
Is there anyway to remove the bar at the top? Like the thing i scribbled out in the attached image. It looks horrible if someone has many of them in one post and it's really unneeded.
yes its possible, open the template anymedia and search the accordingly code and remove it, or replace it with you favourite code.

Replicators
03-14-2006, 12:50 PM
yes its possible, open the template anymedia and search the accordingly code and remove it, or replace it with you favourite code.

That doesn't work as i been monkeying with that template, and believe it or not, i removed all the ccode in that template, and believe it or not the mod worked still! I looked up and that template is for vbadvanced!

steffen.prd
03-14-2006, 01:29 PM
by me it works without problems. you have to change already existed postings that the changes are getting works.

i tested it in my testboard and so it will shall work.

b4stu
03-15-2006, 10:18 AM
I am getting this problem. only pages with this video files are giving me slow page laods in my forum. its hapenning only when members trying to access it using Internet Explorer. when you click on the thread takes couple of minutes to load. at the bottom (Status Bar) it shows done but page shows only the back ground. Firefox is ok. anyone else facing the same problem??

Any suggestion?

Crist
03-16-2006, 12:24 PM
I'll release a new version these days.(Maybe tomorrow GMT+8)
The long loading bug will be fixed in the version.
: )

chairman miaow
03-16-2006, 12:31 PM
Cool - thanks !

BeaLzeBuB
03-16-2006, 07:03 PM
installed thxx

b4stu
03-17-2006, 03:41 AM
can't wait for v2.0.

my pages with videos loads extremely slow!

it'll be a great hack!

Crist
03-17-2006, 06:18 AM
I upload a music file to FileCabin, and post it with Media tags like this

http://www.filecabin.com/audio/mp3/1141843113-Love.mp3/




And I get a non-supported file error message....even though mp3 is listed as one of supported files.

post it without a slash
like this

http://www.filecabin.com/audio/mp3/1141843113-Love.mp3

Crist
03-17-2006, 09:29 AM
###############################
# Mar.17, 2005 19:00 GMT+8 #
# AnyMedia BBCode 2.0.0 Release #
###############################


[2.0.0]
[CHG] Change the method of loading, Fix the "Bug" that long loading.
[NEW] "Fix" the 'Activating Active Content' issues in the new IE Update. (It means that, if you've installed the new IE update, there's no need to Click the media object before you want to play it )

[How to Upgrade]
1.Upload all the files in "uploads" dir. (the new "anymedia.js" is very important to upload)
2.Re-import the Product Xml file to upgrade.
Done.

requiemfohx
03-17-2006, 01:56 PM
Installed, works great. One problem w/WMV files. They autostart even when told not to.

hotwheels
03-17-2006, 02:14 PM
I still get unsupported media type for these type's of video's: http://video.google.com/videoplay?docid=4965397551823343996&q=turbo+mustang

Crist
03-17-2006, 02:45 PM
I still get unsupported media type for these type's of video's: http://video.google.com/videoplay?docid=4965397551823343996&q=turbo+mustang
is "google" in the supported ext field ?

nymyth
03-17-2006, 05:38 PM
im seeing this error when I try to enable a usergroup:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

then it goes back to the original setting, can anyone help???

Thanks.

Peace

nymyth
03-17-2006, 06:22 PM
no matter, I reupped the xml, seems to be working great now...love it...thanks.

Peace

BeaLzeBuB
03-18-2006, 01:03 PM
can we put "showstatusbar" in media player?

like
https://vborg.vbsupport.ru/

b4stu
03-18-2006, 02:33 PM
can we put "showstatusbar" in media player?

like
https://vborg.vbsupport.ru/


might add an extra value to this hack. just upgraded to new version. works just fine. great hack!!

maf1973
03-18-2006, 09:19 PM
Hello,

how can i change the title in the video,
as you can see on my picture all media files are titled as "Any Media Player".
It is possible to named this title as the video title to have different titles for each video?

Crist
03-19-2006, 10:01 AM
can we put "showstatusbar" in media player?

like
http://img110.imageshack.us/img110/3214/status0ok.jpg

You could edit it by yourself

Edit the "clientscript/anymedia.js"
find:

function anymedia_windowsmedia(id, src, mime, width, height, autoplay) {
if (is_ie) {
var result = '<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ';
result += 'width="' + width + '" height="' + height + '">';
result += '<param name="autoplay" value="' + autoplay + '" />';
result += '<param name="filename" value="' + src + '" />';
result += '</object>';
} else {
var result = '<object data="' + src + '" type="' + mime + '" ';
result += 'width="' + width + '" height="' + height + '">';
result += '<param name="autoplay" value="' + autoplay + '" />';
}
document.getElementById('anymedia_container_' + id).innerHTML = result;
}


Replace with


function anymedia_windowsmedia(id, src, mime, width, height, autoplay) {
if (is_ie) {
var result = '<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ';
result += 'width="' + width + '" height="' + height + '">';
result += '<param name="autoplay" value="' + autoplay + '" />';
result += '<param name="filename" value="' + src + '" />';
result += '<param name="ShowStatusBar" value="1" />';
result += '</object>';
} else {
var result = '<object data="' + src + '" type="' + mime + '" ';
result += 'width="' + width + '" height="' + height + '">';
result += '<param name="autoplay" value="' + autoplay + '" />';
result += '<param name="ShowStatusBar" value="1" />';
}
document.getElementById('anymedia_container_' + id).innerHTML = result;
}

Crist
03-19-2006, 10:04 AM
Hello,

how can i change the title in the video,
as you can see on my picture all media files are titled as "Any Media Player".
It is possible to named this title as the video title to have different titles for each video?

You could custom the title in the admincp
but can't be for each video.

hotwheels
03-19-2006, 02:41 PM
Thanks for the reply crist..........here is what is in my support ext. box flv, swf, swf, spl, mov, qt, mqv, mpeg, mpg, m1s, m1v, m1a, m75, m15, mp2, mpm, mpv, mpa, flc, fli, cel, rtsp, rts, 3gp, 3gpp, 3g2, 3gp2, sdv, amc, mp4, sdp, rm, rmvb, ra, rv, ram, smil, mp3, wma, wav, ogg, ape, mid, midi, asf, asx, wm, wmv, wax, wvx, avi, pdf, fdf, xfdf, xdp, xfd, gif, jpg, jpeg, png, bmp, xpm, torrent, google, youtube, vsocial