View Issue Details

IDProjectCategoryView StatusLast Update
0012505mantisbtplug-inspublic2012-11-24 12:18
Reportercas Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Product Version1.2.3 
Summary0012505: PM Plugin
Description

Attached an initial version of a Private Message plugin.
After installation, one can send a PM to another user in the system, via the view_user page.
Clearly you can reply and delete messages too.
Optional an email can be triggererd to the receiving party.
Realname can be used but also restricted to username.

Tagsplugin
Attached Files
PM090.ZIP (8,843 bytes)
PM091.ZIP (43,893 bytes)
PM092.ZIP (43,906 bytes)
PM093.ZIP (43,931 bytes)
My_PM_without_button.PNG (21,378 bytes)   
My_PM_without_button.PNG (21,378 bytes)   

Activities

cas

cas

2010-11-03 09:48

reporter   ~0027232

Version 0.91, for changes see the changelog

ajtruckle

ajtruckle

2011-10-18 11:23

reporter   ~0029987

Hello

Is this version compatible with the latest MantisBT environment?

I was trying to following the instructions. I unzipped the folder, put it into my webspace and updated the config file for the path.

But your plugin would not show in the list.

Andrew

cas

cas

2011-10-20 08:45

reporter   ~0030007

Andrew,
on which version are you experiencing issues?
Have not tested this on 1.3x but works great @ 1.24

cas

cas

2011-10-20 09:28

reporter   ~0030008

Bugfix and tested in 1.2.8

ajtruckle

ajtruckle

2011-10-20 09:50

reporter   ~0030009

I am using 1.2.8. I will try your new download.

ajtruckle

ajtruckle

2011-10-20 10:01

reporter   ~0030010

I am using your latest.

The g_path is set.

I put the PM folder into the plugins folder.

I go to manage plugins and yours is not listed.

ajtruckle

ajtruckle

2011-10-20 10:41

reporter   ~0030011

I got it to install.

The server that I am using must be unix because the php file had to be named:

PM.php

and not

pm.php

I have selected it and altered the code.

One question. When I click a name, I can see the new PM stuff. But a warning shows in red at the top:

APPLICATION WARNING #100: Configuration option "plugin_PM_pm_add_threshold" not found.

ajtruckle

ajtruckle

2011-10-20 10:53

reporter   ~0030012

Your code has a bug:

function config() {
    return array(
        'pm_add_threshold '     => VIEWER,

Should be:

function config() {
    return array(
        'pm_add_threshold'      => VIEWER,
ajtruckle

ajtruckle

2011-10-20 10:56

reporter   ~0030013

Last edited: 2011-10-20 11:00

I am very confused ...

I tried sending a message. Now this comes up:

APPLICATION ERROR # 401

Database query failed. Error received from database was # 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's" link for any you sent.

Andrew', NOW(),'O')' at line 2 for the query: INSERT INTO mantis_plugin_PM_messages_table ( pm_user, pm_rec,pm_title,pm_desc,pm_created,pm_type )
VALUES ( '2', '31', 'Testing the Private Message plugin', 'I have added a private message plugin to MantisBT. Sometimes you might want to send a message privately. So I am seeing if this works.

You click on the persons name to do it. And at the top is a "My PM's" link for any you sent.

Andrew', NOW(),'O').

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

ajtruckle

ajtruckle

2011-10-20 11:02

reporter   ~0030014

I think you need to spend a bit of time on this please.

If I write words like:

don't

it throws out the syntax because of the '. Perhaps you should double-quote any ' first. Else it throws an error.

cas

cas

2011-10-21 08:21

reporter   ~0030018

have another go, did a quick fix (i hope)

vboctor

vboctor

2011-10-22 18:15

manager   ~0030029

Sounds like a nice plugin idea. You should consider adding it on github.

Some questions:

  1. Does it all a user with the appropriate rights to send an email to a group of users (e.g. all users or all users for a project)?
  2. Does it use the email queue table when such feature is enable to power email notifications?
  3. Can you send a message to multiple users?
  4. What are the spam protection features?
  5. Can you limit sending messages to a specific threshold, while others can receive, read, delete and reply?
ajtruckle

ajtruckle

2011-10-23 15:04

reporter   ~0030031

Thanks for the update.

cas

cas

2011-10-25 08:58

reporter   ~0030058

@Victor,
currently it works by clicking on the name of the reporter/handler from the View _Issues_Page. Pending sufficient rights, you can send that user a pm, so one by one.
It does not send use the e-mail table but uses a menu item in the main bar.
Currently only to one person , multiples not yet supported.
There is no Spam, thought that was not that much needed being an internal system.
Currently no limit but that could be easily added.

There is another plugin for mailin multiple persons, see http://www.mantisbt.org/bugs/view.php?id=12276

pay2play

pay2play

2012-06-15 15:44

reporter   ~0032110

I am currently running Mantis version 1.2.10. I have installed this plugin and set $g_path in my config_inc file, however when clicking on a user id on the View Bug page I receive the error "APPLICATION WARNING #2400: Event "EVENT_VIEW_USER" has not yet been declared." Any information you can provide to assist with correcting this error?

cas

cas

2012-06-20 04:53

reporter   ~0032120

See the documentation:
Sending a PM is enabled through the View_User_page.
In order to achieve this, a new event has been defined to be used within "view_user_page.php".
The event is called "EVENT_VIEW_USER"

In the same document (install.txt) it is described what change you should make in the referenced php-script.

pay2play

pay2play

2012-06-20 08:25

reporter   ~0032125

I followed the documentation to a "T" and the proper change was made to "view_user_page.php" per the provided install.txt. The "view_user_page.php" is where the error occurs. If the event wasn't added to the "view_user_page.php" file, I would not get an error stating that the event has not been declared when loading the "view_user_page.php" page. I read the documentation, I installed the plugin per the provided instructions.

cas

cas

2012-06-20 09:31

reporter   ~0032126

The event is declared in the plugin itself so it looks you did not activate the plugin?
Please verify under manage/manage plugins

borrmann

borrmann

2012-11-24 09:19

reporter   ~0034384

I have no button to create a private messsage

cas

cas

2012-11-24 12:18

reporter   ~0034385

From the View issue page, you click on the user. From that page, you can send a pm.