Hi friends,
Can someone please help me?
I use this method to cloak my affiliate links:
https://yoast.com/cloak-affiliate-links/
So in our list we just need to put the links like this:
And we will use the following link:
My main problem is with the comma... he detects the link after the first comma, but lets imagine that the link is something like:
So the problem is that he cant read all url, because the url have an comma too, so the script will read only:
And will ignore the ,24 part.
Is there any fix to this please? A way that the script only read the first comma and ignore the others from urls?
Here is the code source:
https://gist.github.com/jdevalk/5622742
Help
Can someone please help me?
I use this method to cloak my affiliate links:
https://yoast.com/cloak-affiliate-links/
So in our list we just need to put the links like this:
Code:
name,http://domain.com/?p=2
And we will use the following link:
Code:
http://www.mydomain.com/out/name
My main problem is with the comma... he detects the link after the first comma, but lets imagine that the link is something like:
Code:
http://www.affiliatedomain.com/track/gTk2NzMwdjQ6sTc,24/
So the problem is that he cant read all url, because the url have an comma too, so the script will read only:
Code:
http://www.affiliatedomain.com/track/gTk2NzMwdjQ6sTc
And will ignore the ,24 part.
Is there any fix to this please? A way that the script only read the first comma and ignore the others from urls?
Here is the code source:
https://gist.github.com/jdevalk/5622742
Help