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
  #282  
Old 07-08-2007, 05:43 PM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry if I'm asking a question that has previously been answered, but can anyone confirm or not if this works for GameTrailers videos as well? I've searched through the thread and it looks as thought you have to add the code in yourself and I don't really fancy that.
Reply With Quote
  #283  
Old 07-08-2007, 07:13 PM
a1whs.com a1whs.com is offline
 
Join Date: Feb 2006
Location: Canada of Course
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Geek any words on my issue yet ? I thought this mod was supported ? DO i have to go to some other site to get support or just asking here is sufficient ?
Reply With Quote
  #284  
Old 07-08-2007, 08:00 PM
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 a1whs.com View Post
Geek any words on my issue yet ? I thought this mod was supported ? DO i have to go to some other site to get support or just asking here is sufficient ?
Yes, I'm getting desperate too, this one of the best hacks, I tend to think he's busy, but I need to solve or I need his help:
My hack seems to be a mess, I just installed 10 functions and the half doesn't work:
http://chat.iogames.com/news/54-yout...ternships.html

1. YouTube: OK!
2. MySpace: doesn't respect PLAY or PAUSE [Maybe is the Video]
3. Google: OK!
4. Yahoo: Any URL I enter, shows the SAME video
5. Amazon: OK!
6. MetaCafe: Always shows a LINK, no a player...
7. iFilm: OK!
8. LiveLeak: OK!
9. VideoTube: Doesn't exist!!!
10. Bolt: OK!

Ah! and something strange happens, a NEW MEDIA DEFINITION appears in the TOP and it wasn't there the last version...

Can somebody help me???
Reply With Quote
  #285  
Old 07-08-2007, 08:01 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 a1whs.com View Post
It has major bug dude, try posting :

Code:
    $data = get_table_data('link');
Add after that line :
Code:
   if (! preg_match("/^http:\/\//", $data['URL1'])) { $data['URL1'] = "http://" . $data['URL1']; }

   if (! preg_match("/^http:\/\//", $data['URL2'])) { $data['URL2'] = "http://" . $data['URL2']; }

   if (! preg_match("/^http:\/\//", $data['URL3'])) { $data['URL3'] = "http://" . $data['URL3']; }

   if (! preg_match("/^http:\/\//", $data['URL4'])) { $data['URL4'] = "http://" . $data['URL4']; }

   if (! preg_match("/^http:\/\//", $data['URL5'])) { $data['URL5'] = "http://" . $data['URL5']; }

   if (! preg_match("/^http:\/\//", $data['URL6'])) { $data['URL6'] = "http://" . $data['URL6']; }

to any post. Till this error
Parse error: syntax error, unexpected T_BAD_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/drd/public_html/zone/includes/ame_bbcode.php(177) : regexp code on line 2

Is fixed its an uninstall for me, time to find another youtube mod i suppose.
I cant reproduce this. It works fine. Furthermore, AME wouldnt doesnt do stuff like URL1 and URL2. It looks like some other mod you have installed.
Reply With Quote
  #286  
Old 07-08-2007, 08:08 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 4x4 Mecca View Post
Ok geek, I'll need a little help with this one... for live video, here are 4 different video links
Code:
http://www.livevideo.com/video/landing/848CAC16E63D439E8DB41820C009BC0D/boy-has-six-needles-in-body.aspx?tx_site=filecabi.net&tx_cid=3533&tx_category=1
http://www.livevideo.com/video/dudewheresmycar/5533114A13614A0DAED66CFC0FF8334F/train-crash-test.aspx?tx_category=1
http://www.livevideo.com/video/dudewheresmycar/5533114A13614A0DAED66CFC0FF8334F/train-crash-test.aspx
http://www.livevideo.com/video/F4756E4DEBDA4CD99E1E874AAF104C98/tarot-reading-for-mr-ed.aspx
Here is my embed code
Code:
(http://[\w\d]+\.livevideo\.[\w\.\/%-_?]+/video/)[\w\d0-9]+/([\w\.\/%-_?]+)/([\d\w\0-9\?\=\&]+)
It works fine for the first three, but the last one doesn't have a sub folder in it... can you help me fix the code?
This one is tough because the key that you are looking for can be in multiple places. Ill have to comb through it when I have some time to figure it out - cant promise anything though
Reply With Quote
  #287  
Old 07-08-2007, 08:09 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 Silvio View Post
hi and ty so much for this gorgeous release. working as charm.

Ive 'reverted' all my old videos and 100% working.
just a question.
in the past i was using christQ media tag that was formed by [media]full url to youtube or similar[/media]
now i need simply to rename/parse [media] in [ame] (or [url]) then re-build posts.
how can I mass revert [media] in [ame] (or [url]) from all old posts?
how can i remove the title from the media (the one on the top with embedded the url)
edited : p.s. during Rebuild status the pages are always 'about 77 page(s) left' and that value never change till the end.
Is it in test mode?
Reply With Quote
  #288  
Old 07-08-2007, 08:11 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 swissbob View Post
I get the following error message:

Any ideas?
hmmm, Can you edit the create_bbcode hook for AME and change the

return ame_process_bbcode(&$parser, $text, $option);

to

return ame_process_bbcode($parser, $text, $option);

And let me know if that helps
Reply With Quote
  #289  
Old 07-08-2007, 08:14 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 iogames View Post
Yes, I'm getting desperate too, this one of the best hacks, I tend to think he's busy, but I need to solve or I need his help:
My hack seems to be a mess, I just installed 10 functions and the half doesn't work:
http://chat.iogames.com/news/54-yout...ternships.html

1. YouTube: OK!
2. MySpace: doesn't respect PLAY or PAUSE [Maybe is the Video]
3. Google: OK!
4. Yahoo: Any URL I enter, shows the SAME video
5. Amazon: OK!
6. MetaCafe: Always shows a LINK, no a player...
7. iFilm: OK!
8. LiveLeak: OK!
9. VideoTube: Doesn't exist!!!
10. Bolt: OK!

Ah! and something strange happens, a NEW MEDIA DEFINITION appears in the TOP and it wasn't there the last version...

Can somebody help me???
IO - the ones you seem to be having problems with are add-ons that other users have done. Ill look into them when I have some time - but I can't comb through everyones

The only one Im wondering about is the metacafe as that is default. Can you post some examples of the URLs that are not parsing?

The blank item looks like an import or item that was created/edited with no name. Either edit it and put a name in or delete it.

HTHs
Reply With Quote
  #290  
Old 07-08-2007, 08:15 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 a1whs.com View Post
Geek any words on my issue yet ? I thought this mod was supported ? DO i have to go to some other site to get support or just asking here is sufficient ?
Dude, you posted your problem earlier today. Its a Sunday, its a free modification and your problem doesnt appear to have anything to do with AME. Patience is appreciated.
Reply With Quote
  #291  
Old 07-08-2007, 08:18 PM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek View Post
This one is tough because the key that you are looking for can be in multiple places. Ill have to comb through it when I have some time to figure it out - cant promise anything though
Don't waste your time. I was doing that for someone else by accident, it wasn't even the site they wanted lol
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 01:39 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.09931 seconds
  • Memory Usage 2,338KB
  • 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
  • (8)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