![]()
seboyd2000 wrote: admin maybe you can help me here, or maybe create a new Tutorial on this... or maybe you already have one Lets say I have the nuke point system installed (and I believe its already in phpnuke v7.9+) I just want a simple way to allow member to use their point for different things... For example: Lets say that I want to give members an item... if they have collected enough points to get it... and the item that i want to give them, is named a WIDGET Now I create a block, and put in a picture of the item, and state that it costs 1000 points... for example, to download it, and I upload a file of the item to the downloads module Is there a section of code that I can install or place into this new block, that will first check the users points to see if they have enough points for the item, and if so allow an auto-download of the item, without redirecting them to the download listing page, and if they do not have enough points, tell them this instead... thanks Posted: Mon May 07, 2007 6:22 am
admin(Mark) wrote: You can create function to simplify the points check. The example should do the trick
That code will do the check and make sure the user has enough points before seeing the download link. Of course you would need another function if you want to subtract the points from their account. Posted: Mon May 07, 2007 12:06 pm
seboyd2000 wrote: Admin excellent... thanks so could you give me the other section that would subtract the points, when you have time ti make it (please please)... because that would be the main thing that I need to accomplish this action that I described above thanks again Posted: Tue May 08, 2007 8:01 am
admin(Mark) wrote: I will try to write a function for you later today that should take away the points when a user clicks to download the file. Posted: Sat May 12, 2007 9:04 am
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||