ThemeForest

php question about sub id tracking

408 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 100 and 499 items
  • United States
  • Referred between 10 and 49 users
arctic_ark says

does anyone know how this is done : you have a link on your site for an advertiser (such as a cj.com link), and you have a sub id tracking extension on the link (like cj allows you to do). does anyone know how to generate the sub id for the click in real time based on the user account thats logged in and makes the click?

so for example, say sally04 logs in and clicks an advertiser link, i need to put her username inside the subid…by doing something like this : fakeadvertiser.com/fakelink?ref=#USERNAME#

and when sallyo4 clicks it #USERNAME# turns into sally04 so i know she clicked the link for that advertiser. any ideas?

I have some php software that does just this, called cashcrusader software, but its main feature that i need is this way it tracks the users through the sub ids when they click. This way when the user clicks on the link ive put on the site that has the sub id as #USERNAME# in it, that part that says #USERNAME# gets replaced with the username logged in at the time who clicks it.

Many affiliate networks have sub id tracking, and theres a way the generate the sub id passed on a object or parameter in the php. if only there was some php masters out there who know what im talking about…

3 years ago
220 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Netherlands
  • Referred between 1 and 9 users
ronn0 says
<?php
$url = str_replace(”#USERNAME#”,$_COOKIE[‘username’], “fakeadvertiser.com/fakelink?ref=#USERNAME#”);
?>

But don’t know where you put the username in from who logged in.

3 years ago
408 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 100 and 499 items
  • United States
  • Referred between 10 and 49 users
arctic_ark says

thanks ronn maybe i should learn php programmin to find my answer

3 years ago
294 posts
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Beta Tester
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 1 and 9 items
  • United States
  • Referred between 1 and 9 users
PixeledArt says

Could a forum moderator put this tread in the Help Needed section in the Themeforest forums

3 years ago
220 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Netherlands
  • Referred between 1 and 9 users
ronn0 says
thanks ronn maybe i should learn php programmin to find my answer

Normally it’s stored in a coockie, so think this is the solution

3 years ago
408 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 100 and 499 items
  • United States
  • Referred between 10 and 49 users
arctic_ark says

i c…well i have no experience with php yet is why i asked, i may need to learn more about how it works to make it work right for me

3 years ago
by
by
by
by
by