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

Reply
 
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
  #1242  
Old 05-16-2008, 12:43 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Geek! Great to see you around again! I was and am very happy to help out, even with the limited knowledge I have. This mod was singularly responsible for introducing me to the world of Regular Expressions and what they're capable of. It's actually been really fun trying to figure out what things I can make happen with AME. It seems there's still a great deal of potential there that is remained untapped. So if I can thank you for one thing in particular, it would be, not just for your work on the mod, but for creating the catalyst for my understanding of something I didn't know a thing about four months ago.



mykkal, someone already made an MP3 definition for AME, and it's available in the Local Hosted ZIP file in my thread.
Reply With Quote
  #1243  
Old 05-16-2008, 09:30 PM
GreeceMonkey GreeceMonkey is offline
 
Join Date: Dec 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am usless at REGEX, I am trying to add a embed service for youtube hi def service.

All I want to be able to say is if the end of the URL finishes as 'fmt=18'

then embed the youtube video with the addition code of '&ap=%2526fmt%3D18' in the embed code.

I am trying to do what is in the this DOC
http://www.insideonlinevideo.com/200...tube-tests-hd/

I have got it to work, but the originak youtube filter is also being triggered as it matches as well and I end up with two embeded videos in the same post.

I am sure this is simple, but regex is not my strong point

At the moment I have my regex expresson as

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

and my embed code as

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18"></param><embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18" type="application/x-shockwave-flash" width="425" height="350" wmode="transparent"></embed></object>

hope somebody can help me

Graham Mattingley
Reply With Quote
  #1244  
Old 05-17-2008, 10:47 AM
724119 724119 is offline
 
Join Date: Nov 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey
can you help me?
why i can't uninstall it
Quote:
SQL query:

SHOW INDEX FROM `automediaembed` ;



MySQL said:

#1030 - Got error 1 from storage engine
Reply With Quote
  #1245  
Old 05-17-2008, 02:31 PM
goddess_dix's Avatar
goddess_dix goddess_dix is offline
 
Join Date: Mar 2007
Location: Kansas
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by duckdodger View Post
I did a search but couldn't find anything. I have AME installed and it works fine, but I'm going to add multiple styles to my site for users to choose from. When I post/edit a topic the video works, but if I view it from a different style it only displays the url with the ame tags. If I edit it in that style, it works there and breaks in the other.
i can't tell you from exerperience because i don't currently have this mod installed, but i wonder if you had considered trying the template modification system hack for managing the template edits? since it stores template edits in a master style and applies them across your skins, it may get you around this problem. a thought, anyway.
Reply With Quote
  #1246  
Old 05-17-2008, 03:01 PM
duckdodger duckdodger is offline
 
Join Date: Feb 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goddess_dix View Post
i can't tell you from exerperience because i don't currently have this mod installed, but i wonder if you had considered trying the template modification system hack for managing the template edits? since it stores template edits in a master style and applies them across your skins, it may get you around this problem. a thought, anyway.
Thanks for the reply. I would have tried that, but for some strange reason it started working correctly on all styles after I added a new xml definition from Jedi. It wasn't a rewrite either, just a new one, so I have no clue why it did that, and I have a bad feeling it will come back. But for now all is good
Reply With Quote
  #1247  
Old 05-17-2008, 03:59 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind.... great mod
Reply With Quote
  #1248  
Old 05-17-2008, 09:33 PM
nMIK-3 nMIK-3 is offline
 
Join Date: Dec 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For me is working only when I reply to a post and does not work when I create a new thread.
I am running VB 3.7.0

Any idea how to fix this?
Reply With Quote
  #1249  
Old 05-17-2008, 11:19 PM
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 GreeceMonkey View Post
I am usless at REGEX, I am trying to add a embed service for youtube hi def service.

All I want to be able to say is if the end of the URL finishes as 'fmt=18'

then embed the youtube video with the addition code of '&ap=%2526fmt%3D18' in the embed code.

I am trying to do what is in the this DOC
http://www.insideonlinevideo.com/200...tube-tests-hd/

I have got it to work, but the originak youtube filter is also being triggered as it matches as well and I end up with two embeded videos in the same post.

I am sure this is simple, but regex is not my strong point

At the moment I have my regex expresson as

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

and my embed code as

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18"></param><embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18" type="application/x-shockwave-flash" width="425" height="350" wmode="transparent"></embed></object>

hope somebody can help me

Graham Mattingley

Here's what I tried, and it seems to be working perfectly on my forum.

Keep the original YouTube RegEx the way it was, as that definition will still convert any URL, even one with the fmt=18 on the end. Instead, change the embed code, and the embed code only. Add &ap=%2526fmt%3D18 after the $p1 in the value and src URLs. I highlighted them in red:

Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18"></param><embed src="http://www.youtube.com/v/$p1&ap=%2526fmt%3D18" type="application/x-shockwave-flash" width="425" height="350" wmode="transparent"></embed></object>
Now test it out with these four URLs. The first two are the ones in the article with the skateboarding dog:

http://www.youtube.com/watch?v=CQzUsTFqtW0
http://www.youtube.com/watch?v=CQzUsTFqtW0&fmt=18

And these last two are a Barack Obama speech that is currently NOT available in HD but has the fmt=18 on the end of one anyway.

http://www.youtube.com/watch?v=QW4sqy9iBDc
http://www.youtube.com/watch?v=QW4sqy9iBDc&fmt=18

What should happen when you post these four is that both instances of the skateboarding dog should have embedded in HD and both Barack Obama videos should have embedded as they would normally.

This means that you users don't even have to know if their video is available in HD, the embed code will do the work for them, and if it isn't it will embed normally. And even if they do post the URL with the extra set of number on the end, it will still work the same way. Test that out and let me know if it's working for you the way it is for me, and I'll add it to the next cycle of XML updates.
Reply With Quote
  #1250  
Old 05-19-2008, 05:25 AM
NeverBored NeverBored is offline
 
Join Date: Feb 2008
Location: CA
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So now that I think more people are using this on 3.7... Is anyone having a problem when posting a video in quick reply with firefox, the page goes white and doesn't load (but the post is posted)... This is the only problem I've experienced with the mod on 3.7. Would be nice if we could figure out what the problem is.
Reply With Quote
  #1251  
Old 05-21-2008, 12:42 PM
D.Baker D.Baker is offline
 
Join Date: May 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<span style="text-decoration: line-through">Hey guys,
Great mod. Is there any reason why AdminCP wouldn't show up in the left hand menu? I can get to it if I point my browser directly at the automediaembed_admin.php file, but it's not showing up in the list.

Thanks again for a great plugin.</span>
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 04:33 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.13715 seconds
  • Memory Usage 2,339KB
  • 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
  • (1)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