I've been using PHP Nuke for a few months now, and I've slowly learned the ins and outs of it. However, for my next project, I'm definately going to need some help. What I want to do is add a User Referred by: text box to the Registration page, so that new members who register may choose to write the name of the member who referred them. Even better would be if I could get a drop down box of all the members, and have them select from there.
Once they've chosen the member, then I want somehow that to go to a new module, where I can get a listing of each member, and how many people they have referred. This seems to be a relatively simple script, or modification of the registration page, but due to my little (current) experience programming in PHP (I've done Java, and Python, but no PHP yet), I'm a little weary of trying this alone.
The way I have planned this is this:
- In the Registration page, I add the User Referred by and then the text box, or drop down box of members.
- When a person registers, the referred member name is stored in a new row in the user's database table
- Somehow, I can get a module page to list each member, and have a number beside their name (or the individual members) of whom they referred.
That's it! Now, if anyone out there is willing to help, or point me in the right direction that'd be greatly appreciated.
Note: I tried to find a hack/addon/module, or anything that has already been created, but couldn't find anything. Maybe I wasn't looking in the correct spot, but if this has already been done, please let me know where and by whom, and I'll get into contact with them. Thanks.
Alright, for the past 20 minutes I have been tinkering around in there. So far, all I've been able to do is add the text box. What I was trying to do next was add a row to the nuke_user SQL, but I cannot see anywhere there to add a new row. How exaclty is that done?
I checked out the Add Fields mod, but what I need is something a little more than that. However, that is actually still quite good, and I'll be able to use that mod for something else I had in mind.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum