vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - PM notification when receiving reputation points (https://vborg.vbsupport.ru/showthread.php?t=162083)

JustAskJulie 04-01-2008 04:10 PM

Quote:

Originally Posted by skhms (Post 1478839)
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!

JustAskJulie 04-01-2008 04:40 PM

how do I change it so that the PM comes from the admin rather than the user who left the reputation?

skhms 04-01-2008 07:14 PM

Quote:

Originally Posted by JustAskJulie (Post 1480169)
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

vithorius 04-18-2008 03:11 PM

Quote:

Originally Posted by JustAskJulie (Post 1480169)
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.

skhms 04-18-2008 05:21 PM

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

skhms 04-19-2008 09:23 PM

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

vithorius 04-22-2008 01:57 PM

Quote:

Originally Posted by skhms (Post 1494756)
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:

MissKalunji 05-08-2008 06:15 PM

i take it that it doesn't work on 3.7? i tried it and no pm gets sent

skhms 05-08-2008 07:20 PM

Quote:

Originally Posted by MissKalunji (Post 1512936)
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

MissKalunji 05-08-2008 07:29 PM

oh woops i thought it was by default...

How can i make it default for everyone?


All times are GMT. The time now is 02:21 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.01185 seconds
  • Memory Usage 1,756KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete