Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 11-22-2006, 10:25 AM
ricknlida's Avatar
ricknlida ricknlida is offline
 
Join Date: Nov 2005
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 11-26-2006, 10:47 PM
Muellmann's Avatar
Muellmann Muellmann is offline
 
Join Date: Jun 2006
Location: near keyboard
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Note: If comes a white page instead of the page redirect
your own php code could contain a parse error.
Reply With Quote
  #3  
Old 11-27-2006, 08:51 AM
ricknlida's Avatar
ricknlida ricknlida is offline
 
Join Date: Nov 2005
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Muellmann!
Reply With Quote
  #4  
Old 12-05-2006, 08:50 AM
Skedoozy's Avatar
Skedoozy Skedoozy is offline
 
Join Date: May 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I modify this to send a PM instead of an email?
Reply With Quote
  #5  
Old 06-18-2007, 01:22 PM
Kruppa Kruppa is offline
 
Join Date: Apr 2003
Location: Canada
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 07-08-2007, 05:16 PM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Skedoozy View Post
How would I modify this to send a PM instead of an email?
Quote:
Originally Posted by Kruppa View Post
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.
Reply With Quote
  #7  
Old 11-12-2007, 01:58 AM
brookemegg brookemegg is offline
 
Join Date: Jan 2007
Location: Chicagoland
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this code!
Reply With Quote
  #8  
Old 12-22-2007, 06:16 PM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Quote:
Originally Posted by Skedoozy View Post
How would I modify this to send a PM instead of an email?
Quote:
Originally Posted by Kruppa View Post
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?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04566 seconds
  • Memory Usage 2,225KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete