Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-29-2005, 08:05 PM   #1
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
NATs users-

How do I change an encoded tracking code back to an affiliate id?
ie -
on a URL like http://www.ravenriley.com/tour1/?nats=NjM6Mzox

Changing the NjM6Mzox

to 'quantumx' and pulling out the other data.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2005, 08:12 PM   #2
Nasty
Confirmed User
 
Nasty's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: Sunny Fucking California
Posts: 1,575
http://www.opinionatedgeek.com/dotne...e/Default.aspx
__________________

“Ours is a world of nuclear giants and ethical infants. We know more about war than we know about peace, more about killing than we know about living. If we continue to develop our technology without wisdom or prudence, our servant may prove to be our executioner.” ― Omar Bradley (1948)
Nasty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2005, 08:17 PM   #3
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
it's base 64? neat.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2005, 08:27 PM   #4
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
hmm.. that only takes it back to an ID (ie 634:3:1) and that ID does not directly correspond to the correct affilate id
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2005, 08:30 PM   #5
Verbal
Confirmed User
 
Join Date: Dec 2001
Location: Tampa, FL
Posts: 3,420
I'm waiting for "NATS for Dummies" to come out. I'll be first in line.
Verbal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2005, 08:51 PM   #6
TMM_John
Confirmed User
 
TMM_John's Avatar
 
Industry Role:
Join Date: May 2004
Posts: 6,664
Quote:
Originally Posted by quantum-x
hmm.. that only takes it back to an ID (ie 634:3:1) and that ID does not directly correspond to the correct affilate id
Quantum-x, that is the campaignid (which is linked to your affiliate id), siteid, and programid (all needed for the code to function).

You should ask the program you are promoting to provide their affiliates with unencrypted link codes (something all NATS programs can do if they choose to do so) which will allow you to link with your affiliate login name and site/program id unencoded.
TMM_John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2005, 08:55 PM   #7
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
When you goto the linking codes page, choose your Campaign, then the program..

Directly above the linking codes in the menu it says the text below. Click Switch and it will pull up the unencoded codes.

Your Link Codes - Mode: Encoded [Switch]
__________________
~TheDoc - ICQ7765825
It's all disambiguation
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2005, 09:14 PM   #8
bdld
$100,000
 
Join Date: Dec 2001
Posts: 11,452
every nats sponsor should offer unencoded links.
bdld is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2005, 11:00 PM   #9
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
If anyone else is interested, I did this to solve my problems.
Perhaps it'll help you, too.

PHP Code:
function getAffiliate($_NATS) {
    list(
$campaignID) = explode(":"base64_decode($_NATS));

    
open_db();
    
$sql "SELECT `a`.`username` FROM `accounts` as `a`,`campaigns` as `c` WHERE `a`.`loginid` = `c`.`loginid` AND `c`.`campaignid` = '$campaignID'";
    
$result mysql_query($sql);
    
$row mysql_fetch_assoc($result);
    
close_db();

    return 
$row['username'];

quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.