Back to vBulletin 3.6 Add-ons

Project Tools - Create Project Managers who get PM on New or Replies to issues
Mod Version: 1.10, by Quarterbore

This modification is in the archives.
vB Version: 3.6.8 Rating: (4 votes - 4.75 average) Installs: 23
Released: 15 Aug 2007 Last Update: 17 Aug 2007 Downloads: 91
Not Supported DB Changes Uses Plugins Template Edits Code Changes Is in Beta Stage  

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.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-project_projectmanager_pm.xml (5.8 KB, 85 downloads)

Screenshots

Click image for larger version
Name:	project_post.jpg
Views:	379
Size:	40.1 KB
ID:	68602   Click image for larger version
Name:	managers.jpg
Views:	233
Size:	21.8 KB
ID:	68603  

Similar Mods

vBulletin Project Tools Unclosed Assigned Issues In Project Tools vBulletin 3.6 Add-ons
vBulletin Project Tools My Assigned Issues In vBulletin Project Tools vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024