PDA

View Full Version : Private Messages Enhancements - Private Message Warning


Vitaly
01-21-2010, 10:00 PM
vb 4.x version here (https://vborg.vbsupport.ru/showthread.php?t=243405)


This mod allows show custom warning, when somene with to send PM for stuff members. Very useful, to avoid reply million times "just read FAQ, answer to your question is there".

Feature
Each user can set his personal warning text.
You can select, which usergroups can use this mod.
Warning are not shown every time (that irritates). You can set delay (2 weeks by default)Ho to install
Import product XML
Go to ACP and set prefered options
How allower users can set text in UCP.See screenshots.

This product is developped here: http://github.com/rcdesign/vb-pm_warning . Patches are welcome.

LEGS
01-22-2010, 11:05 AM
Will this work with VB 3.8.4 ?

Vitaly
01-22-2010, 11:24 AM
yes

Alfa1
01-22-2010, 02:55 PM
It isn't clear for which member(s) this works. Does it works if someone send a PM to admins, moderators, any staff member?

Vitaly
01-22-2010, 03:09 PM
It isn't clear for which member(s) this works. Does it works if someone send a PM to admins, moderators, any staff member?

Yes. You should select those groups in ACP mod config. Then every member of those groups will be able to setup personal warning (see screenshot). Like "Read forum rules, prior to ask", "Please, see our knowlegs base befor asking" and other bullshit :)

When user try to send PM for such stuff member, he will see warning and text "please press button again if you are really shure".

Alfa1
01-22-2010, 03:30 PM
Great. This will reduce workload as well. Thanks once again.

LEGS
01-22-2010, 06:48 PM
yes

Thank you Vitaly. Downloaded and Installed.

ChopSuey
01-23-2010, 02:41 AM
Thanks Installed & Nominated.

Alfa1
01-23-2010, 06:06 PM
There is a conflict with custom prefixes. If a board has custom DB prefixes, this will result in a database error if people try to send a PM to staff members.

Database error in vBulletin 3.8.3:

Invalid SQL:
SELECT `lasttime`
FROM vb6_`pmwarninglasttime`
WHERE
`userid` = 73014 AND `recipientid` = 1
AND `lasttime` > 1263582318;

MySQL Error : Table 'mysite_forum.vb6_' doesn't exist
Error Number : 1146
Request Date : Friday, January 22nd 2010 @ 08:05:18 PM
Error Date : Friday, January 22nd 2010 @ 08:05:19 PM
Script : http://www.mysite.com/forum/private.php?do=insertpm&pmid=275425
Referrer : http://www.mysite.com/forum/private.php?do=showpm&pmid=275425
IP Address : xx.xx.xxx.xxx
Username : user2
Classname : vB_Database
MySQL Version :

Vitaly
01-23-2010, 06:13 PM
Thank for bugreport. I'll fix it in the begining of week.

Vitaly
01-23-2010, 06:42 PM
Please, check if attached file fixes reported bug.

BigBass
01-24-2010, 07:43 AM
Let me know when this bug is fixed, It looks like something i can really use!

xorex
03-16-2010, 09:12 PM
I has sent two issues on github

Так же хотелось бы иметь возможность указывать отдельных пользователей кто может использовать предупреждения, потому что не всегда нужно давать всем пользователям из всей группы возможность использовать эту функцию.

matthewhotdude
03-16-2010, 10:24 PM
Ive set the message but it's not showing up to anyone

xorex
03-16-2010, 10:33 PM
Ive set the message but it's not showing up to anyone

you push send message button in PM ?

warning show only after send message button

Vitaly
03-17-2010, 03:30 AM
I has sent two issues on github

Thanks for report. I've recorded your suggestion too. Will be fixed in 2 weeks.

Alfa1
05-24-2010, 06:09 PM
My users get this error when they register:

Fatal error: Call to a member function clean_gpc() on a non object in /public_html/forum/includes/class_dm_user.php(2956) : eval()'d code on line 18 line 2956 of class_dm_user.php is:
($hook = vBulletinHook::fetch_hook('private_insertpm_proces s')) ? eval($hook) : false; Your plugin named 'Get warning message' uses the hook private_insertpm_process.

Could you check what causes this problem with line 18 of this plugin?

Vitaly
05-24-2010, 07:45 PM
Will check tommorow. Do you have autosend welcome PM after registration ? If yes, is it via vB standard feature or some mod?

Alfa1
05-24-2010, 10:35 PM
I have the standard autosend welcome PM active.

Vitaly
05-26-2010, 03:55 PM
Please, check if attached file helps.

Alfa1
06-14-2010, 08:20 AM
This seemed to have done the trick. I am receiving no more complaints about errors. Thank you!

Alfa1
08-03-2010, 08:54 PM
Which is the latest version: the 0.4 version, or the one you posted above?
Could you post a changelog?

Vitaly
08-05-2010, 01:32 PM
I've updated product to one from last post. It's the latest version for vb3.8 and no longer developped. All next changes are for vb4.0 only, in appropriate topic.

Ghostt
08-05-2010, 06:04 PM
is it possible to set up a standartwarning for all usergroups selcted?
would be a great improve. spasibo!

Alfa1
08-05-2010, 11:31 PM
This version still shows as version 7, while my adminCP shows a newer version (8) is available.

Vitaly
08-13-2010, 08:53 AM
Next version is for vb 4.0. Don't use it.

Ghostt
08-13-2010, 03:54 PM
but we need a working one for 3.8 isnt it possible to do this feature i ve suggest? https://vborg.vbsupport.ru/showpost.php?p=2079713&postcount=24

Vitaly
08-16-2010, 07:32 AM
Ghostt, this mod is working. If features set doesn't satisfy your needs - I can't help. First, because i don't develop mods for 3.8 branch anymore. Second, because i'm limited in time, to accept custom request.

This code is marked as reuseable. Try to find someone else, who can make modifications for you.