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)

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
  1. 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.
  2. Change the signature to
    PHP Code:

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

  3. Change all $this in function handle_bbcode_media() into $parser
  4. Change the Plugin on bbcode_fetch_tags to have
    PHP Code:

    '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

Quote:

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

Quote:

Originally Posted by Andreas
Suggestion to turn this into a Plugin
  1. 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.
  2. Change the signature to
    PHP Code:

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

  3. Change all $this in function handle_bbcode_media() into $parser
  4. Change the Plugin on bbcode_fetch_tags to have
    PHP Code:

    '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

Quote:

Originally Posted by Chris-777
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
HTML Code:

                <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

HTML Code:

                <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

HTML Code:

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

To

HTML Code:

<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

Quote:

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


All times are GMT. The time now is 09:15 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.01665 seconds
  • Memory Usage 1,765KB
  • 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
  • (4)bbcode_html_printable
  • (4)bbcode_php_printable
  • (4)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