Where the FUCK does Prosper202 assign SUBIDs and append them to the URL's?

invinceable

New member
Nov 14, 2008
73
0
0
I'm posting here as a last resort, because I've been staring at prosper for the past 4 hours and I for the life of me cannot figure this one out. Basically I have tried to pass a custom variable to pre-pop my own landing page, but in the middle I want to store a value in the DB, ok great, that works. I have modified the lp.php, lpc.php and cl.php files so everything works and it gets through to my site, and my site eventually passes on the actual affiliate link. Now, I need to append the SUBID to the actual affiliate link in my site as well, but for the life of me I cannot figure out where/when the SUBID is written to the database or appended to the URL. Could someone PLEASE help me.



Thank you.
 


It's been awhile. if I remember correctly.

If you are using a landing page the subid/click_id is generated when the javascript fires. Try looking at that code. You can get the subid/click_id in there, and store it in a cookie. so you can access the subid/click_id variable on other pages on your domain. hope this gets you in the right direction.
 
fucking sweet guys, anyways i'm not at the office but i'll post back in about 2 hours, i didn't even think about the javascript
 
So did you get it figured out or what?


Yes, the user who mentioned it was in the javascript that fires on the landing page is correct. That leads to a page where prosper determines if your landing page is a simple, or advanced landing page. From there, you are sent to a redirect.php file that is either the simple or advanced one (both are in the "static" folder, simple being record_simple.php, or record_adv.php for advanced lp's).

What I did was simply write that sub_id to a file on my server (yes i'm aware it probably is not the quickest possible solution but for now it works as I want it to) I tried the [[subid]] thing but no success with that. for you guys who said you use that, where does that have to go? Does it have to be in a specific file? I tried using it in the lp.php but to no avail.

thanks again for the people who helped out