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?
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.
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=
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.
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...
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!
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.
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.
Comments on Parsing userID with link.php?id=x?
Experienced
Usergroup: Customer
Joined: Aug 04, 2007
Total Topics: 16
Total Comments: 60
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??
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Experienced
Usergroup: Customer
Joined: Aug 04, 2007
Total Topics: 16
Total Comments: 60
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
Experienced
Usergroup: Customer
Joined: Aug 04, 2007
Total Topics: 16
Total Comments: 60
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??
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Experienced
Usergroup: Customer
Joined: Aug 04, 2007
Total Topics: 16
Total Comments: 60
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...
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Experienced
Usergroup: Customer
Joined: Aug 04, 2007
Total Topics: 16
Total Comments: 60
Like this one: http://www.greasypalm.co.uk/
Experienced
Usergroup: Customer
Joined: Aug 04, 2007
Total Topics: 16
Total Comments: 60
Just out of interest how does a url get redirected using link.php?
Using META REFRESH perhaps?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
link.php uses HTTP 301 redirects (google's recommended method).
Experienced
Usergroup: Customer
Joined: Aug 04, 2007
Total Topics: 16
Total Comments: 60
Can you please give an example how?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I can't teach a PHP class, at least not for free.
Experienced
Usergroup: Customer
Joined: Aug 04, 2007
Total Topics: 16
Total Comments: 60
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!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.