The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...) Details »» | |||||||||||||||||||||||||||
AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...)
Developer Last Online: Jan 2019
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 Show Your Support
|
Comments |
#82
|
|||
|
|||
I get "Invalid File Specified" when I try to import amazon. Never mind.. I'm a doofus.
|
#83
|
||||
|
||||
you can try:
([\d\w%]+) |
#84
|
|||
|
|||
Ok i cant it.
Can you help me with http://www.clipfish.de I have this: Quote:
Quote:
|
#85
|
|||
|
|||
Quote:
Thank you. |
#86
|
||||
|
||||
da40 - Ill try to put together a basic concept tutoiral Regexps are almost as much art as science and very difficult to get your head around.
@Rene - you need to escape special characters (like the . and the ?). Try this: http://www\.clipfish\.de/player\.php\?videoid\=([\d\w%]+)[&\w;=\+_-]* |
#87
|
|||
|
|||
Thank You.
I found an error. I have on the top of showthred this error: Quote:
|
#88
|
||||
|
||||
I thought I would put down some basics of creating regexp's for AME as many users are wanting to create their own. This isnt an exhaustive list, nor am I an expert on regexps, this is just a rough, basic overview to get you started.
AME takes the regexp you provide and wraps it in [url] tags, boundaries and codes to make the regexp case insensitive so you don't have to worry about doing that. You do have to remember though that your regexp needs to match the entire URL. If it doesnt, it wont qualify as a match in AME. Best way to test regular expressions (that I have found) is with regexp buddy. This is what I do:
I now need to define a character class that will allow me to match the pattern I am after. If the pattern is only word characters (i.e. letters and or numbers), then I can use [\w]. If it is letters only, then I would use [a-z], If they are numbers only then I can use [\d]. I can also specify additional characters that can appear. For instance, if I wanted a class that allows word characters and underscores, I could do [\w_]. If I wanted letters only, hyphens and underscores, I could do [a-z_-] In the case where I am trying to extract MzEwODYwfDg2NzY0Ng then a word character class would work fine: [\w] The problem is that only matches the first occurence of a character in the class. In other words, my match would be http://www.clipfish.de/player.php?videoid=M NOT http://www.clipfish.de/player.php?videoid=MzEwODYwfDg2NzY0Ng== which is what I want!. This is where special characters come in.
So, to make my character class work, I use [\w]+ So now my regexp looks like: http://www\.clipfish\.de/player\.php\?videoid=[\w]+ Now, that will match, but I need to capture whatever pattern is matched in the [\w]+ part. Thats where ()'s come into play. If I so this: http://www\.clipfish\.de/player\.php\?videoid=([\w]+) Then I get the contents of that pattern. However!!! It still wont match yet because there are these annoying == signs in there! Since we are not sure how and when they will appear, lets just create another class to accomadate whatever else may come after. [&\w;=+_-]* That class says "match any single character that is an &, a word (or digit), a semi colon, a plus, an underscore and a hyphen 0 to an unlimited amount of times (the asterix says that!). That means that any of those mentioned characters may of may not appear, but nothing outside of that class can appear (for instance, a %). So my final regexp looks like: http://www\.clipfish\.de/player\.php\?videoid=([\w]+)[&\w;=+_-]* And in the case of AME, I can put $p1 in the replacement HTML to get the 'movie' id which in this case is MzEwODYwfDg2NzY0Ng. nJoy |
#89
|
||||
|
||||
MotM!!!
|
#90
|
||||
|
||||
There are problems with special characters fetched from youtube into [ URL ] [ / URL ] tags. I'd also like a version without file uploades or DB changes. There was another mod available until a few days and it could integrate youtube without any changes mentioned above. This modification was dropped for this mod here, so I'd be happy to see improvements in easy upgrading (no file uploads / no db changes).
|
#91
|
|||
|
|||
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|