vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest... (https://vborg.vbsupport.ru/showthread.php?t=195884)

Digital Jedi 10-24-2013 11:35 AM

Quote:

Originally Posted by Gadget_Guy (Post 2455826)
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

1 Attachment(s)
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

Quote:

Originally Posted by Gadget_Guy (Post 2455862)
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

Quote:

Originally Posted by lowlight (Post 2460608)
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,

Code:

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,

Code:

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

Code:

<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

Quote:

Originally Posted by Tourmeister (Post 2464183)
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.

Quote:

Originally Posted by Tourmeister (Post 2464184)
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

Quote:

Originally Posted by Digital Jedi (Post 2464441)
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

Quote:

Originally Posted by Tourmeister (Post 2464640)
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/daf5fb1a77100...cf86562cde689/

<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,
Code:

http://www.amazon.com/dp/B009I2BRUS/
Or this one,
Code:

http://www.amazon.com/dp/B009I2BRUS/ref=wl_it_dp_o_pC_nS_ttl?_encoding=UTF8&colid=1EEVRNXUZ4YUI&coliid=IKWF6MS36PJLJ
SHOULD get changed to

Code:

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
Code:

http://[a-z\.]*?amazon\.([a-z\.]*)/([\d\w_\-]*)/?([product|dp|asin]+/[\d\w]+)(?:.*)
and here is the replacement code
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

Quote:

Originally Posted by Tourmeister (Post 2469285)
Howdy,

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

Original link posted on forum,
Code:

http://www.amazon.com/dp/B009I2BRUS/
Or this one,
Code:

http://www.amazon.com/dp/B009I2BRUS/ref=wl_it_dp_o_pC_nS_ttl?_encoding=UTF8&colid=1EEVRNXUZ4YUI&coliid=IKWF6MS36PJLJ
SHOULD get changed to

Code:

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
Code:

http://[a-z\.]*?amazon\.([a-z\.]*)/([\d\w_\-]*)/?([product|dp|asin]+/[\d\w]+)(?:.*)
and here is the replacement code
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...

Quote:

Originally Posted by Digital Jedi (Post 2455395)
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

Quote:

Originally Posted by Digital Jedi (Post 2478403)
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

Quote:

Originally Posted by jl255 (Post 2486139)
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:

Code:

<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

Quote:

Originally Posted by lowlight (Post 2486302)
Hi, could you please add Instagram?

Embed code looks like this:

Code:

<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

Quote:

Originally Posted by Digital Jedi (Post 2486789)
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 (hover over the video, and click "Links")

Digital Jedi 04-03-2014 03:04 AM

Quote:

Originally Posted by lowlight (Post 2490257)
That's great! How about Gfycat? It's a great alternative to GIF sharing.

You can view the embed code here (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

Quote:

Originally Posted by yotsume (Post 2491535)
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-...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:

Code:

LetMeIn#33

m7sen 03-16-2015 12:36 PM

Quote:

Originally Posted by Digital Jedi (Post 2531620)
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:

Code:

LetMeIn#33

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


All times are GMT. The time now is 09:15 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
  • Page Generation 0.02898 seconds
  • Memory Usage 1,862KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (17)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete