vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   AnyMedia BBCode for 3.5.x (https://vborg.vbsupport.ru/showthread.php?t=106239)

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?do...=turbo+mustang

Crist 03-17-2006 02:45 PM

Quote:

Originally Posted by hotwheels
I still get unsupported media type for these type's of video's: http://video.google.com/videoplay?do...=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

Quote:

Originally Posted by BeaLzeBuB
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

Quote:

Originally Posted by BeaLzeBuB
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:
Code:

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

Code:

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

Quote:

Originally Posted by maf1973
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
Quote:

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

indiancinema 03-19-2006 10:57 PM

Quote:

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

same problem here

can any one help please

BeaLzeBuB 03-21-2006 01:52 AM

@Crist

there is a problem here :)
i didn't upload "clientscript/anymedia.js" when i installed this hack. but it is ok. when you said edit "clientscript/anymedia.js", i looked ftp , it not there :)

so, i edited file and uploaded it.but nothing changed

Crist 03-21-2006 07:32 AM

Quote:

Originally Posted by BeaLzeBuB
@Crist

there is a problem here :)
i didn't upload "clientscript/anymedia.js" when i installed this hack. but it is ok. when you said edit "clientscript/anymedia.js", i looked ftp , it not there :)

so, i edited file and uploaded it.but nothing changed

You're a upgrade user?
So the old post need to be re-parsed.
You could edit them (just add a space and submit),
It will be re-parsed automaticlly.
And then,
It will use the new way to load medias.

indiancinema 03-21-2006 04:53 PM

theres no options in user group to turn it on
what should i do.i am using vb 3.5.4

i installed every thing as u said

nervous 03-21-2006 04:54 PM

this plugin work in vb3.5.4 ???
coz i have a problem...
https://vborg.vbsupport.ru/

chairman miaow 03-21-2006 07:31 PM

Quote:

Originally Posted by nervous
this plugin work in vb3.5.4 ???
coz i have a problem...
https://vborg.vbsupport.ru/

You need to put "www" in the link - I don't think it works without it

NR Fatal 03-21-2006 10:04 PM

I installed everything fine and I see the options in my Admin CP and I see the "wrap media tags around text" when I go to add a new post but when I try to add a video to it, it just shows the text. Not the video.

nervous 03-21-2006 10:05 PM

but link haven't "www"..when i write other links(have "www" or haven't "www") not work again.pls some info for this problem!

nervous 03-21-2006 10:06 PM

Quote:

Originally Posted by NR Fatal
I installed everything fine and I see the options in my Admin CP and I see the "wrap media tags around text" when I go to add a new post but when I try to add a video to it, it just shows the text. Not the video.

right...this is my problem...

Elmer 03-22-2006 02:30 AM

how do you add youtube and vsocial videos? I tryed puting them like this:
[media]http://youtube.com/watch?v=30BSjBOczQ8[/media] and the same thing for vsocial videos but they don't play. The player just displays in blak. It only works with google videos and I don't know what is wrong...

It's there any special way of adding youtube or vsocial videos?

smdani 03-22-2006 04:47 AM

Quote:

Originally Posted by Elmer
how do you add youtube and vsocial videos? I tryed puting them like this:
[media]http://youtube.com/watch?v=30BSjBOczQ8[/media] and the same thing for vsocial videos but they don't play. The player just displays in blak. It only works with google videos and I don't know what is wrong...

It's there any special way of adding youtube or vsocial videos?

same problem here

and one more:
the flvplayer.swf is not working for me.
I test it without vbulletin, in a simple html page to certify the problem, with something like this flvplayer.swf?file=video.flv (and the rest of the code) and with the flvplayer.swf my flv don?t play, only black screen is shown, and with other one flv player it shows fine.
Here the player that works http://tintachina.com/video/Player.zip

I?m using the latest version of the anymedia plugin

Thanks for the hack and for the updates

mawby 03-22-2006 07:15 AM

Hi, with regards to the google video, I too can not get this working. My google video is at http://video.google.com/videoplay?do...25124823019531, and having a look around the code made me use the following media tag as it didn't recognise the google url as a video...

PHP Code:

[media=400,326,true,ggv]http://video.google.com/videoplay?docid=-4329325124823019531[/media] 

This didn't work, but having thought about it it's not surprising really! On the google video page is a "Put on site" section which gives you the html code needed to embed the video in a web site. I took just the part within the src="" tag and put that into the player instead. It still didn't work due to the URL being encoded, so I then used http://www.us-webmasters.com/Decode-URLs/ to decode the URL and ended up with...

PHP Code:

[media=400,326,true,ggv]http://video.google.com/googleplayer.swf?videoUrl=http://vp.video.google.com/videodownload?version=0&secureurl=mwAAAG43hxnCm2hXrse2hjyuqYx3aARf7aOVUlQ51SMLUbU1Wyr7Ld2xvoqmw7_vjrfbnREph9FeB-mk8IqTz8TeR_MYu6BcsAaps-IQE-6MrVrWVuSpsB166j0f4AJOB9_x5DvATtWsXSCRBa625yt3nmz4YnYlgdlopfhVmcvHR7giUCav4-O0X-V2sJZOIfdwGoCGW7uUhWtwRRon61nzoMc&sigh=xsuFWW10GbWGHuXPtzoblb8R_08&begin=0&len=98397&docid=4965397551823343996&thumbnailUrl=http://video.google.com/ThumbnailServer?contentid=d4cc92d2f8162f40&second=5&itag=w320&urlcreated=1143017597&sigh=G3fkssZqUCxZJ6PpcH80FmzLfTQ&playerId=4965397551823343996[/media] 

Now this almost works. The video player is happy that it knows the type, but if you click the play button it pops up a message saying "Buffering" and goes no further.

I'm kind of just using trail and error here to get it working but hoped the above might point someone who knows what they are doing in the right direction of getting this working properly.

Would it be easier to add the google video embed tags to the anymedia.js script and display them that way? For reference, the google embed tag is as follows...

PHP Code:

<embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src=" " allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" wmode="window" salign="TL"  FlashVars="playerMode=embedded"> </embed

(Note that I have left the src="" parameter blank for ease of reading, but it would be the same as that between the [media] tags in the above example.

mawby 03-22-2006 07:16 AM

Quote:

Originally Posted by Elmer
The player just displays in blak. It only works with google videos and I don't know what is wrong...

I just spotted that. Do you have google videos working? If so how did you do it?

smdani 03-22-2006 02:04 PM

I do the same you say, copy the url in the scr from the code that google gives, and it works. (with no decoding)

Make sure that the “Number of Characters Before Wrapping Text” is set to ‘0’ in your adminCP in one of the vbulletin showthread options. If it’s set to another number it will break your google url that is very long and it’ll not play

Crist it would be great that the “Number of Characters Before Wrapping Text” not would to be disabled for google video to work, as it is a useful option to prevent posts going out of the screen

mawby 03-22-2006 08:09 PM

You were right, the “Number of Characters Before Wrapping Text” setting did cause the long google url to have spaces in it. I have set this to zero and the URLs are now preserved.

However, if I just enter the google URL I get an unsupported type error. If I force the type using the above [media=....] tag then when I press play it displays "Buffering" and the play button changes back to the play arrow straight away (normally pressing play turns the play button into a pause button). Pressing play again changes the play button into a pause button, it clears the "Buffering" text too but it still does not play. :(

I have copied the url direct from the google page and the video plays fine on the google web site. Is there anything else I can try?

IrPr 03-23-2006 10:07 AM

Thanks Crist! VERY USEFULL HACK

works fine on my board , but something seems to bug appears on my MP3 Player that im not sure

when i'm using MP3 Player that plays MP3 Files that contains & ( amp ) chr the url will change to &amp; and mp3 player doesnt work :( plz help !

smdani 03-23-2006 04:25 PM

Quote:

Originally Posted by mawby
You were right, the ?Number of Characters Before Wrapping Text? setting did cause the long google url to have spaces in it. I have set this to zero and the URLs are now preserved.

However, if I just enter the google URL I get an unsupported type error. If I force the type using the above [media=....] tag then when I press play it displays "Buffering" and the play button changes back to the play arrow straight away (normally pressing play turns the play button into a pause button). Pressing play again changes the play button into a pause button, it clears the "Buffering" text too but it still does not play. :(

I have copied the url direct from the google page and the video plays fine on the google web site. Is there anything else I can try?

Hi mawby, I?ve just test this media of you in my board and works fine
[MEDIA]http://video.google.com/videoplay?docid=-4329325124823019531[/MEDIA]
No problem for me, try to reupload all files and unistall and reinstall the plugin and put the media on a new post it would be play normally

Going back to a bug that I post some days before about youtube and connecting it with the last I post about flvplayer. Today I notice that now the youtube videos that before didn?t work, now are playing fine with the flvplayer that I upload instead of the original of the hack ?why it occurs? Don?t know ??

YLP1 03-23-2006 07:06 PM

Quote:

Originally Posted by Crist
Edit the Code in class_bbcode.php
Search:
PHP Code:

                    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

PHP Code:

                    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; 


I have vb version 3.5.4 and my class_bbcode.php doesn't have the above.

The closest I have is :
Code:


switch($attachment['extension'])
{
case 'gif':
case 'jpg':
case 'jpeg':
case 'jpe':
case 'png':
case 'bmp':
case 'tiff':

Am I looking at the wrong php file?

Thanks in advance.

chairman miaow 03-23-2006 07:47 PM

I think he changed it from that file edit , to being included in the xml file you import.....open the product xml file in a text editor and change it there

IrPr 03-23-2006 09:57 PM

Code Modification changed to plugin since 1.3.0 ver.
try to edit "Create AnyMedia BBCode" ( bbc-de_create hook location ) Plugin using AdminCP -> Plugin System -> Plugin Manager

Gidget 03-24-2006 02:34 AM

Hi Crist,

I had no problems installing your hack, but I can't seem to figure out how to get an x-mplayer2 file to work. At least, I think that's the type of file it is. :confused:

The video can be found here:
http://www.metacafe.com/watch/74285/hellgate_london

Could you kindly tell me how I can enable this video to play? :)

Thanks in advance!

-Gidget

IrPr 03-24-2006 09:06 AM

Now im sure that mp3player.swf are buggy with some urls which includes html special chrs
it doesnt play !

Gidget 03-24-2006 03:30 PM

IrPr,

Are you replying to my post or to a previous post? *puzzled*

Crist 03-25-2006 08:42 AM

Quote:

Originally Posted by indiancinema
theres no options in user group to turn it on
what should i do.i am using vb 3.5.4

i installed every thing as u said

Every group has the permission to use the tag.
Check that if you turn on the option in forum setting

Crist 03-25-2006 08:44 AM

Quote:

Originally Posted by nervous
this plugin work in vb3.5.4 ???
coz i have a problem...
http://img390.imageshack.us/img390/6063/adsz3ev.jpg

Of course it works fine in 3.5.4.

Maybe u disable it in your forum setting?
or maybe the viewer has no permission?
or you change the tag name?

Crist 03-25-2006 08:48 AM

Quote:

Originally Posted by YLP1
I have vb version 3.5.4 and my class_bbcode.php doesn't have the above.

The closest I have is :
Code:


switch($attachment['extension'])
{
case 'gif':
case 'jpg':
case 'jpeg':
case 'jpe':
case 'png':
case 'bmp':
case 'tiff':

Am I looking at the wrong php file?

Thanks in advance.

Sorry,
the new version make the code into the product xml
in next version I'll try to let you setting it at your admincp

Crist 03-25-2006 08:50 AM

I'm coding a newer version to fix the bugs above.
Just wait.
:)

nervous 03-25-2006 12:51 PM

hey Crist,
AnyMedia bbcode enable in my forum,
im adminstrator and i cant see anymedia.i see only tag,
i didn't change tag name,

maybe this is wrong...:
http://img227.imageshack.us/img227/2604/adsz9su1.jpg

dannyrulez 03-26-2006 01:38 PM

I fix the problem where you only see the tag.

Plugin System -> Plugin Manager -> Create AnyMedia BBCode

Replace this:
Code:

if ($this->registry->options['anymediaenable'] && ($this->registry->userinfo['permissions']['anymediapermissions'] & $this->registry->bf_ugp_anymediapermissions['canuse']) )
For this:
Code:

if ($this->registry->options['anymediaenable'] && ($this->registry->userinfo['permissions']['anymediapermissions'] & 1) )
(I thinks that this is because the plugin is not reading from bitfield_anymedia.xml for something like that)

dan35 03-26-2006 06:27 PM

Quote:

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

Same here.


All times are GMT. The time now is 12:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02616 seconds
  • Memory Usage 1,881KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (5)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete