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

Reply
 
Thread Tools
AME 2.0 -Auto Media Embedding for posts, blogs, visitor and group messsages Details »»
AME 2.0 -Auto Media Embedding for posts, blogs, visitor and group messsages
Version: 2.0.2, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 08-26-2008 Last Update: 09-20-2008 Installs: 939
DB Changes Uses Plugins
Additional Files  
No support by the author.

From the creators of French and Toast comes a sweet and sticky enchanement to the New York Times best-seller: AME - Auto Media Embedding

AME 2.0 - The Embedder Strikes Back!

AME has won Mod of the Month for Spetember 08. Thanks!

Note that 2.5 Gold has been released. Click Here.

Discussions for AME 2.5 RC 1 start here

AME 2.0 is the next version of the "Mod of the Month" winning media embedder that:
  • Allows user to simply 'paste' in a URL (i.e. a youtube link) without needing to know any special tags. However instead of displaying just the URL, it will show the media within the post
  • is lightweight as it does all of her chores without the overhead of having 1 bbcode per pattern or trying to parse a post every single time it gets displayed with a bunch of patterns. AME radically reduces overhead and speeds up processing. The only time ame will kick in is after creating a new post or after editing an existing one (or if an ame tag is found)
  • is extensible. She allows you to add, edit, delete, import and export patterns. That way you can decide which services to support, how they should look and then share them with others! At time of typing this, there are over 150 media sites that have been contributed by vBulletin.org members
  • can extract the title (requires your server to allow url wrappers with fetch_contents)
  • can extract embed code from sites whose URLs do not contain sufficient information to embed the video
  • can rebuild your old posts to convert your 'other' mediaish tags into URL tags.
  • can rebuild your old posts, blogs, comments, visitor and social group messages to convert URL tags into ame tags where needed
  • can convert her codes BACK to url codes so you're not stuffed with a bunch of dead tags if you uninstall!
  • won't uglify your site by having videos appear in quotes, php, code or html blocks (blech!)
  • can be globally disabled
  • can be excluded from forums
  • can exclude usergroups
  • can be toggled on/off per post, blog, comment, visitor and social group message
  • would cook dinner for you if she had arms
  • can wrap the output in a 'container' with original URL
  • has a super comprehensive admincp help system. Yes, I actually took the bloody time to add all the info you need into vB's admincp help system. If you ask a silly question in this thread that is addressed in the help system, you will be taunted.
  • is fully phrased
  • has hooks around integral operations so you can extend it
  • Supports embedding in vbBlog, Visitor Messages and Social Groups.
  • Can be disabled in one or more of the following sections: Posts, vbBlog, Visitor Messages and/or Social Groups
Apart from the additional areas of support around vbBlog, Visitor Messages and Social Groups, little has changed about AME since version 1.0 released over a year ago. I cleaned up a few minor bugs, trimmed and updated the default definitions.

Which sites are supported?

At time of counting this, there are about 170 sites supported. But I have only included a few common standards as default (yahoo, youtube, myspace, google and Amazon). Why only these? AME was designed with its own import and export system that enables users to create or modify definitions and share them with the community. This keeps the system lightweight, customisable and saves us all from having to upgrade every time a media site changes their URL structure or if I add another site.

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



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.
Big thanks goes out to all those in the community that have supported this mod. Especially Digital Jedi Who has created about 155 definitions for this system alone!

Change Log


2.0.2 - fixed added slashes in quote blocks (DoH!), vm advanced error and incrimented product version. You need to replace include/ame_bb_code.php and re-import the product-ame.xml to upgrade
2.0.1 - fixed missing backslashes in code blocks

2.5 Pre-Release information

Attached to this post is pre-release of version 2.5

2.5 is a pretty major upgrade from the 2.0 series and adds the following functionality to 2.0:
  • New in Beta 3 - Validation ability. This will help prevent media being embedded that can not be embedded (i.e. youtube videos that the author has stipulated can not be shown off of youtube). This option requires the extraction option to be turned on and a valid validation regexp. I have included one in the default youtube version. When a video on you tube gets embedded, but the author doesnt allow embedding, a link (with icon) is shown instead.
  • Ability to prevent non authorised usergroups from viewing (see Readme file in zip for more info)
  • Usergroup permissions (edit usergroup to adjust edit/view permissions)
  • Template driven system - uses templates now instead of 1 master replacement (see Readme file in zip for more info)
  • Signatures supported
  • Different sizes and template configurations for each supported zone (posts, blogs, groups, visitor messages and signatures)
  • A couple new hooks (Mainly to support a future add on for AME media in profiles)
  • Notfication system (similar to vB's to check for errors)
  • Definition keys for easier updating of definitions and to use in templates
  • File caching system which radically reduces processing
  • And more that I cant think of off the top of my head!
Note that while previous definitions will work with the new system, they will not be sizeable by zone. Since DJ helped with the private beta testing, I am sure he will be releasing 2.5 versions of his definitions soon.

Please note that 2.5 is a pre-release so there will be issues. If you want more stability, use 2.x until this version becomes gold FWIW: The only items currently outstanding are to add some missing admincp help. The rest is working as intended as far as I can tell

nJoy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #572  
Old 11-05-2008, 02:51 PM
ImageMavericks ImageMavericks is offline
 
Join Date: Jul 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello! i looked and searched for this, apologies if it has been covered.

i have some files that are an odd size at full size but they are tutorials that need to be a specific height and width. I have adjusted the display height and width to match... but the container still smooshes the video aspect ratio. am i missing something simple (please say yes). any help is appreciated.
Reply With Quote
  #573  
Old 11-05-2008, 09:23 PM
crkgb crkgb is offline
 
Join Date: Oct 2007
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Use the Embed regexp field to pull information from the source code of the page. Do you know anything about Regular Expressions? If not, refer to the guides in post 3 of this thread: https://vborg.vbsupport.ru/showthread.php?t=175378
Yes, I am familiar with Regular Expressions. I am having difficulties identifying how this mod assigns variables that were matched in my regular expression. For example:
Regular expression field:
Code:
[http://]*www\.example\.com[/mediafolder]{0,1}/album\.php\?albumid=([0-9]+)
Replacement field inserts albumid as $p1:
Code:
<a href="http://www.example.com/mediafolder/album.php?albumid=$p1"><img border="0" src="images/photoalbum.png" /></a>
Then I pull additional info with Embedding Regexp field:
Code:
<span class="testclass">(.*?)</span>
Does Embedding Regexp field assign the match in parenthesis to $p2 that I can use at
the Replacement field field like this?
Code:
$p2<br /><a href="http://www.example.com/mediafolder/album.php?albumid=$p1"><img border="0" src="images/photoalbum.png" /></a>
Reply With Quote
  #574  
Old 11-05-2008, 11:16 PM
megatop78 megatop78 is offline
 
Join Date: Sep 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi, i installed this but it isn't working.. if i put a direct link to a video it just comes up as a URL. if it enclose the same link under [ame]....[/ame] code, it works.. can you please help me out. how do i make it parse the links automatically without the need to put the [ame] code.
Reply With Quote
  #575  
Old 11-06-2008, 06:58 AM
realmr realmr is offline
 
Join Date: Aug 2008
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

which version is currently recommended to download 2.5rc or 2.0.2 for 3.7.3pl1 ?
And is it necessary to download master.xml to get google, youtube TO WORK OR are they included in 2.0.2 zip file ?
Reply With Quote
  #576  
Old 11-06-2008, 03:23 PM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

realmr, I'm using 2.5 on both 3.7.1 and 3.7.3 installs. Seems to be working okay on both. Little tweaks that need to be done to support certain definitions, but that's with either 2.0 or 2.5. So, I'd recommend 2.5 IMO.
Reply With Quote
  #577  
Old 11-06-2008, 08:36 PM
Fabikus Fabikus is offline
 
Join Date: Oct 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've a trouble.
Some videos of YouTube doesn't work. It tell VIDEO NO LONGER AVAILABLE also if video is available.

Look this: http://forum.fuoriditesta.it/video-m...-for-pain.html the video is aviable on http://www.youtube.com/watch?v=BDCN9mAQwoU but not in my website.
I saw the swf code, they are:

Code:
WEBSITE: http://www.youtube.com/swf/l.swf?swf=http%3A//s.ytimg.com/yt/swf/cps-vfl62967.swf&video_id=BDCN9mAQwoU&rel=1&showsearch=1&eurl=&iurl=http%3A//i3.ytimg.com/vi/BDCN9mAQwoU/hqdefault.jpg&sk=CD_vvptON_I-kMP-JdCyo8k7gP_WWeFIC&use_get_video_info=1&load_modules=1&ap=%26fmt%3D18&amp=&fs=1
YOUTUBE: http://www.youtube.com/swf/l.swf?swf=http%3A//s.ytimg.com/yt/swf/cps-vfl62967.swf&video_id=BDCN9mAQwoU&rel=1&showsearch=1&eurl=&iurl=http%3A//i3.ytimg.com/vi/BDCN9mAQwoU/hqdefault.jpg&sk=CD_vvptON_I-kMP-JdCyo8k7gP_WWeFIC&use_get_video_info=1&load_modules=1&fs=1&hl=it
I think there is an error in replacement:

Code:
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="350" wmode="transparent"></embed></object>
Should i remove that ap=%2526fmt%3D18?
Reply With Quote
  #578  
Old 11-07-2008, 04:11 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by punchbowl View Post
I'm terrified about converting a board with over a million posts. Should I be?
I guess the question you should pose is if you really need to. The conversion is just for converting threads created prior to installation of the mod. If you don't really need to convert the older threads, then I wouldn't bother.


Quote:
Originally Posted by ImageMavericks View Post
hello! i looked and searched for this, apologies if it has been covered.

i have some files that are an odd size at full size but they are tutorials that need to be a specific height and width. I have adjusted the display height and width to match... but the container still smooshes the video aspect ratio. am i missing something simple (please say yes). any help is appreciated.
Are you referring to AME 2.5? If so, and your using the Add-On definitions from my thread, I have not yet made the conversion for those definition that handles the Height and Width controls for 2.5. They have to be changed manually in the Replacement HTML for each respective definition.


Quote:
Originally Posted by crkgb View Post
Yes, I am familiar with Regular Expressions. I am having difficulties identifying how this mod assigns variables that were matched in my regular expression. For example:
Regular expression field:
Code:
[http://]*www\.example\.com[/mediafolder]{0,1}/album\.php\?albumid=([0-9]+)
Replacement field inserts albumid as $p1:
Code:
<a href="http://www.example.com/mediafolder/album.php?albumid=$p1"><img border="0" src="images/photoalbum.png" /></a>
Then I pull additional info with Embedding Regexp field:
Code:
<span class="testclass">(.*?)</span>
Does Embedding Regexp field assign the match in parenthesis to $p2 that I can use at
the Replacement field field like this?
Code:
$p2<br /><a href="http://www.example.com/mediafolder/album.php?albumid=$p1"><img border="0" src="images/photoalbum.png" /></a>
It matches the groups in the order they appear in the RegEx, regardless of which field your using. So $p1 will be replaced by your first group, $p2 your second, $p3 your third and so on. If you really need something from the source code of the page, then it's best, usually, to keep all your groupings in the Embed Regexp and pull your album ID, etc. from there.


Quote:
Originally Posted by megatop78 View Post
hi, i installed this but it isn't working.. if i put a direct link to a video it just comes up as a URL. if it enclose the same link under [ame]....[/ame] code, it works.. can you please help me out. how do i make it parse the links automatically without the need to put the [ame] code.
Post a couple of examples where your not getting the proper conversion. Could be you don't have extraction on in the global and/or definition settings. Could be something else entirely.


Quote:
Originally Posted by realmr View Post
which version is currently recommended to download 2.5rc or 2.0.2 for 3.7.3pl1 ?
And is it necessary to download master.xml to get google, youtube TO WORK OR are they included in 2.0.2 zip file ?
Both work fine, although there's some small bugs in 2.5 that are not hugely a problem. Mostly parsing errors with some of the extra sites I made for the Add On. But that's being worked on. Also, I haven't updated the Master XML to support the resizing controls that come with 2.5, but they still convert without it.

There are just a few definitions included with the mod to get you started. The Master XML in my thread is if you want the full blown number of supported sites. Once you install the mod, you'll see which supported sites come stock in the definitions list. Then you can decide if you want the extra ones from my thread.


Quote:
Originally Posted by Fabikus View Post
I've a trouble.
Some videos of YouTube doesn't work. Tey tell me VIDEO NO LONGER AVAILABLE also if video is available.

Look this: http://forum.fuoriditesta.it/video-m...-for-pain.html the video is aviable on http://www.youtube.com/watch?v=BDCN9mAQwoU but not in my website.
I saw the swf code, they are:

Code:
MY WEBSITE: http://www.youtube.com/swf/l.swf?swf=http%3A//s.ytimg.com/yt/swf/cps-vfl62967.swf&video_id=BDCN9mAQwoU&rel=1&showsearch=1&eurl=&iurl=http%3A//i3.ytimg.com/vi/BDCN9mAQwoU/hqdefault.jpg&sk=CD_vvptON_I-kMP-JdCyo8k7gP_WWeFIC&use_get_video_info=1&load_modules=1&ap=%26fmt%3D18&amp=&fs=1
YOUTUBE: http://www.youtube.com/swf/l.swf?swf=http%3A//s.ytimg.com/yt/swf/cps-vfl62967.swf&video_id=BDCN9mAQwoU&rel=1&showsearch=1&eurl=&iurl=http%3A//i3.ytimg.com/vi/BDCN9mAQwoU/hqdefault.jpg&sk=CD_vvptON_I-kMP-JdCyo8k7gP_WWeFIC&use_get_video_info=1&load_modules=1&fs=1&hl=it
I think there is an error in my replacement:

Code:
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="350" wmode="transparent"></embed></object>
Should i remove that ap=%2526fmt%3D18?
It appears to be the problem. That bit of code was added to support the HD versions of some YouTube videos. But it appears they're not doing it that way anymore. Removing both instances of it should correct the problem. Also drop the & right before it.
Reply With Quote
  #579  
Old 11-07-2008, 02:48 PM
megatop78 megatop78 is offline
 
Join Date: Sep 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Post a couple of examples where your not getting the proper conversion. Could be you don't have extraction on in the global and/or definition settings. Could be something else entirely.
I am trying to embed this using AME. But it wont embed if i put it directly.
Code:
http://www.youtube.com/watch?v=Whmp5yRnABs
http://www.youtube.com/watch?v=M6-1Gki-E5g
If i enclose them in [ame]...[/ame] tags.. it works perfectly. Can you help me out. Here is a screen shot of my ame settings page. Thanks.

http://i37.tinypic.com/10r3dw5.gif
Reply With Quote
  #580  
Old 11-07-2008, 07:03 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like everything is set right, and these are converting for me. Can we take a look at an example thread where your not getting a conversion?
Reply With Quote
  #581  
Old 11-08-2008, 12:08 PM
Ohiosweetheart Ohiosweetheart is offline
 
Join Date: Dec 2005
Location: N.E. Ohio
Posts: 2,291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Before I install this mod, I'm wondering if it will convert stuff like this
Quote:
<object type="application/x-shockwave-flash" width="450" height="382" data="http://www.thefunnystuff.net/FunniestStuffPlayer.swf">
<param name="bgcolor" value="#F4F4F4" />
<param name="movie" value="http://www.thefunnystuff.net/FunniestStuffPlayer.swf" />
<param name="FlashVars" value="videoFile=http%3A%2F%2Fvideos.funnieststuff .net%2Fcontent%2F2008%2F11%2F06%2F3%2Fwhoselinepar tyquirks.flv&videoTitle=A%20game%20of%20party%20qu irks%20gone%20wrong.%20%20From%20Whose%20Line.&aut oPlay=false&fullScreenScriptURL=http://www.thefunnystuff.net/scripts/funniestStuffPlayerFullScreen.js" />
<param name="seamlessTabbing" value="1" />
<embed
type="application/x-shockwave-flash"
width="450"
height="382"
bgcolor="#F4F4F4"
src="http://www.thefunnystuff.net/FunniestStuffPlayer.swf"
FlashVars="videoFile=http%3A%2F%2Fvideos.funniests tuff.net%2Fcontent%2F2008%2F11%2F06%2F3%2Fwhoselin epartyquirks.flv&videoTitle=A%20game%20of%20party% 20quirks%20gone%20wrong.%20%20From%20Whose%20Line. &autoPlay=false&fullScreenScriptURL=http://www.thefunnystuff.net/scripts/funniestStuffPlayerFullScreen.js">
</embed>
</object>
from a site like this - http://www.thefunnystuff.net/viewmovie.php?id=995

Thanks!
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 12:12 PM.


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.09092 seconds
  • Memory Usage 2,353KB
  • Queries Executed 25 (?)
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
  • (13)bbcode_code
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete