View Single Post
Old 02-08-2012, 11:50 PM  
vdbucks
Monger Cash
 
Industry Role:
Join Date: Jul 2010
Posts: 2,770
Quote:
Originally Posted by Tat2Jr View Post
Hello all! Been a long time.......

Got a few new sites coming out! I used wordpress for the tour of one of them and need to figure out how to make NATS work with it (make the links work, and the code transfer from page to page). I was going to try the NATS Code Wordpress Plugin, but was told by nats support that it wasn't designed with a wp tour in mind.

I can't be the only one who's tried using a wordpress install as a tour? Does anyone know how to make this work?
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...
vdbucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote