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

 
 
Thread Tools
AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...) Details »»
AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...)
Version: 1.2.0, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.7 Rating:
Released: 06-27-2007 Last Update: 07-12-2007 Installs: 1245
DB Changes Uses Plugins
Additional Files  
No support by the author.

From the inventors of Swiss Cheese and the Egg comes AME - The Automatic Media Embedding System.

Note that Version 2.0.0 can be found here

AME is derived from GAL 6 base code but instead of linking keywords, it converts URLs that users paste or enter in their posts into inline embedded video streams.

Big credit goes out to mfyvie for the original concept that jazzed me up enough to lift code that I have been working on to radically improve his fresh idea. Though the same goal, I have taken a totally different approach to his initial release. This mod is 100% steaming fresh code straight from the Geeks oven of love.

First... the overview

AME scans new and edited posts for pre-defined patterns of URLs (i.e. youtube's). If it finds a match, it swaps the url tag for an ame tag.
When a post get parsed for bbcode and an ame tag is found, instead of hammering away at the post with umpteen bbcodes, AME quietly figures out which pre-defined embedding should be placed there and... viola', you have a pretty little embedded video like this:

Attachment 66927

This is significantly faster, has much lower overhead and is much easier to manage than loads of bbcodes or a than scanning every single post as the user views it to see if there are any conversions that need to be made.

Now for the bells and whistles

AME:
  • 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. This radically reduces overhead and speeds up the 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 in a post)
  • 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!
  • 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 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
  • 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 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

Add ons

AME comes configured with YouTube, Myspacetv, Google Video, Bolt, iFilm, Yahoo, Dailymotion, Amazon and MetaCafe Support built in. Since the amount of providers are always changing and most sites will only need a particular amount, AME has been designed with an import and export system to allow members to easily share formats with one another. In fact, the second post of this thread is updated periodically to relflect those add ons. Currently there are over 12 more additional formats contributed by AME users. Click here to see them.

Installation
  • Upload the contents of the forums folder into your forums directory and import the product.xml file into your product manager.
  • 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.

Troubleshooting

See this post on troubleshooting

A note about support and such

I have my plate pretty full with taking care of my commercial mods and the support that comes with them. Saying that, I will help when I can - but to be honest, I have ensured that there should be little to no support needed on this mod as it is very much self contained.
Please do not PM or post asking me to give you regexp's to support additional media streams. I built the system so that you can add your own providers as well as the ability to import and export them. If you still need a pattern but are not great with regular expressions (who is?) then I suggest getting RegExpBuddy. Although I am not expert at regular expressions, I did a quick start tutorial on AME regexps here if you want to check it out. I don't mind you guys asking amongst each other for these things, but just note that I will most likely not respond to the requests.

I will reserve the first couple of posts in this thread to periodically add user contributed patterns to import and for additional information (I hate mega long first post's in the release section). So check there for up to date information.

nJoy

Show Your Support

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

Comments
  #322  
Old 07-12-2007, 01:12 AM
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Location: FL
Posts: 401
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ In the future there might be a chance of adding break.com, but that will be once The Geek finishes the coding that he is adding to the Hack now. The coding will allow for the Hack to extract information from the site's content for those sites that do not have the information required to create an embed code in their URL Links. See below for clarification ...

Break.com URL for Videos
Code:
http://break.com/index/kid-breaks-wrist-falling-out-of-cart.html
Break.com Embed Code for Videos
Code:
<object width="464" height="392"><param name="movie" value="http://embed.break.com/MzI5NTc3"></param><embed src="http://embed.break.com/MzI5NTc3" type="application/x-shockwave-flash" width="464" height="392"></embed></object>
If you look at it, you'll see that the URL does not contain the MzI5NTc3, which is what is needed to create the embed code. After The Geek gets the code done, then support for this site will be available ... :up:
Reply With Quote
  #323  
Old 07-12-2007, 04:55 AM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dannyloski View Post
^ In the future there might be a chance of adding break.com, but that will be once The Geek finishes the coding that he is adding to the Hack now. The coding will allow for the Hack to extract information from the site's content for those sites that do not have the information required to create an embed code in their URL Links. See below for clarification ...

Break.com URL for Videos
Code:
http://break.com/index/kid-breaks-wrist-falling-out-of-cart.html
Break.com Embed Code for Videos
Code:
<object width="464" height="392"><param name="movie" value="http://embed.break.com/MzI5NTc3"></param><embed src="http://embed.break.com/MzI5NTc3" type="application/x-shockwave-flash" width="464" height="392"></embed></object>
If you look at it, you'll see that the URL does not contain the MzI5NTc3, which is what is needed to create the embed code. After The Geek gets the code done, then support for this site will be available ... :up:
I THINK NIX RESOLVED THE ISSUE WITH YAHOO! https://vborg.vbsupport.ru/showthrea...light=anymedia

I just need to use Yahoo and Break hee with AME...
Reply With Quote
  #324  
Old 07-12-2007, 06:29 AM
wastemytime wastemytime is offline
 
Join Date: Sep 2006
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For a better understanding of my problem and my english...

After i edit my post, the Video links looks like this:



Can someone help me please? What i am doing wrong? : )
Reply With Quote
  #325  
Old 07-12-2007, 11:52 AM
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Location: FL
Posts: 401
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wastemytime, is that happening for ALL of the Video Sites or just a specific one? Which Video Sites are giving you this error?

iogames, yeah Nix fixed it and added it to the AnyMedia BBCode Hack and so did Coders Shack for passiveVid ... I'm just waiting for The Geek to add it to this Hack as I prefer to use this one rather than the others. In worst case scenario that The Geek doesn't add the necessary extra coding to support those other sites, I'll just uninstall this hack and go with one of the others ... I guess patience is the key here, The Geek already said he was working on it, but has a lot of other things he needs to do, plus he is leaving for vacation ...
Reply With Quote
  #326  
Old 07-12-2007, 05:36 PM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have the some problem here:

https://vborg.vbsupport.ru/showpost....&postcount=144

but without the color code problem !

Quote:
Originally Posted by The Geek View Post
@nathan: Try adding wmode="transparent" to the embed element in the replacement code.
how can i do this ?
Reply With Quote
  #327  
Old 07-12-2007, 08:24 PM
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 Subah View Post
i have the some problem here:

https://vborg.vbsupport.ru/showpost....&postcount=144

but without the color code problem !



how can i do this ?
Just edit the item and put it in the embed code. Ill see if I can get it rolled into a release before I leave on vacation.

FWIW: I have Yahoo working now. It requires the Resolve URL Title setting to be on (and to function). It should now work with any site where the URL does not tie directly to the embed code. Im running some more tests before I release it. I should have a fully working version up by tomorrow night.
Reply With Quote
  #328  
Old 07-12-2007, 10:03 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this looks great, one question please... Does the mod work only when a post gets parsed for bbcode or will it work in other locations where bbcode is parsed? In otherwords, does the "meat & potatoes" of this get called from hooks within the parser or within showthread, view profile, etc... ?

Please let me know, thank you vbgeek!
Reply With Quote
  #329  
Old 07-12-2007, 11:06 PM
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Location: FL
Posts: 401
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Antivirus, I believe its only in the Showthread

The Geek, that's awesome news that you got Yahoo working along with the others sites that the URL doesn't work directly with the embed code. One question, what do we put/add in the RegExp for the sites that require the ability of the hack to request the page and get its contents in order to work? Or does it recognize those sites automatically? Anyways, can't wait to upgrade when the New Version comes out :up: ... Great support, I must say!

Oh and small request, doubt it'll be available or added, but cant blame a guy for trying, right? ... Anyways, I wanted to ask, would it be possible to have the Resolve URL Title option, be a per video site setting, rather than globally? The reason I ask is because well I wouldn't want to have the Title Option working for any of those sites that don't require it to work (ie: Google, YouTube, PhotoBucket, etc) simply because it makes loading take a lot longer and its not needed - I would only want to have the option of Resolve URL Title active for sites like Yahoo! or Dailymotion, that need it activated for the URL to be captured and added to the embed code correctly ... Get what I mean? Anyways, just a thought and something that I would like to see, but doesn't necessary have to be done ... Give me your input on it ...
Reply With Quote
  #330  
Old 07-13-2007, 06:39 AM
wastemytime wastemytime is offline
 
Join Date: Sep 2006
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dannyloski View Post
wastemytime, is that happening for ALL of the Video Sites or just a specific one? Which Video Sites are giving you this error?
It's Happening to all of the Video Sites. YouTube, Google, Metacafe, Liveleak, GameTrailers, etc.
Reply With Quote
  #331  
Old 07-13-2007, 08:51 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

have you modified any of the definitions in any way or added any addtional ones? Can you deactivate them all except for one at a time, edit and save the post to see if it is one of your items that is causing this to happen?

@Danny: There is an additional setting that taks an optional regexp to extract the embed code from the destination page. In the next version, yahoo and dailymotion comes with the package so you can easily see there how it works. I have also implimented the ability to do a page extraction on a per item basis. The page extraction AND the resolve URL setting must be active in order to extract the embed code from a page (in this case yahoo and dailymotion).
Reply With Quote
 


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 02:04 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.05974 seconds
  • Memory Usage 2,327KB
  • 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
  • (4)bbcode_code
  • (4)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
  • (4)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