out going link on WP

Our support will answer all your general questions here.

Moderator: Rock

Post Reply
sponsorchat
Posts: 20
Joined: Sat Oct 20, 2018 11:51 am
Contact:

out going link on WP

Post 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
sponsorchat
Posts: 20
Joined: Sat Oct 20, 2018 11:51 am
Contact:

Re: out going link on WP

Post 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
sponsorchat
Posts: 20
Joined: Sat Oct 20, 2018 11:51 am
Contact:

Re: out going link on WP

Post 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
sponsorchat
Posts: 20
Joined: Sat Oct 20, 2018 11:51 am
Contact:

Re: out going link on WP

Post by sponsorchat »

solved thanks to Alex,
Post Reply