Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
This is My Mini Project
 
I am working on Reward points management where i need to check every users actions for which they are awarded points actions like spending some amount of money ears few points etc..., if points are consumed they need to be deducted from the card of the specific user.
 
I have done with Giving points to particular game
please give me some ideas to track these actions
 
Thanks In Advance
Posted 18-Oct-10 4:49am
Edited 18-Oct-10 4:53am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

you will need to store these in a database
 
for each action they do on (I assume) a particular job, record the action they have completed and the points associated with that action into a database.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

As Simon, you need to store all in database.
first, of all you need to define what all action can be taken by a User and then define the no of points earn/redeem by user on every action.
 
Now whenever user takes a action, first of all make a entry in the database, that what action is taken,at what time, how many points earned/redeemed and other information according to your requirement.
Also add/substarct the points from the total point.
 
Now whenever you want to see/track the user actions, you can get from database according to your need.
 
This is the basic idea, you can change it according to your requirement.
 
Hope this help you.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

If you dont want to use a database, you can store your data in a text file. However, if the number of users are excpected to be large this is NOT a recommended idea.
 
Storing in a file can only be a mini-solution (for a small number of users).
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 319
2 CPallini 275
3 DamithSL 214
4 Maciej Los 185
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 18 Oct 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100