![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Apr 2006
Location: Easy Webcam Pro
Posts: 1,213
|
Anyone have instructions on hacking WP to handle affiliate ID's for a hosted blog?
I lost my notes on it and want to send to someone.
__________________
[email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
Easiest way is to make a theme that includes some PHP code that checks if a NATS / Affiliate code is present, and sets up a session creating the resultant link code.
Inside the blog template, just include the session information. This prevents leaks when people click all around the site. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Apr 2006
Location: Easy Webcam Pro
Posts: 1,213
|
Thanks dude.
__________________
[email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
there is a plugin out there that allows you you to insert php code in posts, just use that with some more small php code, and there you go
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
You then have the problem of carrying the code over the rest of the links though.. to be totally successful, the surfer should be able to click anywhere in the site, then click a link and have it still tracked.
|
![]() |
![]() ![]() ![]() ![]() ![]() |