Simple addon to add your amazon affiliate id to any exisiting link to the amazon websites in order to earn money from those links. There's only one setting, see attached screenshot.
Note: The affiliate id is added to the hyperlink, not the link title ;)
Download: Addon installation file is attached. / http://addons.elkarte.net/enhancement/Amazon-Affiliate.html
Compatibility: ElkArte 1.0 and newer.
License: MPL 1.1, http://www.mozilla.org/MPL/1.1/
Nice addition. Happy to see revenue generating addon in making.
@TE thank you for not leaving me as the only one who has problems with FileName case! I was feeling quite lonely :D
There were a couple of those case name buggers on the file-names and a small tweak to the uninstall section. Did not see the repo so I attached the updates here.
Repo? what? lol...
I've created one just now. thanks for the fixes :)
LOL
Good one! ;D
Seems the addon loses the afilliate id in the URL when I quick edit a post with such a link. And it seems to have problems with some amazon URLs (for example when using a search inside amazon and follow the result to a product page).
@TE Do you have time to check this? O:-)
The initial link is a link to a product page or a direct link to amazon search results? Can you give an example?
Okay, did some testing.
It works great. Changes the link to the short link with affiliate ID. The link text stays the same, which is kind of confusing. It would be confusing also if the link text would be changed, so... Don't know which is better. If you edit a post with a link the link stays the same, all good.
But: If you quick edit a post with a link, the link changes to one without affiliate ID. The ID gets lost.
Edit: I use a link to the amazon page in my menu. On mousehover the amazon icon is invisible. :D
I installed this addon but no tag is added to amazon links. Tried amazon.com links and amazon.it links. There is a small error in the zip attached in the first post, the name of the file Amazonaffiliate.english.php should be AmazonAffiliate.english.php otherwise will get an error during installation. No errors in elkarte log.
Also the english translation file is not copied into public/themes/default/languages/english but into public/themes/default/languages folder. Not a bug, but should be updated
It works for me, but the installation was long ago...
I just tried on a clean 1.0.10 install and it's not adding the tag to the links.
I thought it wasn't working because of Nofollow addon or Favicon next to links addon...
Maybe, I don't use these two addons.
I use this as well but have not tried it on a "fresh" 1.0.10 .... I'll take a look this weekend which is oh so close :D
thanks Spuds, take your time, it is not urgent ;)
Does this still work on Elkarte 1.1.1 ?
there are some small bugs into this version, but they can be easily corrected:
- open AmazonAffiliate.integration.php
Find:
'/href="http:\/\/[^>]*?amazon.([^\/]*)\/([^>]*?ASIN|gp\/product|exec\/obidos\/tg\/detail\/-|[^>]*?dp)\/([0-9a-zA-Z]{10})[a-zA-Z0-9#\/\*\-\?\&\%\=\,\._;]*/i',
'href="http://www.amazon.$1/dp/$3/?tag='. $modSettings['amazon_affiliate_id'],
and replace with:
'/href="https:\/\/[^>]*?amazon.([^\/]*)\/([^>]*?ASIN|gp\/product|exec\/obidos\/tg\/detail\/-|[^>]*?dp)\/([0-9a-zA-Z]{10})[a-zA-Z0-9#\/\*\-\?\&\%\=\,\._;]*/i',
'href="https://www.amazon.$1/dp/$3/?tag='. $modSettings['amazon_affiliate_id'],
- rename themes/default/languages/english/Amazonaffiliate.english.php with AmazonAffiliate.english.php
- since all links are now https it's a good idea to change all the amazon existing links to https. Open phpmyadmin and run this query:
UPDATE elkarte_messages set body = REPLACE(body, 'http://www.amazon.', 'https://www.amazon.');
Attached the addon, works with Elkarte 1.0.x & 1.1.x
Does the attched Addon already has these fixes in it or do I still to manually need
to change:
AmazonAffiliate.integration.php
and
AmazonAffiliate.english.php
??
Many thanks.
Thanks,
@radu81. Made the changes and seems to work.
yes, it has the edits mentioned above
Does this also work with Elkarte 1.1.3 ?
What about the new DSGVO Law in Germany ?
It is a very hot topic in this moment..
You must ask the users to agree to cookies set on your website...
Very annoying new law...
See:
https://www.e-recht24.de/datenschutzgrundverordnung.html
Regards, Stefan.
DSGVO as far as I understand is the EU-GDPR (that is an European Regulation and not a German law even though that doesn't change the point), and is not about cookies. ;)
There are few topics and few issues open.
At the moment, I think ElkArte lacks some tools to deal with the GDPR "automatically". Of course it's possible to workaround several things with specific actions, but admin interfaces to simplify these actions are indeed missing.
Yes it's working fine with elkarte 1.1.3
I have no idea, there is a similar discussion around...