![]() |
Any way to decode a NATS ID?
Anyone know if it is possible to convert another affilaite's NATS encoded ID to the unencoded version?
|
http://www.grouchyadmin.com/natsdecode/
Yes, it's possible. It's just a base64 value with the terminators stripped. |
Thanks, so I put in my encoded NATS user name and got a number back, what do I need to do to that number to get my NATS user name?
|
Quote:
It's your database ID. |
i think he wants to convert the NTkyMDozOjEw to his username, and without the sponsor database it is not possible because the NTkyMDozOjEw is created when the user creates the affiliate account and each sponsor has their own database
so, I could have NTkyMDozOjEw with occash.com and someone else could have NTkyMDozOjEw with insertcashnamehere.com....all though it is pretty improbable that anyone would have NTkyMDozOjEw again, but definitely possible |
Quote:
The 6 is the program and 1 is the site id. But the 26 from what I know has nothing to do with me as a WM or anything in my backend to associate with anything Yappo/YappoDollars. |
Quote:
Quote:
|
function get_nats_info($decode){
$chars = strlen($decode); $add = 4 - ($chars % 4); if ($add < 4) while($add--) $decode .= '='; list($campaignid, $programid, $siteid) = explode(':', base64_decode($decode)); return $campaignid . ' : '.$programid.' : '. $siteid; } the "26" in your example is the defualt campain id for that webmaster account if the site uses "un-encoded" nats codes look for that ... the format is USERNAME;26:SITE_SHORT_NAME:PROGRAM_SHORTNAME |
sorry that should have read
USERNAME:PROGRAM_SHORTNAME:SITE_SHORT_NAME USERNAME;(campainid):PROGRAM_SHORTNAME:SITE_SHORT_ NAME |
I guess everything's already been properly answered.
But, no, as stated, without the mapping of accountid to account, and programid to program you can not convert someone else's data accurately. |
Quote:
|
Quote:
|
| All times are GMT -7. The time now is 02:23 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123