Can passing username???

1 replies
Can passing username via affiliate sub ID be accomplished w/PHP?
I have a Joomla website that has a member login system and a plug in that allows a me to enter "{mgetusrname}" to retrieve a user name when logged in.

What I am trying to accomplish is using Sub ID's to track info through my advertising. Could this be accomplished with a PHP script?

There's a ton of software that seems like it may do this plus a million other things that I don't need (and can't afford!). I just want the information for members who have completed offers.

Can this be done? And could it be done by someone with almost no PHP knowledge?
#passing #username
  • Profile picture of the author martinkeens
    Originally Posted by rahul222 View Post

    Can passing username via affiliate sub ID be accomplished w/PHP?
    I have a Joomla website that has a member login system and a plug in that allows a me to enter "{mgetusrname}" to retrieve a user name when logged in.

    What I am trying to accomplish is using Sub ID's to track info through my advertising. Could this be accomplished with a PHP script?

    There's a ton of software that seems like it may do this plus a million other things that I don't need (and can't afford!). I just want the information for members who have completed offers.

    Can this be done? And could it be done by someone with almost no PHP knowledge?
    Pretty much anything can be done with PHP if you know what you're doing. As to being able to do it with almost no PHP experience, probably not.

    I'm not 100% clear on what you're trying to do, but let me take a stab at it.

    You give your users a link like somelink.com/redir.php?offernum=111&username=theirname&subid=th eirsubid

    In the file redir.php, you can access those variables using $_GET["offernum"], $_GET["username"], and $_GET["subid"]

    Now, if you're talking about using an affiliate network's postback functionality, that's pretty similar. You tell them what file on your server to hit (postback.php for example) and they will send the offer information in the query string similar to what I showed above. So maybe something like:

    Code:
    http://www.yoursite.com/postback.php?offerID=111&offerName=TheOfferName&amount=2.25&credit=yes&subID1=someUser&subID2=someOtherCode
    On your side, in postback.php, you could find the username of the person who completed the offer by using $_GET["subID1"].

    Make sense?
    {{ DiscussionBoard.errors[1679730].message }}

Trending Topics