|
Post by Freddy on Apr 2, 2011 18:15:03 GMT -5
EDIT BY UNFAIRBEAR: Team Leader should keep a list of members of this team in this original post. Anyone can join the team, even if you're on another team. The Team Leader is whoever takes charge of the Team (Freddy in this case). ///////////////////////////////// Ok, let's start! So far, we have in the coding team: Tyrope SwimFellow UnfairBear Freddy James First of all, read this thread. How do you think we could implement it?
|
|
|
Post by bombmaniac on Apr 3, 2011 6:55:09 GMT -5
hey! HEY! HEY!!! GET YOUR ASSES OVER HERE AND DO THIS BITCH!
|
|
|
Post by Alex on Apr 3, 2011 7:21:16 GMT -5
Did I say I was a coder? Must have been an accident. I suck at coding.
|
|
|
Post by Tyrope on Apr 3, 2011 8:15:11 GMT -5
Either we (A) Need access to the current database, or (B) Make a database and have every registration with referral drop there. should we do B, i could make a database on tyrope.nl currently thinking of a table-layout... i think this'll work: UID | Username | Referrer | 1 | Tyrope | | 2 | John | Tyrope | 3 | Hank | John | 4 | Dennis | Tyrope |
UID = the always-needed auto-increment primary key. Username = the person who just registered Referrer = the account the referral link clicked belongs too. As for data retrieval (dummy code ahead!): REQUEST: who referred John? CODE: $output = get 'referrer' from 'table' where 'username' = "John" RESULT: Tyrope REQUEST: how many refers does Tyrope have? CODE: $count = get 'UID' from 'table' where 'referrer' = "Tyrope" $output = $count 's length RESULT: $count = array('John','Dennis'), $output = 2. edit: i'm silly, $count = array (2,4)
|
|
|
Post by bombmaniac on Apr 3, 2011 9:15:56 GMT -5
someone get Patrick in on this...
|
|
|
Post by Tyrope on Apr 4, 2011 6:25:50 GMT -5
Alright, i just noticed that this site runs on perl, not PHP... That's going to limit my capabilities, since i know squat about perl.
|
|
|
Post by Freddy on Apr 5, 2011 19:14:56 GMT -5
Ok, so here's the deal. Seeing that we don't have any access whatsoever to the main ProBoards database, we can only tally hits to a personal URL. My way of implementing that would be: 1. Create custom URLs that count each hit and redirect to the main page. (e.g. southpoleofthemoon.com/freddy, southpoleofthemoon.com/tyrope or whatever, you get the point.) and store them in a database. (or simply pass usernames as POST arguments?) 2. Use the library RadicallyBlue suggested (I can't remember the name) to dynamically generate personal QR codes (with the custom URLs) and posters containing them. 3. Keep track of the hits and display them on a ranking system and in individual profile pages. (I know we can do that because the awards system/like button work that way) We have to get points 1 and 2 working as fast as possible so people can distribute their custom posters. Specially #1; I can take care of creating QR codes and attaching them to posters while we work on the backend. Tyrope, can you get started on #1? I know almost nothing of PHP, so I can't help with that
|
|
|
Post by bombmaniac on Apr 5, 2011 19:34:12 GMT -5
Also implement some system that Limits hit points by up address
|
|
|
Post by Tyrope on Apr 5, 2011 21:52:27 GMT -5
Tyrope, can you get started on #1? I know almost nothing of PHP, so I can't help with that Aye capt'n, full speed ahead. I believe it would be hard to use spotm.com/username though I was more thinking of a /?ref=username. Easier to implement: <?php if(isset($_POST['ref'])){ global $referrer; $referrer = $_POST['ref']; require_once('path_to_file/refer.php'); } ?> ofc, this is a rough code, and probably fail any REAL syntax checks
|
|
|
Post by Freddy on Apr 5, 2011 22:20:47 GMT -5
I was more thinking of a /?ref=username. Easier to implement (or simply pass usernames as POST arguments?) That's what I thought. Could you build a working prototype for the counting script? I'll start reading on the QR code and image manipulating libraries Blue suggested.
|
|
|
Post by Tyrope on Apr 5, 2011 23:19:21 GMT -5
Could you build a working prototype for the counting script? 6AM, a perfect time to start working! As my response to This old post I went ahead and made a git. URL
|
|
|
Post by Freddy on Apr 5, 2011 23:24:55 GMT -5
6AM, a perfect time to start working! lol Awesome! Can you add me as a collaborator? (frcepeda)
|
|
|
Post by Tyrope on Apr 5, 2011 23:54:00 GMT -5
Done. We're getting somewhere!
|
|
|
Post by Insane_Zang on Apr 6, 2011 13:18:42 GMT -5
You know, if it's too complicated, you can just screw it and make a section for when you sign up to type in the username of your refer...er
|
|
|
Post by Tyrope on Apr 6, 2011 14:55:31 GMT -5
Well, if i somehow could inject new users into the system, i could basically hijack the full registration process.. if only i could.
|
|
Quinn
Star
[AWD:191c07]
The eye of compromise.
Posts: 580
|
Post by Quinn on Apr 7, 2011 20:09:53 GMT -5
I can design some awards for "top refer-er"
Somewhat like the Ranks or Awards.
(and then actually send them like a gift card or something...)
|
|
|
Post by Freddy on Apr 7, 2011 20:16:37 GMT -5
Nice!
I think that'd go in the awards thread. :]
|
|
|
Post by bombmaniac on Apr 7, 2011 23:36:46 GMT -5
so...any projected timetable on this?
|
|
|
Post by Freddy on Apr 8, 2011 6:29:38 GMT -5
things are getting done, but there's no ETA yet.
|
|
|
Post by bombmaniac on Apr 8, 2011 9:16:06 GMT -5
cool keep it up!
|
|