Webmastersite.net
Register Log In

Parsing userID with link.php?id=x?
Can userID be attached within link.php?

Comments on Parsing userID with link.php?id=x?

digiguy
Experienced

Usergroup: Customer
Joined: Aug 04, 2007

Total Topics: 16
Total Comments: 60
digiguy
Posted Jan 25, 2009 - 4:57 AM:

I am trying to use affiliate URLs hidden within link.php.

The format goes http://www.remote-xyz.com/click.php&someID&clickref= which gets converted into http://www.xyz.com/link.php?id=1
Am I trying the impossible ie. trying to attach a registered user's ID to the end of clickref=?

Can you Paul or some one clever tell me what the underlying code for link.php?id=x page?
Is it metarefresh, is there a template for this page that randomly generates the code for link.php?
Perhaps using input type hidden or other method the userID could be attached prior to forwarding to remote site?

Hm, can it be done??
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 26, 2009 - 2:09 PM:

1. Where is the http://www.remote-xyz.com/click.php&someID&clickref= link being placed? Is it inside WSN, intended to be for the member viewing the page? Then use {THISMEMBERID} for th emember's id.
2. What's someID?
3. What is link.php supposed to do with it when it receives the member id?
4. Why would link.php attach a member id before forwarding when link.php is forwarding to an external site URL that won't use any of that? Unless you're actually forwarding link.php to click.php, which seems to be the reverse of what you indicate earlier in the post.
digiguy
Experienced

Usergroup: Customer
Joined: Aug 04, 2007

Total Topics: 16
Total Comments: 60
digiguy
Posted Jan 30, 2009 - 9:14 AM:

1. Basically within the WSN Links URL I use an affiliate URL that has its own tracking in the format as:
http://www.remote-xyz.com/click.php&someID&clickref=
1b. remote-xyz.com is the affiliate network and someID is the affiliate ID along with merchant number and the attached clickref= is used to track visitor eg. clickref=joecustomer7
The above URL then gets converted into eg. www.mysite.com/link.php?id=1

What I am trying to do (if at all possible) is to attach (perhaps) using {THISMEMBERID} at the end of clickref= (as above) by using WSN Links link.php?id=x

If the link.php?id=x final page (prior to forwarding) uses META REFRESH then perhaps using HTTP_REFERER or maybe HTTP_COOKIE to attach the {THISMEMBERID} to the end of clickref=

Joe
digiguy
Experienced

Usergroup: Customer
Joined: Aug 04, 2007

Total Topics: 16
Total Comments: 60
digiguy
Posted Jan 30, 2009 - 10:23 AM:

Am I right to assume to modify the bit below?

<meta http-equiv="refresh" content="{SECONDSDELAY};url={DESTINATION}">
p erhaps to:

<meta http-equiv="refresh" content="{SECONDSDELAY};url={DESTINATION}{THI SMEMBERID}">

Would {DESTINATION} part actually represent the original URL??
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 31, 2009 - 6:25 PM:

The redirect template is for the thank you messages after submitting something. No relation to your subject.

Parsing template variables within the URL value isn't supported. Doing so in a generic way would open up security risks. Enabling member template variable parsing in link.php?id=1 redirects would be a custom PHP project, estimate 1 hour / $50.

The above URL then gets converted into eg. www.mysite.com/link.php?id=1

To my knowledge WSN doesn't convert URLs into such a format (it only did pre-4.1.0). I guess you wanted to hide the URLs so you customized the templates to use those links.

If you didn't care about hiding the URLs, you could just use <a href="{TRACKLINKURL}{THISMEMBERID}"> in your templates. Note you can use javascript to hide a URL instead.
digiguy
Experienced

Usergroup: Customer
Joined: Aug 04, 2007

Total Topics: 16
Total Comments: 60
digiguy
Posted Feb 11, 2009 - 7:42 AM:

If your script was able to do the above then it could have also been sold as structure for another "cash-back" site that would have allowed tracking of user's and sells...
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 11, 2009 - 9:21 PM:

I don't know what sort of site you're talking about, but if you mean a store, it's probably not the ideal e-commerce store script.
digiguy
Experienced

Usergroup: Customer
Joined: Aug 04, 2007

Total Topics: 16
Total Comments: 60
digiguy
Posted Feb 12, 2009 - 6:49 AM:

Like this one: http://www.greasypalm.co.uk/
digiguy
Experienced

Usergroup: Customer
Joined: Aug 04, 2007

Total Topics: 16
Total Comments: 60
digiguy
Posted Feb 12, 2009 - 7:59 AM:

Just out of interest how does a url get redirected using link.php?
Using META REFRESH perhaps?
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Feb 13, 2009 - 5:06 AM:

link.php uses HTTP 301 redirects (google's recommended method).
digiguy
Experienced

Usergroup: Customer
Joined: Aug 04, 2007

Total Topics: 16
Total Comments: 60
digiguy
#11 - Quote - Permalink
Posted Feb 14, 2009 - 6:11 AM:

Can you please give an example how?
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted Feb 14, 2009 - 7:26 PM:

I can't teach a PHP class, at least not for free.
digiguy
Experienced

Usergroup: Customer
Joined: Aug 04, 2007

Total Topics: 16
Total Comments: 60
digiguy
#13 - Quote - Permalink
Posted Feb 20, 2009 - 4:45 AM:

FREE?!
Bought your software and left you an excellent review.
Perhaps it was a BIG waste of my time to do that!
All I asked for a simple explanation not a Thesis.
Never mind, thanks for nothing!
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#14 - Quote - Permalink
Posted Feb 20, 2009 - 4:45 PM:

You bought software, and I support the software, not your random outside PHP programming desires (unless you order them as a custom project). You didn't buy a PHP lesson. If you want to learn PHP, you're perfectly capable of googling for your examples or posting on one of the hundreds of forums where people take the time to look up such things for you. (It's not like I memorize it.)

Your request has nothing to do with WSN Links.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.