vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs (https://vborg.vbsupport.ru/showthread.php?t=202476)

HMBeaty 07-03-2009 07:16 PM

It doesn't affect installation, just checking to see if there's a newer version of the modification

TI3GIB 07-03-2009 07:26 PM

Quote:

Originally Posted by The Geek (Post 1841944)
Not sure if I follow. vB wraps all text it thinks are URLs with URL tags before AME gets to it (as long as the option to automatically parse links in text is checked). AME only checks URL tags and not the text itself so you have a couple options:

1- Untick the option to parse links in text
2- Untick the 'Automatically embed media' option when posting

Hope that helps!


Think of it this way. Posting something that has a youtube video in it's regular http://www.youtube.com/watch?v=ubfWnIid5J8 format, it would parse.

But I want to have YouTube links in a "Click Here" format without it detecting that it's a YouTube link and parsing it.

I tried to untick AME from parsing in the post options bit, but that turns off all parsing, including the one that I wanted parsed.

I also tried to [/AME] link [AME] so that AME would stop parsing anything after the bracket, and show the link as it normally would ( a regular link to youtube ) and start parsing again after it, but that did not work.


Thanks for the feedback btw. You guys are great. :up:

MonkYZ 07-03-2009 07:29 PM

Quote:

Originally Posted by The Geek (Post 1841940)
Depends on a couple things. I moved the position of one of AMEs hooks in 2.5.5 to hopefully accommodate what I think you're after.

If only using the default youtube definition and you only want youtube videos with hd=1 in the URL to be a larger size, then just create a new plugin:

Hook Location: automediaembed_parse_bbcode_match_start
Title: Youtube HD Bigga Please
Code:
PHP Code:

if ($ameinfo['key'] == "youtube" && $ameinfo['zone'] == "post")
{
    if (
strpos($ameinfo['url'], "hd=1"))
    {
        
$ameinfo['width'] = "640";
        
$ameinfo['height'] = "480";
    }


Obviously adjust width and height as you fancy.

What this will do is check the definition key and the zone you are in. If the matching definition key is youtube and the zone is post, then it will check the URL for hd=1 (which is my understanding of how youtube marks HD URLs. It then overrides the zones size.

I am sure you can get even more creative :)

Anyhoo, hope this helps!

Unfortunatelly, this doesn't work for me, as the HD YouTube links don't contain any "hd=1" in the links... Is there other way to fix this ? Thank you in advance !

IRANCITY 07-03-2009 07:36 PM

this mod have problem with vb blog
what am i doing?

The Geek 07-03-2009 08:50 PM

Quote:

Originally Posted by jkcerda (Post 1842254)
updated.

Break.com
ESPN
and AOL video are still NOT working:confused:

These are custom definitions, you will need to speak to the author (though I think I did update the break.com definition in DJ's thread today)

The Geek 07-03-2009 08:51 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1842257)
Just FYI Geek, theres an error in the version checking of this modification

Noticed that, but not sure what to do about it as it works if you paste the URL into a browser. I just assume its a vb.org thing

The Geek 07-03-2009 08:53 PM

Quote:

Originally Posted by TI3GIB (Post 1842280)
Think of it this way. Posting something that has a youtube video in it's regular http://www.youtube.com/watch?v=ubfWnIid5J8 format, it would parse.

But I want to have YouTube links in a "Click Here" format without it detecting that it's a YouTube link and parsing it.

I tried to untick AME from parsing in the post options bit, but that turns off all parsing, including the one that I wanted parsed.

I also tried to [/AME] link [AME] so that AME would stop parsing anything after the bracket, and show the link as it normally would ( a regular link to youtube ) and start parsing again after it, but that did not work.


Thanks for the feedback btw. You guys are great. :up:

Suppose you can wrap the URL in nomedia tags like:

[nomedia="http://www.youtube.com/url"]click here[/nomedia] though I haven't tried it.

The Geek 07-03-2009 08:55 PM

Quote:

Originally Posted by MonkYZ (Post 1842282)
Unfortunatelly, this doesn't work for me, as the HD YouTube links don't contain any "hd=1" in the links... Is there other way to fix this ? Thank you in advance !

I tested the above with HD links and it works, but have to confess I am no connoisseur of youtube HD links. Just noticed that the ones I was testing had hd=1 in them. If there is no way to tell a difference between a normal URL and an HD one, I don't think there will be a way around it. Saying that, the plug in is still a good way to customize media based on its type.

The Geek 07-03-2009 08:55 PM

Quote:

Originally Posted by IRANCITY (Post 1842292)
this mod have problem with vb blog
what am i doing?

Can you be more specific?

newsoftw 07-04-2009 09:52 AM

i update mod but still all video should not display and it's not working for me again........

please check links after updating this mod...still show links only even edit old post new but same..

youtube link:
http://www.newsoftworld.com/forums/f...scary-rat.html

meta cafe link:
http://www.newsoftworld.com/forums/e...ttlefield.html

please help......


All times are GMT. The time now is 02:24 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.02070 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)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
  • (5)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