![]() |
AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...)
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:
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
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 |
This post is for listing updates and upgrade information. The updates will appear in the latest to the oldest
1.2.0 Released 12.07.07 Major update. Discussion for this release (and important upgrade notes) starts here.
1.1.3 Released 11.07.07 Minor update. Discussion for this release starts here,
1.1.2 Released 03.07.07 Discussion for this release starts here,
Note that by default, the new 'Resolve URL titles' option is on. Some servers lock down the ability to use fetch_contents with url's. If your server has this restriction, then this feature will not work and you will need to disable it (or get your host to enable it). How will you know if you need to disable it? If your posts seem to hang when creating/editing a post with a matching URL in it. |
Reserved for user contributed definitions to import into AME.
User contributed: Videotube And Liveleak -VideoTube contributed by Ren? Kunze and the LiveLeak contributed by DaNIEL MeNTED. I contributed a couple of very minor tweaks to some of the regexps. Other:
|
thanks will try this out:up:
|
thanks! downloaded
|
Hi,
installed and then comes this error when i post a thread with youtube url or other contents........hack disabled at the moment........ Code:
Warnung: Missing argument 2 for ame_prep_text() in /includes/ame_bbcode.php (Zeile 152) |
hmmm. What version of php are you on?
|
Quote:
|
Perfect idea Sam :)
|
Hello, unfortunately I get now an error if I a new topic or contribution provide:
Quote:
http://video.google.de/ http://www.myvideo.de/ http://www.videotube.de/ http://www.clipfish.de/ Can help their me there. |
@Euro - Can you redownload and install? str_ireplace is a PHP 5 function so I changed the code to use str_replace instead. I also took care of the other error. Let me know how you get on :)
@Liz - thanks man - it wasnt exactly mine - but I did it in a cool way ifidontmindsayingsomyself :) |
@Rene: Redownload, sounds like the same problem as euro. Just fixed it 2 seconds ago :)
|
Sam it is unfortunately not working. You can check here I even disabled all other media hacks to check it out. Change execution order in each plugin to 3 just to make sure not conflicting with vBSEO.
|
It didn't work for me either.. mine look like Lizard King's post.
|
Unfortunately it does not function.
If I these left: http://www.youtube.com/watch?v=c949S08LIHY Into a contribution copy converts it it into URL, but not into a video. |
Ah! Nice work Sam! :)
|
Have you checked your settings to see if it is disabled? Looks like it is by default. THen do a quick edit/save. I just checked it on my vbseo site and it seems fine.
|
I must correct myself YouTube functioned.
Unfortunately GoogleVideo does not function. That is the left for Google video: http://video.google.de/videoplay?doc...arch&plindex=0 without search: http://video.google.de/videoplay?doc...deu&plindex=19 |
You should use tcat and thead, thead for the name of the video hoster, eg. Youtube or Veoh. and tcat for the name of the video, like Superman fights back or How to cook bejcon.
|
Rene, edit the google regexp to this:
PHP Code:
@Lucky, I am planning on doing this for named URLs (i.e. those with names in them) but wont otherwise as it would require going off site to try and figure out what the name is :) |
now it works fine
|
Quote:
|
Now it functions, only as gets I the others left inside.
Unfortunately I do not have notion as I that to make am. http://www.myvideo.de/ http://www.videotube.de/ http://www.clipfish.de/ |
here is your myvideo.de
regexp: PHP Code:
PHP Code:
nJoy |
I thank you for your assistance.
I tried, get it times it however unfortunately not. |
installed here with no problems.... but is there a list of "supported" sites other than the ones listed in the admincp? Just wondering because the previous version seemed to support more than the 6 video services i see listed in the admin section.
and is there any way to get the title in from the youtube clip? I know previous versions of these media players would list the window as "youtube - title of the clip". it makes it easier to see exactly what you are watching before you click the play overlay because you cant tell alot of the time based on the initial image. |
Great hack , i will install it soon as possble :)
|
Sam, you are the man ;)
|
@Aggie, the beauty is that any site can be supported. No need to wait for someone to add support for you - you can add what you want now (it doesnt have to just stop at viedo sterams... think amazon.com referrer :) ).
I only included the most popular to start with, but thanks to the importer and exporter, I am sure it is only a matter of time until everything is out there :) I started looking into putting the title in... Its not as big of a deal as I thought so I am doing it now. I agree that it looks much nicer :) Glad I could get you something Goth... :D |
oooo. Look, nothing like a little petty thread rating to make ones day :rolleyes:
Silly lamer. |
Is this working Now?
|
yes. There is a bug with importing single items, but since no one is posting exports, I don't see it as much of a show stopper. That will most likely get fixed by tomorrow.
|
How can i display Videos from http://de.sevenload.com/videos/KicXJpB
I have try it the code of myvideo.de to rewrite, but i had no luck, it is for me to complicated :erm: |
Ill wait for a bit Till no bugs exists Ive had 3 different hacks about embedding in 4 days so.........
|
Works perfectly for me on our website :yesway:
|
I just noticed a bit of a bug...
On my site, when this is enabled and you quote any text containing an apostrophe, the apostrophe is rendered as \\' Example... Quote:
Quote:
|
Quote:
|
Quote:
|
Nice to see some automation procedures like this coming out. I have this installed and it will help a large majority of users because many do no use BBCode or find formatting complicated. The fact that it is relatively easy to expand by the admin is another plus. I can see codes in the future that place images from image upload sites in lightboxes and other nifty features.
|
I'll give it a shot see what happens. Now having BB codes for these services already installed is that a bad idea should they be removed before?
|
All times are GMT. The time now is 06:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|