Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs Details »»
AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs
Version: 2.5.6, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Category: Major Additions - Version: 3.8.0 Rating:
Released: 01-19-2009 Last Update: 12-08-2009 Installs: 1968
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

From the makers of the letters O and Yea comes the hottest 'must have mod' of the season: AME 2.5 - The Return of The Hot Mama.

Thanks everyone for making AME 2.5 Mod of the Month

AME is the multi award winning modification that smartly scans new and edited posts for URLs from a customisable variety of web sites (i.e. YouTube or Amazon or about 200 others). If it finds a match, AME will 'transform' the URL into inline embedded media without your users ever having to even think about it.

It was important for me to create a system that did not need updating (and subsequent reinstalling) every time one of the sites it supported decided to change the way it displayed its media (which is all the fricken time). Therefore I built a system in which the 'definitions' for each site could be imported, exported, tweaked and shared on a whim. This way, you only have to import the definitions that you want. It also allows the vB community to get creative and share definitions that I wouldn't of thought of!

Which sites are supported?

Included in the default installation is YouTube and Amazon. At time of posting this, I believe that there are over 180 sites supported that have been created by the vBulletin community. These range from sites that stream videos to Amazon referral links to locally hosted music and video files.

Check out the 'add ons' section of this post below to see availible add-ons.

For a total list of features and an FAQ, see click here.
For a post on troubleshooting, click here.

Though not tested on any version of vBulletin lower than 3.7.4, in theory it should work on versions 3.5 and higher (just dont quote this bit!).

Big thanks goes out to all those in the community that have supported this mod. Especially Digital Jedi who gives great support on this mod and has created over 160 definitions for this system alone!


Installation/Upgrade
  • Upload the contents of the forums folder into your forums directory and import the product-ame.xml file into your product manager (if upgrading, choose 'yes' to overwrite previous installation).
  • After installation, make sure that the system is on (admincp->AME CP->Settings)
  • Then you may want to try to rebuild old URLs via the tools option.

Change Log
nJoy

Download Now

File Type: zip ame2.5.6.zip (46.6 KB, 6324 views)

Screenshots

File Type: jpg newpost.jpg (26.4 KB, 0 views)
File Type: jpg newpost_result.jpg (61.9 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
Digital Jedi, luizalmir, Neal-UK, vijayninel, vithorius, zascok

Comments
  #672  
Old 07-03-2009, 10:57 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have just uploaded AME 2.5.5 to address a couple of minor issues. Mainly surrounding editing of existing AME links that contain brackets inside the name. This could (in rare cases) also affect posts with multiple media URLs in them.

I also added another hook to extend additional functionality for media that fails to validate (i.e. a youtube link that doesn't allow external embedding). I do not currently have plans to extend this area further than I have done, but its there

Files changed:
  • forums/includes/ame_bbcode.php
  • forums/includes/xml/hooks_automediaembed.xml

I have also updated the ame_nomedia template to add the phrase 'External Embedding Not Available' as the title to the link. This appears if the definition does not validate along with an icon. If you want to make it more obvious to the user that AME is working, but the video won't embed, I suggest playing with that template (or use the new hook).

To upgrade:

Download the latest package
Unzip and upload the contents of the upload/forums folder into your own forums folder (be sure to upload ALL the files and folders choosing to overwrite existing files).
Import the product_ame.xml file into your admincp product system (choosing to overwrite existing version)
Reply With Quote
  #673  
Old 07-03-2009, 11:16 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wayne Luke View Post
Sorry if this has been posted before but there are too many posts in the thread to read them all.

I want to show YouTube HD in a 16:9 format and not the 4:3 format provided now. Anyone know how to change the definition to accommodate this?
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!
Reply With Quote
  #674  
Old 07-03-2009, 11:18 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by newsoftw View Post
Thanks for great helping and also after doing that, working start only youbue videos but youtube videos are twice a time show in post....please below link....

http://www.newsoftworld.com/forums/f...-nail-gun.html


please any idea ???
Double posting indicates duplicate definitions.
Reply With Quote
  #675  
Old 07-03-2009, 11:21 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Omanternity View Post
Hey

Is there any possible way to make AME only come into effect when the URL is posted in it's URL form

http://youtube.com/etc

and not if it was inside a marked up text link [URL] ?

Is this possible at all ?
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!
Reply With Quote
  #676  
Old 07-03-2009, 11:27 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ryloth View Post
According to the definition it is. Also if you wrap it in AME tags, it loads up just fine.

Btw I am using FF and not the advanced WYSIWYG



Definition:

[http://]*[a-z]*?[\.]?youtube\.[a-z]*?/watch\?v=([A-Z0-9._%-]*)[&\w;=\+_\-]*
Quote:
Originally Posted by Ryloth View Post
update, i went into the definition and turned off Extract Information and youtube started working again just fine.

Looks like there is an issue w/ the Extract Information functionality.


the extract definition date value is:

value="http://www\.youtube\.com/v/([\w\-]*)?&
I think you are using another definition here.

[http://]*[a-z]*?[\.]?youtube\.[a-z]*?/watch\?v=([A-Z0-9._%-]*)[&\w;=\+_\-]*

Will not match

http://www.youtube.com/v/XXXX-XxXXxxX

Nor should it because http://www.youtube.com/v/XXXX-XxXXxxX in an address bar will not take you to a video as it is the movie object address. When AME validates, it uses

value="http://www\.youtube\.com/v/([\w\-]*)?&

Because that is the HTML that is in the source when the embed URL is present on the page. Otherwise it isn't there and instead 'Embedding disabled by request' or whatever.

I have tested this pretty throughly and while bugs in anything are inevitable, I am confident that the default install works as intended. If you are using custom or new definitions, that could be the culprit.
Reply With Quote
  #677  
Old 07-03-2009, 11:31 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wolfstream View Post
If the video couldn't be embedded, there needs to be some sort of warning for the user, it only makes sense, but that would be why that youtube video didn't work right. In fact, if you look at most of them that don't work right (if not all), I'd bet you would see the same thing
If the video doesn't allow embedding, the page title will still appear and an icon will be displayed. Furthermore in 2.5.5 I put 'External embedding not available' in the anchor title. I also added a hook to enable modders to extend this functionality, but apart from that, not sure how much more I can do. Personally I would suggest editing the ame_nomedia template to maybe put text after the link like: (media cannot be embedded). I didn't do that by default because I didn't want to go overkill on visual hints.
Reply With Quote
  #678  
Old 07-03-2009, 11:35 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The DaveyG View Post
Great mod.

I'm using this in conjunction with a Forms app. For example, I have the user enter the URL of a show on Hulu and it is supposed to automatically show up embedded on the thread that is generated. However, it's not changing the link into an imbed. Is there some setting I am missing or does this just not work on posts not made using the traditional means?
The forms app would need to hook into AME to prep and parse the text. Check out AMEs plugins to see how AME is doing it for blogs, visitor messages, posts, etc... for an idea of how to do it.

HTHs!
Reply With Quote
  #679  
Old 07-03-2009, 06:51 PM
jkcerda jkcerda is offline
 
Join Date: Mar 2008
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

updated.

Break.com
ESPN
and AOL video are still NOT working
Reply With Quote
  #680  
Old 07-03-2009, 06:53 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just FYI Geek, theres an error in the version checking of this modification
Reply With Quote
  #681  
Old 07-03-2009, 07:11 PM
jkcerda jkcerda is offline
 
Join Date: Mar 2008
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Redlinemotorsports View Post
Just FYI Geek, theres an error in the version checking of this modification
dang, I just installed it too
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06478 seconds
  • Memory Usage 2,378KB
  • Queries Executed 29 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete