Skip to main content
Topic: [ADDON] Amazon Affiliate (Earn from Amazon Links) (Read 7648 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: [ADDON] Amazon Affiliate (Earn from Amazon Links)

Reply #15

there are some small bugs into this version, but they can be easily corrected:
  • open AmazonAffiliate.integration.php
    Find:
    Code: [Select]
    			'/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:
    Code: [Select]
    			'/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:
    Code: [Select]
    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

Re: [ADDON] Amazon Affiliate (Earn from Amazon Links)

Reply #16

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.

Re: [ADDON] Amazon Affiliate (Earn from Amazon Links)

Reply #17

Thanks, @radu81. Made the changes and seems to work.

Re: [ADDON] Amazon Affiliate (Earn from Amazon Links)

Reply #18

Quote from: hartiberlin – Does the attched Addon already has these fixes 
yes, it has the edits mentioned above
sorry for my bad english

Re: [ADDON] Amazon Affiliate (Earn from Amazon Links)

Reply #19

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.

Re: [ADDON] Amazon Affiliate (Earn from Amazon Links)

Reply #20

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.
Bugs creator.
Features destroyer.
Template killer.

 

Re: [ADDON] Amazon Affiliate (Earn from Amazon Links)

Reply #21

Quote from: hartiberlin – Does this also work with Elkarte 1.1.3 ?
Yes it's working fine with elkarte 1.1.3


Quote from: hartiberlin – What about the new DSGVO Law in Germany ?
I have no idea, there is a similar discussion around... 
sorry for my bad english