Amazon/eBay Parser

Amazon/eBay Parser 2.1.4

No permission to download
Amazon Australia domain is - amazon.com.au
In line 477 of Html.php (bbcode/render/) it lists domain as amazon.co.au

PHP:
        if (!empty(\XF::options()->snog_amazonparseraffiliateau))
        {
            $affiliatearray[] =
                ['domain' => 'amazon.co.au',
                    'affiliate' => \XF::options()->snog_amazonparseraffiliateau
                ];
        }
@David G does this plugin work on ebay.com.au links for you?

It doesn't work for ebay.com.au or amazon.com.au links even after correcting the Html.php amazon.com.au spelling error. Interesting to note that ebay.com.sg links don't work either.

It appears that any link which contains something directly after the .com does not work. These links will not append the ebay/amazon affiliate code:
  • amazon.com.au
  • ebay.com.au
  • ebay.com.sg
 
Last edited:
@David G does this plugin work on ebay.com.au links for you?

It doesn't work for ebay.com.au or amazon.com.au links even after correcting the Html.php amazon.com.au spelling error. Interesting to note that ebay.com.sg links don't work either.

It appears that any link which contains something directly after the .com does not work. These links will not append the ebay/amazon affiliate code:
  • amazon.com.au
  • ebay.com.au
  • ebay.com.sg
@Ozzy47 I think I found a bug, do you know what could be causing this?
@Ozzy47 I've figured out this bug and a couple of others by taking a look at the plugin files.

Bug 1:
In the Html.php file, the rule with 'm.' is replacing the ".com.au" and ".com.sg" in the URL's:
PHP:
$searchdomain = str_replace(['www.', 'deals.', 'rover.', 'cgi.', 'm.', 'pages.'], '', strtolower($hrefarray['host']));

Since I don't think I really need the "m." rule, I have removed that line for the time being so I end up with this:
PHP:
$searchdomain = str_replace(['www.', 'deals.', 'rover.', 'cgi.', 'pages.'], '', strtolower($hrefarray['host']));

(I understand that some people may need to keep the 'm.' rule for various domain names, but it doesn't work with .com.au URL's so I'm removing it.)


Bug 2:
Thanks to @David G

In the Html.php file the Amazon Australia URL is not correct:
PHP:
 ['domain' => 'amazon.co.au',

Replace with:
PHP:
 ['domain' => 'amazon.com.au',


Bug 3:
In the Html.php file the Sigapore Ebay URL is not correct:
PHP:
['domain' => 'ebay.sg',

Replace with:
PHP:
['domain' => 'ebay.com.sg',


Bug 4:
In phrases.xml the Amazon Australia text is not correct:

This
XML:
Amazon.au affiliate ID (AU)

Should be:
XML:
Amazon.com.au affiliate ID (AU)
 
Last edited:
@Ozzy47 Is this addon not being maintained any more?
May I suggest that if you're not motivated to continue updating this addon for free, then start charging for it since people will be making money from it.
Or if you're not interested in maintaining it, could you give it to someone who is?
My version on AVForums is 2.1.3 which is confusing as I can't remember where I got that from. Any ideas?
Many thanks.
 
Last edited:
Strangely the url gets not automatically converted to a link when posting this new link-structure:

Converts just to text:
Code:
https://www.amazon.de/Apple-AirPods-Pro-2-Generation-Ladecase/dp/B0BDJ37NF5/

This works:
Code:
https://www.amazon.de/dp/B0BDJ37NF5/


Since here in this forum both get converted to links I think this may have to do with the add-on?

Here are both links again , just pasted:

https://www.amazon.de/Apple-AirPods-Pro-2-Generation-Ladecase/dp/B0BDJ37NF5/
https://www.amazon.de/dp/B0BDJ37NF5/

Has anyone experienced the same problem?
 
Last edited:
Actually after some testing it seems to be triggered by special characters:

° , ä , ü, ö, ß and maybe more

If this in the URL, it doesn't convert to a link.

Example:

https://www.amazon.de/FERM-Elektro-Staubbläser-400W-Geschwindigkeit/dp/B0154IVX1C/

https://www.amazon.de/SEEKONE-Heißl...-Heissluftgebläse-Aufsatzdüsen/dp/B082D6R8ZY/

Code:
https://www.amazon.de/FERM-Elektro-Staubbläser-400W-Geschwindigkeit/dp/B0154IVX1C
https://www.amazon.de/SEEKONE-Heißluftpistole-Temperaturregelung-Heissluftgebläse-Aufsatzdüsen/dp/B082D6R8ZY
 
Last edited:
@Ozzy47 we have a serious and urgent issue with ebay links.

Ebay have contacted me to say that if we don't comply with the Ebay Partner Network affiliate link agreement at
https://partnernetwork.ebay.com/page/network-agreement#network-agreement
and reply to their email with confirmation of the fix by 2/9/2024 (9th Feb), I risk termination of my account and 100% reversals of my pending commissions.

I. Guidelines and Accepted Promotional Methods. Subject to the licenses granted in Section VIII of the Agreement:
G. Disclosure about Relationship with EPN. FOR ALL PARTNERS GLOBALLY, regulatory agencies in your country mandate some form of disclosure regarding your relationship to EPN. For example, in the United States the Federal Trade Commission requires disclosure of any material connection or relationship when you endorse or promote a product or service to your readers, unless the connection is already clear from the context of the communication containing the endorsement/promotion. Affiliate links are considered such a material connection. Depending on your primary business location, you will also have legal requirements to disclose your affiliate relationship. EPN has developed a set of information guidelines to help you understand the requirements for your location, which can be found here:
Affiliate Disclosure FAQ. EPN will conduct checks from time to time to ensure you are in compliance with regulatory requirements globally. This information is not legal advice, and is provided only as information guidance. You are required to ensure you meet all legal requirements for your area, and are advised to consult legal counsel to ensure you are in legal compliance with your regulators.
In order to help you understand the requirements, we have developed the following guidance here.
The guidance page linked to reads that a notice in the T&Cs or in the footer is not acceptable. We have to disclose that we receive compensation by every link.
This applies everywhere, not just in the USA.
  1. Disclosure must be “unavoidable”. The disclosure should be as close to the promotional contents, advertisements, logos and/ or links as possible. Consumers should not have to search for disclosure.

So this is serious and urgent and applies to everyone using your addon for ebay.

A conspiracy theorist might see this as ebay trying to avoid paying forums for affiliating user generated links.

Is there anything that can be done? Could your addon, for example, pop up a modal with the affiliate disclosure before people then click to proceed to the ebay link?
 
Last edited:
@Ozzy47 we have a serious and urgent issue with ebay links.

Ebay have contacted me to say that if we don't comply with the Ebay Partner Network affiliate link agreement at
https://partnernetwork.ebay.com/page/network-agreement#network-agreement
and reply to their email with confirmation of the fix by 2/9/2024 (9th Feb), I risk termination of my account and 100% reversals of my pending commissions.


The guidance page linked to reads that a notice in the T&Cs or in the footer is not acceptable. We have to disclose that we receive compensation by every link.
This applies everywhere, not just in the USA.


So this is serious and urgent and applies to everyone using your addon for ebay.

A conspiracy theorist might see this as ebay trying to avoid paying forums for affiliating user generated links.

Is there anything that can be done? Could your addon, for example, pop up a modal with the affiliate disclosure before people then click to proceed to the ebay link?
I wonder if something as simple as hover text stating that the link is an advertisement would be sufficient...
 
I’m not sure what would be sufficient. Hopefully a couple of other people join in and we can come up with a suitable solution.
 
@AndyB pointed me to his addons
to flag messages containing a link to ebay (or whatever domain you want) using a new field in the post table plus
to go through existing posts to flag them.

It's a solution which will work and it's a tremendous relief. However, it means adding a field to the post table, which is not ideal. Plus we have 30 million messages, so the process of going through them will take ages.
Is there a more elegant solution?
 
Yes because there is a notice at the bottom of every post containing an eBay link. That might still be a problem, though, if it’s a long post and you have to scroll down to see it.

We can probably add both options: confirmation overlay and option for message below the post.

What should the message/warning say?
 
We can probably add both options: confirmation overlay and option for message below the post.

What should the message/warning say?
"As an eBay Associate we earn from qualifying purchases." might work...

And I believe the hover text only needs to be "#ad".
 
Ok so having double checked the conditions, they require the message to be as close to the link as possible. I think the bottom of the post would be ok. The user might have to scroll, but the only reference to scrolling in their documentation is scrolling to the footer, which they said is not acceptable. This would be distinctly different to that, though.
We can probably add both options: confirmation overlay and option for message below the post.

How would you do it? With JS every time a message is displayed? Would that create much overhead?

What should the message/warning say?

This is the list of approved hashtags.

[$siteName] may receive a commission if you make a purchase after clicking one of the above links

Seems ok. If it's a phrase, it we can tweak it.
Legally, I think it needs to be in place for all affiliate links including Amazon.
 

This thread covers my solution.
 
Last edited:
Top Bottom