![]() |
BTW. If anyone is using AME and has the definition file... whoever submitted the Amazon re-write for that is hijacking your affiliate earnings.
|
Quote:
What's AME? |
Quote:
And these are the definitions: https://vborg.vbsupport.ru/showthread.php?t=195884 And someone with an Amazon affiliate of "citofgamonlco-20" is hijacking the earnings. And you can see that here from the number of vBulletins he is earning from: http://www.google.co.uk/search?q=citofgamonlco-20 |
Quote:
|
Okay, I have this working, somewhat, under 3.8.1 PL1 using the hack to get multi-level domains, but the problem is, it is adding my affiliate IDs to all the URLs other than my my two multilevel domain affiliate IDs for Amazon UK and Amazon Japan.
I think it may have something to do with the preg_match section, which I keep trying to tweak to get working, but to no avail. Maybe someone here can help me out? Here's the code as I am using, with my affiliate IDs redacted: PHP Code:
|
And now I'm getting this error message:
Quote:
|
One more update, this plugin also won't work on URLs in the Calendar. So, to sum up, it won't work for the multi-level .uk and .jp domains, and it won't add the affiliate ID's to URLs posted in the Calendar -- that's where I'm at with this on a 3.8.1 PL1 board using the hack for mutli-level domains.
|
Can't get it to work on 3.7.2. The preg_match looks for the ASIN number, correct? If so, then the format of Amazon's link shouldn't matter, if the ASIN appears as below:
http://www.amazon.com/No-Line-Horizo...3921433&sr=1-1 |
I now have 3.8.2 installed and the status is still the same for me with this plugin -- it won't work for .uk and .jp multilevel domains or in te VB calendar.
|
For now, I've disabled the plugin. When I get time, I may dissect the function and toss out some variables to see how it is working.
(EDIT: Disregard the following...my error...) For the .co.uk and .co.jp domains, I need those as well. I know that the regex for (co\.uk|co\.jp|de|com|ca) should work (syntax looks correct, and the dots are escaped properly), but I wonder how the script is parsing the $associate_id_co_uk and $associate_id_co_jp variable names, as they have one extra set of underscore and characters than the others. I wonder if that's where the problem lies...? That's why I want to look into the function more to see how it is setting the variables, if only for me to understand how it works overall. It's the regular expressions I sometimes get hung up on. |
Never mind that last bit above--I am now using the modified version of the plugin's PHP file above (post #85 by Hidden Gamma), and I see the modified lines. (I had manually made changes, but missed two lines.) So the regex is fine as is.
Nonetheless, I ran the plugin as a regular PHP file (removed the function syntax), assigned $text manually, and found out that the plugin's PHP file is rewriting the URL correctly, with our associate ID in it. So, the problem does not appear to be with the functions_amazon_links.php file. And those with .co.jp and .co.uk should be happy to know that those URLs are rewriting properly as well (the domains show up properly). So for some reason, the rewritten code is not making it to the posts, either when made as a new thread, a normal reply, or a quick reply. Someone with access to a web server can test this themselves also. Comment out this line at the top of the file: PHP Code:
PHP Code:
PHP Code:
PHP Code:
So my hiccup has to do with the hook location...? Or the PHP code that calls the plugin? This plugin file works, but changes don't end up in the finished post. Once I solve that, I'm golden. One added bonus: we have one or two members who "innocently" :rolleyes: post Amazon links to a CD, with their own Associates ID inserted in the URL. This will kill that, and save my staff having to sniff these out. |
thx. works in 3.8.3.
|
This doesn't work for me in vB 3.8.3.
Any help updating this for 3.8.3 (and adding support for sites like Amazon.co.uk) is appreciated. |
Does this mod work for 3.8.4?
|
Quote:
|
I haven't gotten it to work in ANY version.
Uninstalled. |
Does anyone know if this mod will work in vB 4.0 or will it need to be updated for the new version? Thanks in advance.
|
Quote:
|
4.0.2 works too
|
Does anyone have this installed with 4.0.6?
|
This appears to be working good for us thus far on version 3.8.5... with the co.uk modification.
New links to Amazon.com, Amazon.ca and Amazon.co.uk are rewriting with our associate ID, but old links are not. In order for old links to work, we are having to edit and save with no actual edit being made. Of course this is our initial findings... and we will have to verify that there are no other conflicts. |
I just got this installed and running on 3.8.x and it seems to work great :)
one concern though... I'm new to the whole affiliate linking thing and I noticed it's adding "ref=nosim" to some of the links. I didn't know what this was so I looked it up, people used to add it because it would take users directly to the desired products as opposed to a similar product's page. Amazon has depreciated this tag a few years ago (hence why I'd never seen it) and they state that link that include it should still work but they don't recommend anyone use it anymore. there is concern among some that the "ref=nosim" tag will at some point stop working and invalidate existing links. it'd be nice if there were an updated version of this plugin that takes newer link protocol into account... or if someone with a good knowledge of amazon affiliate links could point out what needs to be changed in the code to get rid of that tag. it looks like it's used in 2 places with the following line: Code:
$out[1][$i] = 'http://www.amazon.'.$out[2][$i].'/exec/obidos/ASIN'.$asin[0].'ref=nosim/'.$associate_id; Code:
$out[1][$i] = 'http://www.amazon.'.$out[2][$i].'/exec/obidos/ASIN'.$asin[0].'ref='.$associate_id; Code:
$out[1][$i] = 'http://www.amazon.'.$out[2][$i].'/exec/obidos/ASIN'.$asin[0].'/'.$associate_id; |
Version 4.0.8 has caused me some problems (this is my first try so I don't know if it worked in previous versions of VB4).
Firstly I had to manually create the plugin - the XML upload throws an error. This was no problem - just look at the XML file and it is very obvious what to enter when you do 'Add new plugin'. However.... The function only worked for a new post. I believe this is to do with cache. Therefore after this initial posting is made, this line in the plugin no longer does anything: Code:
$post['pagetext'] = amazon_links($post['pagetext']); after line 113 add the include Code:
require_once(DIR . '/includes/functions_amazon_links.php'); Code:
$post['pagetext'] = amazon_links($post['pagetext']); Code:
$post['pagetext'] = amazon_links($post['pagetext']); Code:
URL= |
Can we please get an updated version of this for 4.0.8? Mine stopped working with the upgrade. :(
|
Does anyone know how to adapt it for amazon.co.uk?
I've tried to amended the codes from com to co.uk however I'm not able to do this with the variable. Any ideas? |
When I add a link, it truncates the amazon link but does not add affiliate code. I am using 3.6.7
|
any chance of a vb4 version ?
|
Same here. Appreciate an update to vb4
|
Quote:
|
Quote:
|
Ditto. Used this before but now I'm on vB 4.x and it doesn't work. The alternatives are crap, they require you to register with a 3rd party service and funnel your traffic through them. I don't NEED that, I just need a link reformatted!
|
Work for amazon.es?
|
Quote:
|
would this also work with amazon.co.uk?
|
Looking for VB4 version...anyone?
|
I can't get it to work with Amazon.co.uk either.
|
You don't need a vB4 version. I've had this working from 3.x through 4.0 to 4.2.0 PL2.
|
Has anyone tried this with amazon.co.jp ?
|
tried to add this to 4.1.7 and the product uploader thinks this is a plugin not a product. What to do?
|
I can't make it work for amazon.it (vb4).
|
All times are GMT. The time now is 01:01 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|