Help with developing new code
Posted: Fri Aug 18, 2006 3:22 pm
Hello,
I am developing a community site in PHP with lots of customized features and mods. Everything that i have coded i have had previous knowledge of so it has not been that difficult, but i am thinking about adding a new mod to my site that i have never attempted before.
My site currently has a points system, users can earn points which they can then spend on various things. I would like to add a feature whereby users can buy other users aswell. This would mean a link on each users profile, probably a radio button with a submit button, which would then update the mysql database table which contains each users points by deducting the user who has bought the other user the correct amount of points. The cost of each user would be determined by however many other users they own, values which i would set myself, the default amount being 50.
Once a user has bought another user and has been deducted the correct amount of points, they then start to earn a percentage of points off the recently bought user's activity.
A user who is 'owned' by another user has the oppurtunity to 'buy themselves back' at any point using their points.
A users will have a part on their profile that says something like: 'owned by: user1' and 'owns: user2, user4' etc.
This type of system can be found on profilenation.com except it is written in ASP and not PHP.
Could anyone point me in the right direction as to what codes i would need to impliment to get this feature working on my site.
ANY help whatsoever would be greatly appreciated.
Thanks,
Lee
I am developing a community site in PHP with lots of customized features and mods. Everything that i have coded i have had previous knowledge of so it has not been that difficult, but i am thinking about adding a new mod to my site that i have never attempted before.
My site currently has a points system, users can earn points which they can then spend on various things. I would like to add a feature whereby users can buy other users aswell. This would mean a link on each users profile, probably a radio button with a submit button, which would then update the mysql database table which contains each users points by deducting the user who has bought the other user the correct amount of points. The cost of each user would be determined by however many other users they own, values which i would set myself, the default amount being 50.
Once a user has bought another user and has been deducted the correct amount of points, they then start to earn a percentage of points off the recently bought user's activity.
A user who is 'owned' by another user has the oppurtunity to 'buy themselves back' at any point using their points.
A users will have a part on their profile that says something like: 'owned by: user1' and 'owns: user2, user4' etc.
This type of system can be found on profilenation.com except it is written in ASP and not PHP.
Could anyone point me in the right direction as to what codes i would need to impliment to get this feature working on my site.
ANY help whatsoever would be greatly appreciated.
Thanks,
Lee