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)
-   -   Major Additions - AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs (https://vborg.vbsupport.ru/showthread.php?t=202476)

nektar 11-25-2010 07:25 AM

Hi everyone.

I'm having a javascript error in internet explorer 8 at this line.

PHP Code:

<!-- / icons and login code -->

<
script type="text/javascript">ame_toggle_view({,other 'true',post 'true',blog 'true',group 'true',vm 'true',sig 'true'});</script

The product works fine but I hate to see javascript errors in explorer status bar.

Are you guys having the same problem? I'm running 3.8.5 and the latest ame 2.5.6

Edit:

If I disable this plugin the error goes away.

PHP Code:

AME Permission  Hide 

Does anyone know what this plugin does?

BirdOPrey5 11-25-2010 12:05 PM

I'm pretty sure that plugin "Hides" (or disables) AME for usergroups who aren't allowed to use it- if for some reason you disabled it for some users. I know one site for example where they disable it for guests.

BirdOPrey5 11-29-2010 11:17 PM

I wonder if it would be possible to make a definition that would work for any web site and pull the "title" of the site and put it as the link, so instead of:
https://vborg.vbsupport.ru/index.php
you'd get
vBulletin.org Forum

Otherwise is there some way to make this work nicely with this existing mod?
https://vborg.vbsupport.ru/showthread.php?t=189658

It works but the titles on youtube videos become full URL's instead of titles with both mods enabled.

carsafety 12-01-2010 11:46 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2116214)
I'm using this but it's pretty standard I think.

Regular Expression:
Code:

http://www\.amazon\.[a-z\.]*/[\w%-]*/[\w]+/([\w]+).*
Replacement:

Code:

<a href="$ameinfo[url]?tag=joesultofftop-20" target="_blank" title="$ameinfo[url]"><img src="images/misc/amazon_icon.gif" border="0" alt="$ameinfo[title]" />$ameinfo[title]</a>
Replace my affiliate code (in red) with your own.

Okay I think I have found the problem. If you take a shortened Amazon link, like those you get from a Google search, it works just fine. The syntax is usually http://www.amazon.com/product-name-here/dp/JDISHIOEHO and AME turns it into http://www.amazon.com/product-name-h...filiatecode-20 . This validates using Amazon link checker just fine.

The problem arises if you use a longer Amazon link, like the ones you get when you search for an item at Amazon.com. These URLs already have a question mark in them, like ?ie=UTF8&blahblah . If you copy that, the AME appends ?tag=youraffilaitecode-20 to the end of the URL. This will not validate using the Amazon link checker, presumably because two question marks appear in the URL.

You can make it validate by appending &tag=youraffiliatecode-20 to the end of the URL instead. The problem is this syntax will not validate with the shorter URL format you might copy off Google.

All is fine if you are the only one putting Amazon links on your forum, but of course you want it to automatically append the right tag for whatever type of Amazon link a user might post.

Anyone handy with definitions have an idea on how to use ?tag= for shorter Amazon links and &tag= for the longer types that have a ? in the URL already? Maybe two separate ones?

One possible idea is that you append this to the end of any url ?tag=youraffiliatecode-20&tag=youraffiliatecode-20 . This seems like it works in limited testing, but I'm not all that familiar with AME definitions and Amazon URL formats to say for sure. Sometimes redundancy is good, sometimes it is not...

BirdOPrey5 12-02-2010 12:48 AM

If what you say is true I would make the replacement link always have an ?= even if it's a dummy value it should just be ignored, ?dummy=5... then the &tag=affiliatecode should always work. I don't know if this would pass the amazon link checker but it should work in practice.

Digital Jedi 12-02-2010 08:08 PM

A number of these previous questions, which I would specify if I had a little more time today, are somewhat rectified if you use the up-to-date definitions in the add-on thread. The default definitions for AME have not been valid or updated in quite some time. I try my best to keep mine up to date, even though that tough in all cases.

Digital Jedi 12-02-2010 08:10 PM

Quote:

Originally Posted by legatw (Post 2117945)
on forum add a lot of youtube videos is to use this mod, or make better use of bbсode?

Quote:

Originally Posted by BirdOPrey5 (Post 2118014)
I couldn't imagine there would be much of a difference between this mod and a bb code- both are using search and replace algorithms.

I wanted to comment on this one real quick. Actually, yes, there's a big difference. BBCode uses more resources when a page is generated than AME does. This is explained somewhat in the description, but simplistically, this is less server intensive.

carsafety 12-02-2010 11:27 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2128188)
If what you say is true I would make the replacement link always have an ?= even if it's a dummy value it should just be ignored, ?dummy=5... then the &tag=affiliatecode should always work. I don't know if this would pass the amazon link checker but it should work in practice.

From my testing today, the combined tag I posted works best. It validated in every case that I tried, including some links that get passed to the redirected mobile Amazon site on phones. That's not conclusive, but so far, so good.

Quote:

Originally Posted by Digital Jedi (Post 2128533)
A number of these previous questions, which I would specify if I had a little more time today, are somewhat rectified if you use the up-to-date definitions in the add-on thread. The default definitions for AME have not been valid or updated in quite some time. I try my best to keep mine up to date, even though that tough in all cases.

I think the definition BirdOfPrey posted back a page or two was the one from your definitions and it was far superior to the default one if I recall correctly (thanks!). Of course, if you updated it recently, perhaps your most current one solves the issue another way?

lafsunlmtd 12-03-2010 01:26 PM

This worked for me for a while and now has stopped working? I'm using 2.5.6

Edit: I cleared cache and now it works

Digital Jedi 12-03-2010 03:07 PM

Quote:

Originally Posted by carsafety (Post 2128611)
From my testing today, the combined tag I posted works best. It validated in every case that I tried, including some links that get passed to the redirected mobile Amazon site on phones. That's not conclusive, but so far, so good.



I think the definition BirdOfPrey posted back a page or two was the one from your definitions and it was far superior to the default one if I recall correctly (thanks!). Of course, if you updated it recently, perhaps your most current one solves the issue another way?


Any issues with that, please direct towards my thread and I'll try to address them.


All times are GMT. The time now is 06:32 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.02582 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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