vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - AME3 - Auto Media Embeding and Video Extender (https://vborg.vbsupport.ru/showthread.php?t=230707)

peril 02-20-2011 05:10 PM

Quote:

Originally Posted by Schoelle (Post 2162265)
Look at this:
https://vborg.vbsupport.ru/showpost....&postcount=713
Upload the files and reimport the \includes\xml\product-ame.xml

This has worked for me on vb4.1.1

yes. this works. thanks.

testbot 02-20-2011 06:45 PM

Editing core files is the incorrect way to do things. They did add the hook so the following will fix the issue.

1. AdminCP>Plugins & Producs>Plugin Manager>Add New
2.
Product: AME3
Hook: data_parse_bbcode_video (not data_preparse_bbcode_video_start)
Title: AME - Parse bbcode video
Execution Order: 1
Plugin Code:
Code:

global $vbulletin;
require_once(DIR . '/includes/ame_prep.php');
$providers = ame_data_preparse($pagetext);

3. Plugin is active 'Yes'
4. Save


If you have cache enabled you might have to clear that.

Videx 02-20-2011 08:10 PM

Quote:

Originally Posted by testbot (Post 2164682)
Editing core files is the incorrect way to do things. They did add the hook so the following will fix the issue.

OMG that's all we need. Yet another way to make it work. And I wonder with what version they added the hook? It's been a nightmare with the one 'fix' and now we'll have two of them floating around.

Can someone please contact the author and get him to mark the code as reusable so someone can just code this into the xml? Or can it be coded separately as an add-on or something?

testbot 02-20-2011 11:09 PM

It's not another way. It's the right way.

But I get your point and I agree with you.

fly 02-20-2011 11:33 PM

Quote:

Originally Posted by testbot (Post 2164682)
Editing core files is the incorrect way to do things. They did add the hook so the following will fix the issue.

1. AdminCP>Plugins & Producs>Plugin Manager>Add New
2.
Product: AME3
Hook: data_parse_bbcode_video (not data_preparse_bbcode_video_start)
Title: AME - Parse bbcode video
Execution Order: 1
Plugin Code:
Code:

global $vbulletin;
require_once(DIR . '/includes/ame_prep.php');
$providers = ame_data_preparse($pagetext);

3. Plugin is active 'Yes'
4. Save


If you have cache enabled you might have to clear that.

Well thats dead sexy

archet1337 02-21-2011 03:24 PM

This is a great mod, but there is one thing that I can't figure out..

Is is possible to have all the embedded Youtube videos play in HQ by default? Or at least have the option to choose quality from the embedded player?

Videx 02-21-2011 03:59 PM

Probably the closest you'll come is Full Screen Button in Youtube embedded Videos. After all, you can't actually embed an HD video. Certainly not a 1080p video anyway as that would fill most people's screens.

Then there's the fact that many (most?) videos don't even have an HD version.

ekool 02-21-2011 06:56 PM

Has anyone else noticed that this version (on VB4) doesn't seem to embed in a method that works on the iPhone or the iPad, but the previous version did (VB3) did?

testbot 02-21-2011 10:27 PM

Quote:

Originally Posted by Videx (Post 2165022)
Probably the closest you'll come is Full Screen Button in Youtube embedded Videos. After all, you can't actually embed an HD video. Certainly not a 1080p video anyway as that would fill most people's screens.

Then there's the fact that many (most?) videos don't even have an HD version.

This is incorrect.

Quote:

Originally Posted by archet1337 (Post 2165008)
This is a great mod, but there is one thing that I can't figure out..

Is is possible to have all the embedded Youtube videos play in HQ by default? Or at least have the option to choose quality from the embedded player?

AdminCP>AME CP>Display>Youtube

Change the embed to:
Code:

<object width="853" height="510"><param name="movie" value="http://www.youtube.com/v/{vb:raw code}?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{vb:raw code}?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="853" height="510"></embed></object>
For best results you would increase the size to 1280x750 but that would look stupid inside posts because it's too bad. You can mess with the width and height in the above to get it just right for your board.

archet1337 02-21-2011 10:44 PM

Quote:

Originally Posted by testbot (Post 2165175)
AdminCP>AME CP>Display>Youtube

Change the embed to:
Code:

<object width="853" height="510"><param name="movie" value="http://www.youtube.com/v/{vb:raw code}?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{vb:raw code}?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="853" height="510"></embed></object>
For best results you would increase the size to 1280x750 but that would look stupid inside posts because it's too bad. You can mess with the width and height in the above to get it just right for your board.

Thank you! That is exactly what I was looking for. 853 x 510 is perfect for my site.


All times are GMT. The time now is 07:20 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.03098 seconds
  • Memory Usage 1,752KB
  • 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_code_printable
  • (6)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