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
Project Tools - Create Project Managers who get PM on New or Replies to issues Details »»
Project Tools - Create Project Managers who get PM on New or Replies to issues
Version: 1.10, by Quarterbore Quarterbore is offline
Developer Last Online: Aug 2020 Show Printable Version Email this Page

Category: vBulletin Project Tools - Version: 3.6.8 Rating:
Released: 08-14-2007 Last Update: 08-15-2007 Installs: 23
DB Changes Uses Plugins Template Edits
Code Changes Is in Beta Stage  
No support by the author.

I am a new customer to vBulletin Project tools but I was very disapointed to discover that there was no notification when a new issue was added or replied to in vBulletin Projects.

What does this do?

This modification will create a new field in your projects database where "project managers" as determined by their username is stored. These "project managers" will get PMs when a new issue is added to the system and/or they will get a PM when a reply is posted to a topic that they are the project manager for.

How do I install this?

Step 1: Download the attached product file and install it like you install any vBulletin product file.

Step 2: Then you need to perform the following code edits:

OPEN FILE: admincp/projects.php

FIND:

PHP Code:
if ($_POST['do'] == 'projectupdate')
{
    
$vbulletin->input->clean_array_gpc('p', array(
        
'projectid' => TYPE_UINT,
        
'displayorder' => TYPE_UINT,
        
'title' => TYPE_STR,
        
'summary' => TYPE_STR,
        
'description' => TYPE_STR,
        
'startstatus' => TYPE_ARRAY_UINT,
        
'permissionbase' => TYPE_UINT,
        
'options' => TYPE_ARRAY_UINT,
        
'afterforumids' => TYPE_ARRAY_UINT,
        
'forumtitle' => TYPE_STR
    
)); 
REPLACE WITH

PHP Code:
    if ($_POST['do'] == 'projectupdate')
    {
        
$vbulletin->input->clean_array_gpc('p', array(
            
'projectid' => TYPE_UINT,
            
'displayorder' => TYPE_UINT,
            
'title' => TYPE_STR,
            
'summary' => TYPE_STR,
            
'managers' => TYPE_STR,
            
'description' => TYPE_STR,
            
'startstatus' => TYPE_ARRAY_UINT,
            
'permissionbase' => TYPE_UINT,
            
'options' => TYPE_ARRAY_UINT,
            
'afterforumids' => TYPE_ARRAY_UINT,
            
'forumtitle' => TYPE_STR
    
)); 
FIND

PHP Code:
    $projectdata->set('displayorder'$vbulletin->GPC['displayorder']);
    
$projectdata->set('title'$vbulletin->GPC['title']);
    
$projectdata->set('summary'$vbulletin->GPC['summary']);
    
$projectdata->set('description'$vbulletin->GPC['description']);
    
$projectdata->set('options'array_sum($vbulletin->GPC['options']));
    
$projectdata->set('afterforumids'implode(','$vbulletin->GPC['afterforumids']));
    
$projectdata->set('forumtitle'$vbulletin->GPC['forumtitle']); 
REPLACE WITH:

PHP Code:
    $projectdata->set('displayorder'$vbulletin->GPC['displayorder']);
    
$projectdata->set('title'$vbulletin->GPC['title']);
    
$projectdata->set('summary'$vbulletin->GPC['summary']);
    
$projectdata->set('managers'$vbulletin->GPC['managers']);
    
$projectdata->set('description'$vbulletin->GPC['description']);
    
$projectdata->set('options'array_sum($vbulletin->GPC['options']));
    
$projectdata->set('afterforumids'implode(','$vbulletin->GPC['afterforumids']));
    
$projectdata->set('forumtitle'$vbulletin->GPC['forumtitle']); 
FIND

PHP Code:
print_input_row($vbphrase['title_in_forum_list'], 'forumtitle'$project['forumtitle']); 
AFTER ADD

PHP Code:
    // ADD PROJECT MANAGERS START
    
print_textarea_row("$vbphrase[vbproject_managers]<dfn>$vbphrase[vbproject_one_name_per_line]</dfn>"'managers'$project['managers'], 660);
    
// ADD PROJECT MANAGERS END 

OPEN FILE: includes/class_dm_pt_project.php

FIND:

PHP Code:
        var $validfields = array(
            
'projectid'      => array(TYPE_UINT,       REQ_INCR),
            
'displayorder'   => array(TYPE_UINT,       REQ_NO),
            
'title'          => array(TYPE_STR,        REQ_YES),
            
'title_clean'    => array(TYPE_NOHTMLCONDREQ_AUTO),
            
'summary'        => array(TYPE_STR,        REQ_NO),
            
'summary_clean'  => array(TYPE_NOHTMLCONDREQ_AUTO),
            
'description'    => array(TYPE_STR,        REQ_NO),
            
'options'        => array(TYPE_UINT,       REQ_NO),
            
'afterforumids'  => array(TYPE_STR,        REQ_NOVF_METHOD'verify_commalist'),
            
'forumtitle'     => array(TYPE_STR,        REQ_NO)
    ); 
REPLACE WITH:

PHP Code:
        var $validfields = array(
            
'projectid'      => array(TYPE_UINT,       REQ_INCR),
            
'displayorder'   => array(TYPE_UINT,       REQ_NO),
            
'title'          => array(TYPE_STR,        REQ_YES),
            
'title_clean'    => array(TYPE_NOHTMLCONDREQ_AUTO),
            
'summary'        => array(TYPE_STR,        REQ_NO),
            
'managers'        => array(TYPE_STR,        REQ_NO),
            
'summary_clean'  => array(TYPE_NOHTMLCONDREQ_AUTO),
            
'description'    => array(TYPE_STR,        REQ_NO),
            
'options'        => array(TYPE_UINT,       REQ_NO),
            
'afterforumids'  => array(TYPE_STR,        REQ_NOVF_METHOD'verify_commalist'),
            
'forumtitle'     => array(TYPE_STR,        REQ_NO)
    ); 
Please note, I am posting this early as I need this capability for my own site and I am hoping to get some feedback on how I can improve this. I just coded it this evening and I only have one vBulletin Projects license so I have only tested this on my one site but I believe this should work for anyone...

Version History:
Version 1.0
- First Release
Version 1.1
- Now a project manager will not get a PM about their OWN new posts or replies to posts.

Show Your Support

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

Comments
  #12  
Old 09-19-2007, 06:20 PM
jerrygapinski jerrygapinski is offline
 
Join Date: Sep 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Thanks for the add-on. Anyway to have more custom subjects in the PM? Like the title of the post? I was able to customize the static text via the phrase manager. Also, anyway to differentiate subjects between the initial post and replies?

Thanks, Jerry
Reply With Quote
  #13  
Old 10-14-2007, 11:51 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I am hoping to get some feedback on how I can improve this.
Well I have 2 suggestions:

1-Now that we have managers per category, why not auto assign the project to them in addition of sending PM?

2-In admincp, instead of having to type the names, why not use the same pre polutated javascript box when assigning managers?
Reply With Quote
  #14  
Old 12-03-2007, 07:35 PM
Cars2007 Cars2007 is offline
 
Join Date: Jun 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Quarterbore View Post
OK, I updated the script so that now it will check if the new topic or the reply to the topic was posted by one of project managers. If the post was made by one of the project managers, that project manager will now NOT get a notification that they posted a new topic or reply :erm:
I changed my own copy back to do that anyway, so it works more like JIRA. Would be nice to have this as an option if you have time in some future release.

Thanks, by the way! PT sorely needs this functionality.
Reply With Quote
  #15  
Old 12-07-2007, 12:08 PM
wcm wcm is offline
 
Join Date: Sep 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod!

1. Can you add an option to get instant notification via email directly instead of the PM?
2. It would also be nice if you could include the title of the issue and perhaps some of the text included in the PM/email.
3. A direct link to the issue would also be great.
Reply With Quote
  #16  
Old 12-07-2007, 12:32 PM
Pudelwerfer Pudelwerfer is offline
 
Join Date: Oct 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First: many thanks for your work quarterbore :up::up::up:

Quote:
Originally Posted by wcm View Post
Great mod!

1. Can you add an option to get instant notification via email directly instead of the PM?
2. It would also be nice if you could include the title of the issue and perhaps some of the text included in the PM/email.
3. A direct link to the issue would also be great.
It would be a brilliant extension for this mod - i agree to wcm -

This could be very useful.

---
and please sorry for my english ...
Reply With Quote
  #17  
Old 01-17-2008, 03:22 AM
qdin's Avatar
qdin qdin is offline
 
Join Date: Nov 2006
Location: Istanbul
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx a lot
Reply With Quote
  #18  
Old 10-02-2008, 12:46 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One issue I've found is I was getting this error:

Quote:
Fatal error:

* Too many recipients - you are attempting to send to 7 users but you are only allowed to send to 5 users.

Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in [path]/includes/class_dm.php on line 810
The problem is that an unlimited number of users can be set to receive a project tool PM. However, vbulletin only allows a PM to be addressed to 5 users. So ... the error comes since I had 7 project managers listed.
Reply With Quote
  #19  
Old 11-14-2008, 06:33 PM
towermatt towermatt is offline
 
Join Date: Apr 2007
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can up how many PM's people can send out at once.

I would love it if this thing only sent the PM's to the people the task was assigned to. We have private tasks in some projects and you have to make everyone involved a "manager" at the project level.

But thanks for the great mod, it really helps.
Reply With Quote
  #20  
Old 11-17-2009, 06:49 PM
Pudelwerfer Pudelwerfer is offline
 
Join Date: Oct 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Long Time Ago

Has anyone a Solution or a tip for my and others old old Question?

Quote:
Originally Posted by wcm View Post
Great mod!

1. Can you add an option to get instant notification via email directly instead of the PM?
2. It would also be nice if you could include the title of the issue and perhaps some of the text included in the PM/email.
3. A direct link to the issue would also be great.

Or is there a way to put the text of the issue in the PM?

-----

Any ideas are welcome - Thank you for your help!

MJ

Please sorry for my english!
Reply With Quote
  #21  
Old 01-15-2010, 03:33 AM
ClipBucket's Avatar
ClipBucket ClipBucket is offline
 
Join Date: Feb 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wcm View Post
Great mod!

1. Can you add an option to get instant notification via email directly instead of the PM?
2. It would also be nice if you could include the title of the issue and perhaps some of the text included in the PM/email.
3. A direct link to the issue would also be great.
Your message is three years old, but most likely still unresolved.

I began work on this out of necessity.
I've implemented all three options, though the values are hard coded at the moment.
I'll try to post the code this week; if I can find time.
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 11:09 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.05039 seconds
  • Memory Usage 2,372KB
  • 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
  • (8)bbcode_php
  • (6)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
  • (1)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