View Single Post
Old 11-17-2010, 06:28 AM  
stocktrader23
Let's do some business.
 
stocktrader23's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: The dirty south.
Posts: 18,781
Quote:
Originally Posted by deadmoon View Post
would be easy with a wp plugin. in the post text, just put something like AFFID where you want the affiliate id. then with the plugin just do a str_replace("AFFID", $_GET['affid']);. (of course, sanatize the $_GET['affid'] to numbers only (assuming ccbiill).

There are probably text replacement wp plugins out there that will do this.

(and you can just do <a href="site.com/affcode=<?=$_GET['affid'];?> in your template for banners etc. (again, make sure you strip anything but letters/numbers from $_GET['affid'];)
Yeah, I've had post content ect like this forever. I'm more worried about the tag links, category links, titles, archives, etc.
__________________


Hands Free Adult - Join Once, Earn For Life

"I try to make a habit of bouncing my eyes up to the face of a beautiful woman, and often repeat “not mine” in my head or even verbally. She’s not mine. God has her set aside. She’s not mine. She’s His little girl, and she needs me to fight for her by keeping my eyes where they should be."
stocktrader23 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote