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)

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

Quote:

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

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; 

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

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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


All times are GMT. The time now is 05:02 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.02397 seconds
  • Memory Usage 1,764KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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