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 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?


All times are GMT. The time now is 05:08 AM.

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.03947 seconds
  • Memory Usage 1,751KB
  • 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
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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