View Single Post
Old 02-09-2012, 11:44 AM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by vdbucks View Post
While the plugin isn't designed for tours, it does somewhat work... But not completely.

From my experience, your best bet is to start with your default fhg link, like so:
Code:
http://join.trikepatrol.com/track/<?=$_REQUEST['nats']?$_REQUEST['nats']:'MC4wLjIuMy4wLjAuMC4wLjA'?>/
Then strip the preceding url from it so it looks like this:
Code:
<?=$_REQUEST['nats']?$_REQUEST['nats']:'MC4wLjIuMy4wLjAuMC4wLjA'?>/
Take that line (your own from your nats site admin) and add it to the end of all your links...

so for instance, a post permalink would look like this:

Code:
<a href="<?php the_permalink() ?>/<?=$_REQUEST['nats']?$_REQUEST['nats']:'MC4wLjIuMy4wLjAuMC4wLjA'?>/" title="<?php the_title() ?>"><?php echo the_title() /></a>
The main problem with this is if you're using the built in menus... wp-admin > appearance > menus

You won't be able to add pages, instead you'll have to add them as custom links, which should look like:
Code:
http://yourdomain.com/tour/page/<?=$_REQUEST['nats']?$_REQUEST['nats']:'MC4wLjIuMy4wLjAuMC4wLjA'?>/
Or w/e your link structure is.

That being said, to be absolutely honest, we have found this to be unnecessary as your affiliates nats codes will still be properly tracked...
and bingo, this is the answer, just replace permalinks and that's it
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote