PDA

View Full Version : Add-On Releases - DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest...


Pages : 1 2 3 4 5 6 7 8 [9]

Digital Jedi
06-19-2013, 07:19 AM
Hi, I'm trying to make a dropbox player.
This is what I tried but I can't make it work.
What's wrong?

The Original Link (Example):
https://www.dropbox.com/s/n4htlu6gwygahcb/Bob%20Sinclar%20-%20Summer%20Moonlight%20%28Original%20Radio%20Edit %29.mp3

Regular expression:
http[s]*://www\.dropbox\.com/s/([\w]+)/([\w_-#&\%^]+)\.mp3

Replacement:
<object type="application/x-shockwave-flash" data="/misc/audio-player/player.swf" id="audioplayer" height="24" width="290"> <param name="movie" value="/misc/audio-player/player.swf"> <param name="FlashVars" value="playerID=audioplayer&amp;soundFile=https%3A%2F%2Fwww\. dropbox\.com/s/$p1%2F$p2.mp3?dl=1"> <param name="quality" value="high"> <param name="menu" value="false"> <param name="wmode" value="transparent"> </object>
I don't know too much about embedding Dropbox audio, but I can tell you that your regex shouldn't have the - in the center of the group. It treats the _ and # as a span like it would between 0-9. Move the dash to just after the caret symbol ^. That, at the very least, will give you a valid regex pattern.



Hi Digital Jedi!

I am trying to use your XML media definitions on my AME3, but i am getting some error "You appear to be trying to import old AME definitions. You can only import definitions made in 3.x".

I don't understand... the definitions are newer... and isn't AME3 newer than AME 2.5?

What should i use to make these definitions work?

Thanks in advance!
AME 3 is newer, but these definitions are for 2.5 only. AME 3 requires a whole different set be written, which I'm currently trying to work on.


Should i give up on https://vborg.vbsupport.ru/showthread.php?t=230707 and use https://vborg.vbsupport.ru/showthread.php?t=202476 instead? Seems older to me :(
Only if you're using vBulletin 3.x. AME 2.5 will not work on the vBulletin 4 series, and vice versa.


It does end with </AME>

I removed some of the Imports, and just trying to do Youtube. It says the display order has been saved, but when I go to display defintions, it says there is no definitions.
That definitely sounds like a server issue. And we seem to be running into more and more of these as vB 3 gets older. Try checking with your host to see if limits are set on what can saved or submitted by scripts on your server.

MonkYZ
06-19-2013, 08:04 AM
Oh, thanks for the answer. Well, i'm holding my breath for your definitions for AME 3 then :)
Can we donate to speed things up? :)

Digital Jedi
06-19-2013, 03:34 PM
Oh, thanks for the answer. Well, i'm holding my breath for your definitions for AME 3 then :)
Can we donate to speed things up? :)
I would hate to say yeah, and then one of those Digital Jedi things happens again, where something just ridiculously obscure happens to delay me from working on the project. But if folks really would like to see AME 3 definitions sooner than later, then I can try and put it on one of the front burners. I plan on making them one way or another, I just know my time estimates have always been way off in the past. I never want to discourage people from giving me money, though. :p

davew
06-23-2013, 11:14 AM
Apologies if this has been covered already, but I've searched every way I can without finding a solution.

Installing the last Master xml file appears to have broken existing links to photobucket images.

The code for the Images ends with .jpg.html ? EG https://vborg.vbsupport.ru/external/2013/06/1.html

Dropping the .html works, but shouldn't AME be taking care of that?

Any suggestions appreciated :)

Cheers,
Dave

Digital Jedi
06-24-2013, 03:43 PM
Apologies if this has been covered already, but I've searched every way I can without finding a solution.

Installing the last Master xml file appears to have broken existing links to photobucket images.

The code for the Images ends with .jpg.html ? EG http://s634.photobucket.com/user/wjp005/media/RX7%20sell/RX7_Bits001.jpg.html

Dropping the .html works, but shouldn't AME be taking care of that?

Any suggestions appreciated :)

Cheers,
Dave
Image pages should be being ignored completely by AME. No parsing should be taking place except for when you use a video page, so I'm not sure what's happening there. In fact, from checking just now, Photobucket has moved all their video URLs, so even video wouldn't be parsing properly at the moment. Do you possibly have another modifications installed that affects URLs?

rockerzteam
06-24-2013, 06:40 PM
CNN Videos do not work! Can we please get this fixed.

wacnstac
06-25-2013, 07:53 PM
Hey Jedi, we are having an issue updating the XML file for a site that is running 3.8.X and AME 2.5.6. We are trying to import all from latest XML delta file and keep getting the error:


Can not save Import because of the following error(s):

Some keys are empty
Some keys contain invalid characters and must be validated prior to import.




We've delete all the definitions from the AME table, uninstalled and reinstalled the AME plugin but keep getting the same error. Any suggestions?

davew
07-01-2013, 05:49 AM
Image pages should be being ignored completely by AME. No parsing should be taking place except for when you use a video page, so I'm not sure what's happening there. In fact, from checking just now, Photobucket has moved all their video URLs, so even video wouldn't be parsing properly at the moment. Do you possibly have another modifications installed that affects URLs?

I don't believe I have, but I'll take a good look at it it tonight..

Thanks for the reply, much appreciated!

Cheers,
Dave

gabrielt
08-01-2013, 09:38 PM
Same issue here:

Can not save Import because of the following error(s):
Some keys are empty
Some keys contain invalid characters and must be validated prior to import.

I tried checking only a few of the definitions; it says "imported like a charm," however the new definitions don't show up under "Display Definitions." HELP.

Jamey
08-10-2013, 01:16 AM
I can't get photobucket videos to work. Any ideas?

gabrielt
08-12-2013, 03:36 PM
FYI. GameSpot.com and Gametrailers.com changed the format of their links and the media definition file must be updated by the maintainer. Thank you.

Jamey
08-13-2013, 05:22 PM
Same with Photobucket

ayman1204
08-21-2013, 11:47 AM
thanks to u man
its great mod

i would like to suggest this video sharing website to add it in next version

http://allmyvideos.net
http://vidbull.com/
http://www.videoweed.es
http://billionuploads.com

finely
thanks to u
Mark as Installed
5 stars

viper357
09-02-2013, 07:32 AM
Hey Jedi, we are having an issue updating the XML file for a site that is running 3.8.X and AME 2.5.6. We are trying to import all from latest XML delta file and keep getting the error:


Can not save Import because of the following error(s):

Some keys are empty
Some keys contain invalid characters and must be validated prior to import.


We've delete all the definitions from the AME table, uninstalled and reinstalled the AME plugin but keep getting the same error. Any suggestions?

Same issue here:



I tried checking only a few of the definitions; it says "imported like a charm," however the new definitions don't show up under "Display Definitions." HELP.Same issue here, deleted all definitions, uninstalled then re-installed main mod, but this definitions pack now refuses to install, on vb 3.8.5

viper357
09-02-2013, 07:48 AM
Time for another edition of...

|[ Friday Night Definitions ]|

|[ Friday Night Definitions ]|
Yes, I know it's Saturday. But like they say, it's always Friday somewhere in the world....wait...The xml's from those two posts import fine, but the latest xml in the first post of this thread does not import. :(

sweptwingnut
09-06-2013, 06:04 PM
Installed 3.8.7pl3. Works great!

sweptwingnut
09-08-2013, 07:28 PM
Photos from flickr do not appear to be working

jasculs
09-17-2013, 06:36 PM
**Nevermind, problem fixed**

Digital Jedi
09-20-2013, 12:15 AM
I'm working on an update for the last few reported websites. As I've mentioned before, when you post that a site isn't working, you should be specific about what isn't working, and post links to the various issues. Being very general means I have to go to the website and start testing the regexes myself, which if I can't find a problem with mine, I can't fix yours. And all those checks start to add up to hours wasted over time.

I cannot find any issues with CNBC. Flickr may just end up getting 86'd. Currently testing Photobucket, and I should be able to update it, but will have to drop support for older links. Will try to push this along to my Friday (Which is really Sunday) Night set of definitions.

SBlueman
09-24-2013, 04:48 AM
::crossing fingers for DailyMotion to work for us::

Digital Jedi
09-25-2013, 02:10 AM
::crossing fingers for DailyMotion to work for us::
The definition is still working on my end. Did you ever get to toggle your modifications to see if one (or all) was interfering?

Digital Jedi
09-27-2013, 08:29 PM
|[Friday Night Definitions]|
Friday Night Definitions on Friday? This could work.

UPDATED
Although I try my best to support older link structures, when those links are no longer valid or when embed capability is no longer possible, I remove that support from the definitions.


CNBC is back and boring-er than ever. (I kid CNBC.)

CNN includes Parts 1 & 2.

College Humor will include a legacy version for valid older links. Marked (Old)

Facebook also includes a legacy version and new links should start embedding using their iframe.

GameSpot has been split into two parts as well. You'll need to delete/disable any other GameSpot definitions you're using.

GameTrailers is packed into a single definition now. I nerfed my notes this time around, but I believe I had a GameTrailers (Old) in the previous definition. That one will need to be turned off or deleted.

Photobucket Videos and Direct Link have been updated to better support their goofy URL strings. However older Photobucket links will no longer work.

Vimeo was tweaked slightly to support https:// URLs.

Yahoo! moved all of their videos to a subdomain called screen, so this should help convert them now.



NEW

Storify will embed storify.com feeds in a post. Posted an example of this a while back, but made a mistake in the regex that should be corrected now.
146545

Yahoo! Finance was added separately because different data needs to be pulled to support those particular videos. Note that their may be some conflict with Finance Videos and Finance Articles. So your users may need to toggle AME parsing off depending on the situation.

Nook_Neformat
09-28-2013, 01:23 PM
Please, update definition for Rutube.

infnity8x3
10-09-2013, 02:49 AM
Open the definition with the key ebay3, and in the Regular expression field, put a colon right about here:
[\w&;:\#.%\?=]*

I want to make this edit but i don't have a ebay3 I think I installed all the updates

Digital Jedi
10-09-2013, 03:17 AM
I want to make this edit but i don't have a ebay3 I think I installed all the updates
That post is from 2011. There no longer is an Ebay 3 definition. It's not needed.

infnity8x3
10-09-2013, 04:29 AM
Unique Key = ebay

Regular expression = (http://[\w]+\.ebay\.com/[\w-]+/*[\w-]*/([\d]+)\?[\w&;\.%\#=-]+)

Replacement = <br />
<div style="padding:0; text-align:center; width:250px; margin-left:auto; margin-right:auto"" class="tborder">
<div style="background:#FFFFFF url('images/misc/ebay_logo.gif') no-repeat scroll center center; height:55px; width:250px">&nbsp;</div>
<div class="alt2" style="padding:10px">
<a href="$ameinfo[url]" title="$ameinfo[title]" target="_blank">
<img src="http://thumbs.ebaystatic.com/pict/$p2.jpg" alt="$ameinfo[title]" border="0" /></a></div>
<div class="thead"><a href="$ameinfo[url]" title="$ameinfo[title]" target="_blank">$ameinfo[title]</a></div>
</div>
<br />

Unique Key = ebay2

Regular expression = http://[\w]*\.ebay\.[comukdea.]+/[\w-]+/ebayisapi\.dll\?viewitem&[amp;]*item=([\d]+).*

Replacement = <br />
<div style="padding:0; text-align:center; width:250px; margin-left:auto; margin-right:auto"" class="tborder">
<div style="background:#FFFFFF url('images/misc/ebay_logo.gif') no-repeat scroll center center; height:55px; width:250px">&nbsp;</div>
<div class="alt2" style="padding:10px">
<a href="$ameinfo[url]" title="$ameinfo[title]" target="_blank">
<img src="http://thumbs.ebaystatic.com/pict/$p1.jpg" alt="$ameinfo[title]" border="0" /></a></div>
<div class="thead"><a href="$ameinfo[url]" title="$ameinfo[title]" target="_blank">$ameinfo[title]</a></div>
</div>
<br />

They are what i have and

http://www.ebay.com/itm/LE-TOOTER-Poop-poo-fart-Pooter-1-MILLION-BILL-/350467822104

Is only a clickable link. Any thing you can help me with?

Digital Jedi
10-09-2013, 11:33 PM
They are what i have and

http://www.ebay.com/itm/LE-TOOTER-Poop-poo-fart-Pooter-1-MILLION-BILL-/350467822104

Is only a clickable link. Any thing you can help me with?

eBay is one of the next things I'll need to update, since I've discovered a better method of displaying items. But for now, try replacing your Regular Expression in the standard eBay definition with:

http://[\w]+\.ebay\.com/[\w-]+/*[\w-]*/[\d]+/?[\w\?&;\.%\#=-]*

infnity8x3
10-10-2013, 04:01 AM
thank you! awesome it works. your the man.

Digital Jedi
10-15-2013, 04:55 AM
For those wondering, DJ's AME 2.5.7 was released today, with expanded AME functionality. That means that soon you'll see a whole new set of definitions that take advantage of this new feature. So stay tuned!

Digital Jedi
10-15-2013, 06:54 AM
Oh yeah, I almost forgot. Those having trouble importing the Master XML file will probably still experience the same issues on 2.5.7. This doesn't appear to be a product problem, but a server one. Mainly being the Master XML has simply gotten too large. I'll address this problem in the next definitions update.

Digital Jedi
10-22-2013, 03:28 PM
]|TUESDAY MORNING DEFINITIONS|[
Because that can be a thing, too


In case you missed the email notification, the incessant thread bumping or the skywriting in every major city, AME 2.5.7 is out, and you can grab it here:


AME 2.5.7 includes two new advanced option called Extra Head Tag Code and Extra Body Tag Code. One of the problems I always had with making definitions, is that some websites required an extra snippet of code, such as JavaScript, in either the <head> or <body> tags of your website. I couldn't put the code in the definitions if it was required in the head tags, and even then, the code could only appear once per page. So your only other option would have been to edit one or more of your templates. That didn't seem like an elegant solution. So in AME 2.5.7, I've included these two extra fields where you can add this extra code, and AME will insert it automatically into the proper templates. No need for editing. No need to edit multiple styles.

So here's a handful of definitions I worked out that use the new feature, just to get you started...


NEW :: EXTRA CODE

Google+ Profiles, Pages, Posts and Communities :: Each of those can now be embedded in a post using the collection of Google+ definitions in this update. But be sure to include the extra JavaScript code necessary to make it work. Go to your Admin CP ?? AME CP ?? Advanced Options and paste it into your Extra Head Tag Code field:

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>


Pinterest Boards, Pins and Profiles :: My old definitions for Pinterest stopped working a while back, and even when they did work, they had to match up to 20 parameters just to work right. Not the most elegant of solutions, either. This new set of Pinterest definitions will embed Boards, Profiles and individual Pins using Pinterest's native widgets. Go to your Admin CP ?? AME CP ?? Advanced Options and paste the following JavaScript code into Extra Body Tag Code:

<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>


https://vborg.vbsupport.ru/external/2013/10/8.jpg




But wait, there's less!


I've included some new definitions and some updated definitions that use the regular old run of the mill functions you've come to know and love.


NEW

Kickstarter is the crowdfunding website that get's everything from that 500 foot robot snake I always dreamed about as a kid, to a feature-length Veroncia Mars movie it's funding. Two definitions are included where you can decide whether to embed a project's promo video, or it's widget.

Indiegogo widgets are available as well. Think of Indiegogo as the Garfunkle of crowdfunding websites.

Pastebin lets you share, well, pastes with other users. Now you can embed public pastes in a post. (Say that seven times real fast.)

To round out the social media goodness, you can now embed Facebook Posts and Pages in a thread. Note that the Facebook Pages definition will try to embed regular profiles and fail. So user your own discretion with that one.

ProProfs Brain Games host a series of puzzles, brain teasers and word games to keep you from doing your taxes, cooking dinner or feeding the baby, for hours on end. Now make your community as unproductive as you are and embed them in posts.



UPDATED

Just one, but it's a good one.

Remember eBay thumbnails? How about something a little more practical?

https://vborg.vbsupport.ru/external/2013/10/9.jpg



LOCAL HOSTED

In addition, I've updated the existing local hosted definitions, and composed a few more. For one, they should no longer require editing to support your website, they should work out of the box. Let me know if they don't. I added a little extra media support to a couple and just outright created some new ones. As usual, documents display using Google Drive's doc viewer, and I've extended some support to those as well. Check the READ ME file from the actual main post's ZIP folder for more info on some of those. In short, here's what you get:

DIVX (.divx, .mkv)
Flash (.swf)
HTML 5 Player (.ogg, .ovg, .webm)
MP3 (.mp3, mp2)
QuickTime (.mov, .mp4, .3gp)
RealMedia (.rm, .ram)
Windows Media (.wmv, .asx, .avi)
Documents (.pps, .pptx, .ppt, .pdf, .docx, .doc, .txt, .pages, .xlsx, .xls, .xps)
Graphic Files (.ai, .psd, .dxf, .tif, .tiff, .eps, .ps)
Markup/Code (See READ ME file: .css, .html, .cpp, .hpp, .h, .js, .c)


TROUBLE IMPORTING?

To address the issue some folks have been experiencing with definitions not importing (turns out, when I tested things, I too had the same issue), I've broken down the Master XML file into volumes. There are no more than 70 definitions per volume, as this seemed to be the uppermost limit the XMLs could have before I started getting the "missing keys" error. You can grab the volumes from the ZIP in the main post of this thread.


As always, let me know what you think, if it works, and post links if it doesn't. Enjoy!

Digital Jedi
10-22-2013, 08:49 PM
I started working on these last week, and I was wondering if there was any interest in definitions that embed TMDB.org (The Movie Database) data.

It's not finished yet, so this is kind of just a testing layout and the regexes still need perfecting. But you get the idea. It would likely be an admin/moderator only thing, because it would require an API key, and you would have to link to the API address for the movie, using your key, rather than the standard movie entry URL. But testing it out almost makes me think it would be worth it. Let me know what you think:


https://vborg.vbsupport.ru/external/2014/02/31.jpg

https://vborg.vbsupport.ru/external/2014/02/32.jpg

I'm looking into maybe making a modification version of this, maybe as an AME plugin. But I really wanted to gauge interest before going in too much depth.

sergio00
10-22-2013, 09:09 PM
Incredible Update!! Thanks for Don?t forget 3.8.X , The Best Vbulletin Version! :)

Gadget_Guy
10-22-2013, 09:59 PM
You are the best!

Nice work!

Importing now.

(Remember my httpS issue... anything I should do after importing?)

D.

Gadget_Guy
10-22-2013, 10:18 PM
Some Feedback:

Internal Linking - When I test this... it processes for a LONG time.

I just ended up disabling this

Also... ebay.ca does not work.

D.

Digital Jedi
10-23-2013, 02:28 AM
You are the best!

Nice work!

Importing now.


(Remember my httpS issue... anything I should do after importing?)


D.
I don't think there will be an issue with JavaScript widgets, but possibly with eBay since it embeds using <object> code. If they do provide secure URLs, you could see if adding in the "s" to the src="" urls (there should be two), helps out. This, of course, will only work if they provide secure URLs.


Some Feedback:

Internal Linking - When I test this... it processes for a LONG time.

I just ended up disabling this

Yeah, I think there's some kind of "feedback" issue there with the extraction process. Which is why I say to use at your discretion. I ended up just using the User Profile one, myself.


Also... ebay.ca does not work.

D.
That was an oversight on my part. Overwrote a dev version of the definition. Give me just a few to push out an update, as well as one to Google+. I just noticed an issue there.

Digital Jedi
10-23-2013, 03:31 AM
Actually, let me get that to you guys tomorrow. Sorry for the delay. Just something came up unexpectedly.

Gadget_Guy
10-23-2013, 07:50 PM
Take your time Mark,

We all appreciate all the effort you are putting into this project.

I will watch the thread for an update.

D.

Digital Jedi
10-24-2013, 07:58 AM
Sorry that took so long. Was not expecting Google+ to give me so much trouble. There's an additional Google+ definition added to the previous set, and all the others have been updated. Keep in mind that Google+ Posts definitions only work on Public Posts. I previously had a method that accounted for that, but it was causing it to fail if the URL was a redirect. So I had to remove the validation token. Still trying to find a workaround for that issue.

Also got the correct eBay definition in there this time. This should embed any eBay top level domain.

I added all of these back to my previous update post in a new ZIP folder.

Gadget_Guy
10-24-2013, 11:31 AM
I installed the update.

ebay still not working for me.

D.

Digital Jedi
10-24-2013, 11:35 AM
I installed the update.

ebay still not working for me.

D.
Can I see an example of some of the links you've been trying?

Gadget_Guy
10-24-2013, 11:44 AM
I PM'd you from my site with a link to the section I have been using for testing.

Only you have access.

D.

Digital Jedi
10-24-2013, 12:35 PM
It needed a minor tweak. Try downloading it again and let me know if this works for all URLs.

In a way it was a good thing the link didn't work, because upon re-saving the update, I saw that this time I added the wrong Google+ definitions to the update. So I had to re-add those, as well. I should try sleeping. I hear it assists with problems like these.

Gadget_Guy
10-24-2013, 01:06 PM
Thanks!

D.

Gadget_Guy
10-24-2013, 01:13 PM
Just something I noticed,

When importing updated definitions, the wording may want to be addressed (or maybe the function).

It had me scratching my head a bit and thought maybe others might be confused as well.

When importing a new definition file (like you posted today) (2013-10-24-Updates.xml) you get warnings as per the screenshot.


Now.... my questions are:

1) Will that warning only come up when the definition is the exact same or what happens if you want the definition to update because of a change in code?

2) before checking the box "import" do I need to delete the definition first from the list of installed definitions to prevent an error like it says?


Would it make sense to add another column next to "IMPORT" called "UPDATE" if you want the old definition to be over-written by a new definition?



Just some food for thought on a Thursday... ;)


D.

Digital Jedi
10-25-2013, 12:52 AM
Just something I noticed,

When importing updated definitions, the wording may want to be addressed (or maybe the function).

It had me scratching my head a bit and thought maybe others might be confused as well.

When importing a new definition file (like you posted today) (2013-10-24-Updates.xml) you get warnings as per the screenshot.


Now.... my questions are:

1) Will that warning only come up when the definition is the exact same or what happens if you want the definition to update because of a change in code?

2) before checking the box "import" do I need to delete the definition first from the list of installed definitions to prevent an error like it says?


Would it make sense to add another column next to "IMPORT" called "UPDATE" if you want the old definition to be over-written by a new definition?



Just some food for thought on a Thursday... ;)


D.
Yes, the AME keys were introduced in 2.5 because in the early days of AME, people repeatedly forgot to delete their default YouTube def once they imported a custom one. Then they'd report duplicate video and truncated code in posts. So with unique keys, if you get duplicate keys during import, that means there's already a definition in your set with that same key. The red marked ones won't import until you delete the one with the matching key first, since the import process is only capable of creating new entries.

I thought about changing the import process, if technically possible, to allow for an overwrite. What concerns me is if overwriting robs you of the chance to make a backup, if you can't quite remember in the Import screen if a particular def has been locally customised. Of if you're importing a custom def from some other source where the key set is the same as something you don't want overwritten. (Since the key designation is arbitrary. You call it whatever you want.)

Gadget_Guy
10-26-2013, 09:26 PM
Any chance you could create a definition for Facebook Photo Albums?

D.

Digital Jedi
10-26-2013, 09:37 PM
I think the URL is unique enough that it could work. It would depend on if the information is public or not. If you have to big logged in to Facebook to see most albums, it might not be viable. But I can give it a try.

lowlight
11-14-2013, 08:44 AM
Any chance at adding twitch.tv? With consoles streaming it directly, it's going to be pretty popular I think

Digital Jedi
11-14-2013, 07:10 PM
Any chance at adding twitch.tv? With consoles streaming it directly, it's going to be pretty popular I think
At first glance, it looks like it's possible. I'll put it in my requests list.

lowlight
11-23-2013, 03:48 AM
Thanks! Also Vine would be great too

https://vine.co/v/bjHh0zHdgZT/embed

Tourmeister
11-27-2013, 08:10 PM
Well, my search fu may be weak, but I have not been able to find in this thread any info about how to modify the replacement code for amazon links so that they include an affiliate ID. I have the mod installed and it seems to be working fine, taking the link showing in the address bar of any amazon product page and adding the little amazon icon with a link and the product description with a link.

For instance, here is a page I would like to link to,

http://www.amazon.com/RAM-Universal-X-Grip-Holder-1-Inch/dp/B0055PH0XA/ref=pd_bxgy_e_img_y


Here is the regular expression given in the definition,

http://[a-z\.]*?amazon\.([a-z\.]*)/([\d\w_\-]*)/?([product|dp|asin]+/[\d\w]+)(?:.*)

and here is the replacement expression,

<a href="http://www.amazon.$p1/$p2/$p3/" target="_blank" title="$ameinfo[title]"><img src="images/misc/amazon_icon.gif" border="0" alt="$ameinfo[title]" /></a> <a href="http://www.amazon.$p1/$p2/$p3/" target="_blank" title="$ameinfo[title]">$ameinfo[title]</a>


The associate id has this format "&tag=XXXXX-20" in links that work with Amazon. I can't figure out how to modify that replacement expression to include the id... I am sure it is something simple, but I don't know how all this RegEx stuff works. I would very much appreciate any help!

Tourmeister
11-27-2013, 08:46 PM
I think I got it.

The id has to be "?tag=XXXXX-20" and that gets stuck right after the $p3/ and still inside the quote for both places where the link shows. I tested it and then took the changed link to the Amazon site to verify that it works with their link checker.

Tourmeister
11-27-2013, 08:48 PM
Last question...

If I understand this correctly, the AME makes the change to the link right when the post is created. It does not occur on the fly every time a post with a link is viewed. If that is correct, is there a way to make this retroactive, meaning that it will change amazon links for old posts/threads on my forum?

Digital Jedi
11-28-2013, 11:44 PM
I think I got it.

The id has to be "?tag=XXXXX-20" and that gets stuck right after the $p3/ and still inside the quote for both places where the link shows. I tested it and then took the changed link to the Amazon site to verify that it works with their link checker.
Yes, you got it. You just append your ID string to the URLs in the Replacement HTML as you would a regular link.

Last question...

If I understand this correctly, the AME makes the change to the link right when the post is created. It does not occur on the fly every time a post with a link is viewed. If that is correct, is there a way to make this retroactive, meaning that it will change amazon links for old posts/threads on my forum?
Not in the case of regular links. With videos, you can rebuild old BBCode that was specially set aside for that purpose. For instance [YOUTUBE] BBCode can be rebuilt to use [AME] BBCode instead. But it's likely you didn't have a specialized BBCode tag set aside for Amazon links. You likely just posted links as normal. And you certainly wouldn't want AME replacing all your [URL] tags. :)

Any older links you wanted to reflect the new edits to your definition would require them being edited and resaved.

Tourmeister
11-29-2013, 06:41 PM
Yes, you got it. You just append your ID string to the URLs in the Replacement HTML as you would a regular link.


Not in the case of regular links. With videos, you can rebuild old BBCode that was specially set aside for that purpose. For instance [YOUTUBE] BBCode can be rebuilt to use [AME] BBCode instead. But it's likely you didn't have a specialized BBCode tag set aside for Amazon links. You likely just posted links as normal. And you certainly wouldn't want AME replacing all your [URL] tags. :)

Any older links you wanted to reflect the new edits to your definition would require them being edited and resaved.

Well, I dug up some old threads that I knew had posts with Amazon links in them. The links now have my ID appended to them. I have no clue how this works, but it appears that even old links are being changed. I even copied a few of them and used the "link checker" that Amazon provides to make sure they were valid links.

Digital Jedi
12-01-2013, 06:15 AM
Well, I dug up some old threads that I knew had posts with Amazon links in them. The links now have my ID appended to them. I have no clue how this works, but it appears that even old links are being changed. I even copied a few of them and used the "link checker" that Amazon provides to make sure they were valid links.
I've run into this before, too. It seems like it doesn't consistently do that. But my testing has not been done extensively with the AME cache off, so that may be where my random experiences come from. I'm glad it appears to be working, though.

Nook_Neformat
12-17-2013, 08:10 PM
Digital Jedi, you are awesome, thank you for your job.

Are there any way to update rutube?

rutube

http://rutube.ru/video/daf5fb1a771000c4d99cf86562cde689/

<iframe width="720" height="405" src="//rutube.ru/video/embed/6713345" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowfullscreen></iframe>

Also, is Divshare lost forever? Does Justin.tv needs an update? And i would like to see Twitch too.

Digital Jedi
12-17-2013, 09:24 PM
I'll look into all of those on the next update. It'll be a little delayed, but I'll get to them. I may be able to safley open back up the request forum. So stay tuned.

I don't, off the top of my head, remember why I removed Divshare. Normally that happens when the site's embed code become too broad for AME to handle. But I'll look at them again and let you know.

Tourmeister
12-18-2013, 06:07 PM
Howdy,

Having problems with Amazon links again... Not sure why.

Original link posted on forum,
http://www.amazon.com/dp/B009I2BRUS/

Or this one,
http://www.amazon.com/dp/B009I2BRUS/ref=wl_it_dp_o_pC_nS_ttl?_encoding=UTF8&colid=1EEVRNXUZ4YUI&coliid=IKWF6MS36PJLJ

SHOULD get changed to

http://www.amazon.com/dp/B009I2BRUS/?tag=twtwhetex-20

But it is messing up. The "/dp/" part of the original link is getting an extra / stuck in it so that it becomes "/d/p/", and that screws up the link. I have NO CLUE how the replacement stuff works :giveup:

Here is the regular expression
http://[a-z\.]*?amazon\.([a-z\.]*)/([\d\w_\-]*)/?([product|dp|asin]+/[\d\w]+)(?:.*)

and here is the replacement code
<a href="http://www.amazon.$p1/$p2/$p3/?tag=twowhetex-20" target="_blank" title="$ameinfo[title]"><img src="images/misc/amazon_icon.gif" border="0" alt="$ameinfo[title]" /></a> <a href="http://www.amazon.$p1/$p2/$p3/?tag=twowhetex-20" target="_blank" title="$ameinfo[title]">$ameinfo[title]</a>

Any chance you know what is inserting that extra "/"?

Thanks.

Digital Jedi
12-19-2013, 09:06 PM
Howdy,

Having problems with Amazon links again... Not sure why.

Original link posted on forum,
http://www.amazon.com/dp/B009I2BRUS/

Or this one,
http://www.amazon.com/dp/B009I2BRUS/ref=wl_it_dp_o_pC_nS_ttl?_encoding=UTF8&colid=1EEVRNXUZ4YUI&coliid=IKWF6MS36PJLJ

SHOULD get changed to

http://www.amazon.com/dp/B009I2BRUS/?tag=twtwhetex-20

But it is messing up. The "/dp/" part of the original link is getting an extra / stuck in it so that it becomes "/d/p/", and that screws up the link. I have NO CLUE how the replacement stuff works :giveup:

Here is the regular expression
http://[a-z\.]*?amazon\.([a-z\.]*)/([\d\w_\-]*)/?([product|dp|asin]+/[\d\w]+)(?:.*)

and here is the replacement code
<a href="http://www.amazon.$p1/$p2/$p3/?tag=twowhetex-20" target="_blank" title="$ameinfo[title]"><img src="images/misc/amazon_icon.gif" border="0" alt="$ameinfo[title]" /></a> <a href="http://www.amazon.$p1/$p2/$p3/?tag=twowhetex-20" target="_blank" title="$ameinfo[title]">$ameinfo[title]</a>

Any chance you know what is inserting that extra "/"?

Thanks.
It's a problem with the regex match. I'll have to look at Amazon URLs again. See if something has to be done for newer links that have been simplified.

CoffeeLovesYou
12-21-2013, 01:22 AM
Possible to get Twitch definitions?
We run a gaming forum and Twitch streams are very popular.

Thanks much! ♥

Digital Jedi
12-24-2013, 09:00 PM
I'm going to open up the request forum temporarily. Not sure how this will work with my new forum setup, but I'm willing to give it a try.

Please forward all requests to this area. This is the sure fire-est way for me to remember what to add to AME next: http://www.cogonline.net/forums/forumdisplay.php?f=880

Digital Jedi
02-01-2014, 03:07 PM
So I never got any feedback on this idea...

I started working on these last week, and I was wondering if there was any interest in definitions that embed TMDB.org (The Movie Database) data.

It's not finished yet, so this is kind of just a testing layout and the regexes still need perfecting. But you get the idea. It would likely be an admin/moderator only thing, because it would require an API key, and you would have to link to the API address for the movie, using your key, rather than the standard movie entry URL. But testing it out almost makes me think it would be worth it. Let me know what you think:


https://vborg.vbsupport.ru/external/2014/02/31.jpg

https://vborg.vbsupport.ru/external/2014/02/32.jpg

I'm looking into maybe making a modification version of this, maybe as an AME plugin. But I really wanted to gauge interest before going in too much depth.

jl255
03-10-2014, 01:45 AM
So I never got any feedback on this idea...

YES PLEASE!!!

On a related note, the Facebook Videos definition does not seem to be working properly. It also doesn't take links with https.

And even with http, there is an additional box displayed and some error message.

Digital Jedi
03-11-2014, 12:28 AM
YES PLEASE!!!

On a related note, the Facebook Videos definition does not seem to be working properly. It also doesn't take links with https.

And even with http, there is an additional box displayed and some error message.
I'll look into that. Facebook URLs are usually pretty stable. Can you show me the particular links you're having trouble with?

lowlight
03-11-2014, 12:30 AM
Hi, could you please add Instagram?

Embed code looks like this:

<iframe src="//instagram.com/p/bNTUnwB0Kw/embed/" width="612" height="710" frameborder="0" scrolling="no" allowtransparency="true"></iframe>

Digital Jedi
03-12-2014, 09:22 PM
Hi, could you please add Instagram?

Embed code looks like this:

<iframe src="//instagram.com/p/bNTUnwB0Kw/embed/" width="612" height="710" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
Sure, I actually have them on a list I was compiling for the next update.

Gabe505
03-17-2014, 03:00 AM
I have a large forum, is there anything i can do to install this addon?

It freezes up my server and I cant get it installed. I guess what I'm asking is there any server tweaks I can do to help me out..

Any advice would be great! :D

Digital Jedi
03-18-2014, 07:41 PM
You shouldn't really be experiencing a delay importing definitions because of your forum size. The size of the definitions file, on the other hand, can be an issue. Have you tried importing smaller groups?

Gadget_Guy
03-28-2014, 05:25 PM
Hey Mark,

Google Maps seems to no longer work.

It looks like they changed from the old schema of: maps.google to google.com/maps/

D.

lowlight
03-29-2014, 04:10 PM
Sure, I actually have them on a list I was compiling for the next update.
That's great! How about Gfycat? It's a great alternative to GIF sharing.

You can view the embed code here (http://gfycat.com/FarawayPrestigiousAmericanbittern) (hover over the video, and click "Links")

Digital Jedi
04-03-2014, 03:04 AM
That's great! How about Gfycat? It's a great alternative to GIF sharing.

You can view the embed code here (http://gfycat.com/FarawayPrestigiousAmericanbittern) (hover over the video, and click "Links")
Looks like it should work. I can put it on the list, too.

yotsume
04-04-2014, 08:55 PM
Is there a way to turn off related videos for the standard Youtube definition that comes with the mod?

Digital Jedi
04-04-2014, 09:08 PM
Is there a way to turn off related videos for the standard Youtube definition that comes with the mod?
You'd have to look at YouTube's embed code and apply something like what's demoed here: http://illuminea.com/remove-related-videos-from-end-of-embedded-youtube-video/

BlackxRam
07-13-2014, 11:03 PM
Digital Jedi,

Is Twitch.tv integration possible? Since they have a Stream and Live chat embed options available, something like this would be GREAT

J4CKT
10-14-2014, 04:25 AM
Hi DJ,

I don't see played.to in the list of supported sites, is it possible to create a definition for it?

Here is a sample url:

"http://played.to/embed-0o851trj4sft-640x360.html"

Any help is greatly appreciated.

m7sen
01-09-2015, 09:35 AM
hi

can u support keek, instagram, twitter videos

and those
m4a,m4v,amr,wav,wma,mpeg,mpg,fla

Digital Jedi
01-10-2015, 05:58 AM
I'm not exactly back in full force yet. But I am working towards that. Please make additional website requests at the URL in the first post.

Registration is not required. However, after all these years, someone decided to direct a spam bot to my No Registration area. This has forced me to password protect this forum, as I wish for it to remain registration free. Copy and Paste the following password for entry:

LetMeIn#33

m7sen
03-16-2015, 12:36 PM
I'm not exactly back in full force yet. But I am working towards that. Please make additional website requests at the URL in the first post.

Registration is not required. However, after all these years, someone decided to direct a spam bot to my No Registration area. This has forced me to password protect this forum, as I wish for it to remain registration free. Copy and Paste the following password for entry:

LetMeIn#33

i have problem with mp3 amd vedio
its not work in mobile ipohne 6 in safari browser

karabaja3
04-20-2015, 02:58 PM
The Automatic Media Embeding System definitions seems not to be working for eBay anymore. :(
I'm using 2.5.6 on vB 3.8

Here's the current replacment. Does anyone know hot to fixit? I've tryed several times by now without luck (or knowledge).

Regular expression:

http://[\w]+\.ebay\.[\w\.]{2,6}/[\w-]+/*[\w-]*/([\d]+)\??[\w&;\.%\#=-]*

Replacement

<object width="400" height="338">
<param name="movie" value="http://togo.ebay.com/togo/togo.swf?2008013100" />
<param name="flashvars" value="base=http://togo.ebay.com/togo/&lang=en-us&mode=normal&itemid=$p1" />
<embed src="http://togo.ebay.com/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="400" height="338" flashvars="base=http://togo.ebay.com/togo/&lang=en-us&mode=normal&itemid=$p1"></embed>
</object>

Thanks for reply.

m7sen
05-04-2015, 08:47 AM
The Automatic Media Embeding System definitions seems not to be working for eBay anymore. :(
I'm using 2.5.6 on vB 3.8

Here's the current replacment. Does anyone know hot to fixit? I've tryed several times by now without luck (or knowledge).

Regular expression:

http://[\w]+\.ebay\.[\w\.]{2,6}/[\w-]+/*[\w-]*/([\d]+)\??[\w&;\.%\#=-]*

Replacement

<object width="400" height="338">
<param name="movie" value="http://togo.ebay.com/togo/togo.swf?2008013100" />
<param name="flashvars" value="base=http://togo.ebay.com/togo/&lang=en-us&mode=normal&itemid=$p1" />
<embed src="http://togo.ebay.com/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="400" height="338" flashvars="base=http://togo.ebay.com/togo/&lang=en-us&mode=normal&itemid=$p1"></embed>
</object>

Thanks for reply.

i think the problem from http://togo.ebay.com/ its does not work now

Gabe505
07-30-2015, 09:59 PM
Anyone having problems with soundcloud? I can't get it to work.

vb3.8.8 AME 2.5.7

yotsume
08-29-2015, 09:33 PM
Can you please update the TED.com video definition. It is not working for me.

pmkb
09-05-2018, 11:08 AM
So I'm still running sites on vB 3.x and using this mod. I'm in the process of moving my sites from http:// to https://. Doing so breaks the youtube embedding iframe. I updated the iframe definitions for the youtube entries from http:// to https:// and now the embedding works for any new posts. Is there any way to force the system to "reprocess" old posts so the embedding code gets updated, or do I have to manually edit and save all old posts that have youtubes in them?

pmkb
09-05-2018, 11:16 AM
Nevermind... I found it...

ACP > Maintenance > Update Counters > Rebuild Post Cache

m7sen
09-05-2018, 01:05 PM
does this still work

I need it