vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Notify users when reputation received? (https://vborg.vbsupport.ru/showthread.php?t=132182)

ricknlida 11-22-2006 10:25 AM

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!

Muellmann 11-26-2006 10:47 PM

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");
Plugin is Active: Choose "YES" or it won't work! (no is the default)

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 https://vborg.vbsupport.ru/external/2009/02/1.gif.
Note: If comes a white page instead of the page redirect
your own php code could contain a parse error.

ricknlida 11-27-2006 08:51 AM

Thanks, Muellmann!

Skedoozy 12-05-2006 08:50 AM

How would I modify this to send a PM instead of an email?

Kruppa 06-18-2007 01:22 PM

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?

SBlueman 07-08-2007 05:16 PM

Quote:

Originally Posted by Skedoozy (Post 1132286)
How would I modify this to send a PM instead of an email?

Quote:

Originally Posted by Kruppa (Post 1270961)
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?

I am also interested in seeing if either or both are possible. The second option would be ideal.

brookemegg 11-12-2007 01:58 AM

Thanks for this code!

SBlueman 12-22-2007 06:16 PM

Quote:

Quote:

Originally Posted by Skedoozy (Post 1132286)
How would I modify this to send a PM instead of an email?

Quote:

Originally Posted by Kruppa (Post 1270961)
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?

I am also interested in seeing if either or both are possible. The second option would be ideal.
Anyone?


All times are GMT. The time now is 07:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01072 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete