Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PM notification when receiving reputation points Details »»
PM notification when receiving reputation points
Version: 1.1.2, by skhms skhms is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.8 Rating:
Released: 11-05-2007 Last Update: 06-17-2008 Installs: 49
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

SK Reputation Notification v1.1.2

Updated to v1.1.2 - 2008-06-18

Notification system for reputation comments.
This modification sends a private message (PM) to the user whenever someone gives him/her a reputation comment.
User must first enable the function on the User CP => Edit Options page. It's off by default.

Created and tested on vBulletin 3.6.8
This mod uses the template hook - $template_hook[usercp_options_messaging]. Which is new since 3.6.8.
So it won't work in earlier versions without some editing on your own.

Two step installation.
Copy 1 file. Import the product.
See instructions in the attached zip file.

Version history:
  • v1.1.2 - 2008-06-18
    Support for option 'Can See Who Left User Ratings'.
    - If user not allowed to see who left a reputation comment the sender of the notification PM will always be the specified user and not the actual user leaving a comment.
    - Also a different message will be used with no name included.
  • v1.1.1 - 2008-04-19
    Added admin options so you can specify a specifik user as the sender of the notification PM.
  • v1.1.0 - 2007-11-06
    First official release.
  • v1.0.0
    First attempt. Not available.
/SK

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-01-2008, 04:10 PM
JustAskJulie JustAskJulie is offline
 
Join Date: Nov 2002
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by skhms View Post
Its in your config.php file (includes/config.php).
If you left it empty then you obviously don't need to add anything.

/SK
Thanks. Found it. And fixed it!
Reply With Quote
  #23  
Old 04-01-2008, 04:40 PM
JustAskJulie JustAskJulie is offline
 
Join Date: Nov 2002
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do I change it so that the PM comes from the admin rather than the user who left the reputation?
Reply With Quote
  #24  
Old 04-01-2008, 07:14 PM
skhms's Avatar
skhms skhms is offline
 
Join Date: Oct 2006
Location: Sweden
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JustAskJulie View Post
how do I change it so that the PM comes from the admin rather than the user who left the reputation?
You need to edit the plugin "Send Reputation PM".

Find
PHP Code:
$pmdm->set'fromuserid'$vbulletin->userinfo['userid'] );
$pmdm->set'fromusername'$vbulletin->userinfo['username'] ); 
Change $vbulletin->userinfo['userid'] and $vbulletin->userinfo['username'] to the user id and the name of your admin account, or whatever user you want to use.
PHP Code:
$pmdm->set'fromuserid');
$pmdm->set'fromusername''admin' ); 
To change the name in the message
Find
PHP Code:
$pmdm->set'message'construct_phrase($vbphrase['sk_repnotif_pm_message'], $score$db->escape_string(fetch_censored_text($vbulletin->GPC['reason'])), $vbulletin->userinfo['username'], $vbulletin->options['bburl'] . "/showthread.php?p=" $postid ) ); 
And again change $vbulletin->userinfo['username'] to whatever name you want to use
PHP Code:
$pmdm->set'message'construct_phrase($vbphrase['sk_repnotif_pm_message'], $score$db->escape_string(fetch_censored_text($vbulletin->GPC['reason'])), 'admin'$vbulletin->options['bburl'] . "/showthread.php?p=" $postid ) ); 
/SK
Reply With Quote
  #25  
Old 04-18-2008, 03:11 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JustAskJulie View Post
how do I change it so that the PM comes from the admin rather than the user who left the reputation?
Man! I think this hack is a wonderful hack!

Although, I would like to know if you could put this suggestion from 'JustAskJulie' into the hack itself? (so that there would be a way that we could choose who is the sender via the AdminCP?)

Also, could the sender be an non existing member?
(I ask you this because I do not know what would happen to the Admin's 'Sent Items' folder when there will be so many PMs sent... - will the box become full? Or there will be NO messages on the 'Sent Items' folder at all?)

Please do answer!

Thank you very much!



P.S. - Sorry my bad english - I'm a native portuguese speaker.
Reply With Quote
  #26  
Old 04-18-2008, 05:21 PM
skhms's Avatar
skhms skhms is offline
 
Join Date: Oct 2006
Location: Sweden
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Being able to choose sender yourself is a good feature.
I will add it in a future release. No promises when I will get around and do it though.

There will be no messages in the 'Sent Items' folder, so it won't be filled.
Not sure what happens if you use a non-existens userid. I think the PM will be sent but the postbit with the senders username and avatar won't be correct.

/SK
Reply With Quote
  #27  
Old 04-19-2008, 09:23 PM
skhms's Avatar
skhms skhms is offline
 
Join Date: Oct 2006
Location: Sweden
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, it didn't take that long.
I have uploaded a new version (1.1.1) of the modification.

Only added the requested feature.
Now you can specify a specifik user in the admincp that will be the sender of the notification PM.

/SK
Reply With Quote
  #28  
Old 04-22-2008, 01:57 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by skhms View Post
ok, it didn't take that long.
I have uploaded a new version (1.1.1) of the modification.

Only added the requested feature.
Now you can specify a specifik user in the admincp that will be the sender of the notification PM.
GREAT! I've just created a new user (basically my Forum's 'name') and the notifications will be sent from this 'user'.

I will edit the phrasing system of your mod, so I can inform users that the PM will not accept any kind of reply! (I disabled on this 'user' the ability to receive PMs)


EXCELLENT MOD!!! :up: :up: :up: :up: :up:
Reply With Quote
  #29  
Old 05-08-2008, 06:15 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i take it that it doesn't work on 3.7? i tried it and no pm gets sent
Reply With Quote
  #30  
Old 05-08-2008, 07:20 PM
skhms's Avatar
skhms skhms is offline
 
Join Date: Oct 2006
Location: Sweden
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji View Post
i take it that it doesn't work on 3.7? i tried it and no pm gets sent
Really? I haven't had any problems using it on 3.7

Are you sure that the user receiving reputation has turned on notifications? (User CP => Edit Options => Messaging & Notification )

/SK
Reply With Quote
  #31  
Old 05-08-2008, 07:29 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh woops i thought it was by default...

How can i make it default for everyone?
Reply With Quote
Reply


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 10:06 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.04696 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete