The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Notify users when reputation received?
I could have sworn I saw a hack or mod that would notify a user via email when someone posted a reputation comment to one of his/her posts, but I can't find it now.
Is this possible? Thanks! |
#2
|
||||
|
||||
The solution would be an example like this:
(easy learning by doing - this is not a ready product just to install ): 1) Go in your Admin Control Panel (ACP) 2) Scroll down to "Plugins & Products" on the left side in acp's nav-frame 3) Expand "Plugin & Products" and choose "Add New Plugin" 4) Then specify: Product: vBulletin (if you haven't till yet an own product specified, so keep "vBulletin" as default) Hook Location: reputation_add_process (this is the hook on which your code runs) Title: inform members about received reputation (or whatever you want) Execution order: 5 (leave the default if you haven't many other plugins on the same hook) Plugin PHP Code*: (it's the php-code that will run on this hook) Code:
mail($userinfo['email'], "Reputation with score ".$score." was given at post no. ".$postid." by ".$vbulletin->userinfo['username'], "reason:\n".$vbulletin->GPC['reason']."\nthread title:\n".$threadinfo[title], "From: ".$vbulletin->options['webmasteremail']."\r\n"); 5) Control if all inputs are matching and then click the "SAVE" button below! You're done and you can be proud! You made your first little plugin *This is just a very simple sample. You can modify it by your own wishes if you know what you do . Note: If comes a white page instead of the page redirect your own php code could contain a parse error. |
#3
|
||||
|
||||
Thanks, Muellmann!
|
#4
|
||||
|
||||
How would I modify this to send a PM instead of an email?
|
#5
|
|||
|
|||
I'd be really interested to know how to make it give a pop - box, like when you get a new PM, but the pop up to say 'you have new reputation' or similar. Is this possible? And hopefully simple?
|
#6
|
|||
|
|||
I am also interested in seeing if either or both are possible. The second option would be ideal.
|
#7
|
|||
|
|||
Thanks for this code!
|
#8
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|