Closed (fixed)
Project:
User Points Contributed modules
Version:
6.x-1.x-dev
Component:
Code: userpoints_admin_email
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2009 at 08:35 UTC
Updated:
4 Mar 2010 at 05:56 UTC
Comments
Comment #1
sbsimmons86 commentedAnyone?
Comment #2
jredding commentedThis feature isn't available but you are welcome to code it if you'd like. Take a look at the modules in userpoints_contrib to see if any of the modules get close to what you want and start from there.
i do remember a module that sends out emails but I don't think its based on thresholds (although it wouldn't be difficult to modify to do so).
Comment #3
kbahey commentedI created a new module called userpoints_admin_email.
It will be available in the -dev tarball about 10 hours from the time of this posting.
Comment #4
jredding commentedwell there you go..
Comment #5
sbsimmons86 commentedPerfect! I really appreciate it!
I will update in the morning.
Thanks,
Sam
Comment #6
sbsimmons86 commentedI updated and got your new module working... there is only one problem, I set my threshold to 25 and I get this message:
User CactusJack (http://fishnarizona.com/anglers/cactusjack) has reached the number of points set in the threshold: 10
Comment #7
sbsimmons86 commentedIt appears I am getting a message every time a user earns points...
Comment #8
kbahey commentedI committed a fix for this to check the user's current balance against the threshold.
Check the new tarball that will be created 9 hours from now.
Comment #9
sbsimmons86 commentedI appreciate it... I got it updated.. will let you know how it works.
Thanks
Sam
Comment #11
mcfilms commentedSorry to re-open this issue. But I realize this userpoints add-on module may be able to be modified to do what I need.
Is it possible to notify the USER when their own userpoints get BELOW a certain level?
I suppose the below part might be a bit tricky. But changing who to send the mail to seem to be doable.
I think all I'd need to do is change this section:
But to what I am not sure. The first line looks like it is getting user1. So maybe we don't need that. Maybe it is as simple as $email = $user->mail;
Would that line use the mail address of the user who has triggered this mail?
Thanks for any advice.