Page 1 of 1
out going link on WP
Posted: Wed Feb 19, 2020 8:00 pm
by sponsorchat
what's the simplest way on WP to add the code so 30% of the time all clicks on the thumbs go to trades. As opposed to doing it for each post.
Here is the blog btw
https://www.sponsorchat.com/photos/
Peace
Re: out going link on WP
Posted: Sun Feb 23, 2020 9:33 pm
by sponsorchat
okay let's try again, what code and where do you put on a wordpress blog for all links to go say 70% to trade. Expect for the navigation links where you want them not to go to trades.
Cheers
Re: out going link on WP
Posted: Mon Feb 24, 2020 2:15 pm
by sponsorchat
Here is the issue, testing it on my WP blog
https://www.sponsorchat.com/pics/
In the head I have;
Code: Select all
<?php
include "/home/nfvltd/public_html/sponsorchat.com/x/in.php";
?>
<script type="text/javascript" src="/js/jquery.js"></script>
<script>
jQuery(document).ready(function(){
jQuery("a").click(function(){
url=jQuery(this).attr('href');
jQuery(this).attr('href','/x/out.php?s=70&link=click&url=' + escape(url));
});
});
</script>
And some navigation links I just do not want the links to trade out, for example
Code: Select all
<a href="/x/out.php?s=100&u=https://www.sponsorchat.com/pics/category/amateur/">Amateur</a>
But it does not work, the link works like a trade.
Peace
Re: out going link on WP
Posted: Wed Feb 26, 2020 4:29 pm
by sponsorchat
solved thanks to Alex,