Webmastersite.net
Register Log In

append helios to every link

Comments on append helios to every link

helios
Beginner

Usergroup: Customer
Joined: Sep 29, 2005

Total Topics: 2
Total Comments: 7
helios
Posted Oct 07, 2005 - 2:14 PM:

I'm using WSN to build a pseudo-store for use by customers of our brick-n-morter company. I've set perms. so that only I can add new links. The links I'm adding are commission junction links. The whole point of the "store" is to give our customers a place to purchase certain items and earn rebates for doing so. A typical CJ link looks like:
http://www.kqzyfj.com/click-xxxxx-xxxxxx

In order for me to track who buys what and administer rebates I need to tack on a unique identifier to each link. I'm thinking {MEMBERNAME} will do nicely.
www.kqzyfj.com/click-xxxxx-...xxxx?cust={MEMBERNAME}

Any thoughts on how I can accomplish this?
helios
Beginner

Usergroup: Customer
Joined: Sep 29, 2005

Total Topics: 2
Total Comments: 7
helios
Posted Oct 07, 2005 - 3:33 PM:

Just to point out the obvious, simply placing cust={MEMBERNAME} does nothing as the variable does not get parsed when entered as part of the URL...
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
1 of 1 people found this comment helpful
Posted Oct 07, 2005 - 6:06 PM:

You'd need to edit link.php to intercept $url just before it goes it it, and append 'cust='. $thismember->name
helios
Beginner

Usergroup: Customer
Joined: Sep 29, 2005

Total Topics: 2
Total Comments: 7
helios
Posted Oct 08, 2005 - 12:31 PM:

Thanks a bunch Paul. On my initial scan through link.php (before posting my question) I was thrown by "header("HTTP/1.1 301 Moved Permanently");" It made me think that wasn't the right place for my hack. Now I'm curious why you use the Moved Perm. in the header? Thanks again.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 09, 2005 - 8:05 PM:

If you don't pass a 301 header, you end up stealing google position from the sites you link to by google indexing your link.php link instead of the destination page, which really annoys them.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.