vBulletin Project Tools - Color to Indicate Status
This modification is in the archives.
Background:
I am a visual person and with the project(s) I will be using using Project Tools with I need to be able to quickly look at my pages to determine if I still have outstanding issues that need to be addressed. This modification makes it easier for me to keep track of the issues that I have to still address. About the Modification: I am posting this here with the hope that vBulletin takes the code and improves it and turns this into a standard feature of project tools. There are lots of ways this script could be improved but java is not my strong suite and I hope by posing this here someone else can help improve this! The Modifications that are needed: Two files must be edited. Install a product file with one small phrase and a small pluggin. Edit one template OK, let the fun begin! STEP 1: Install the Attached Product File! STEP 2: A Bunch of File Edits! OPEN FILE /AdminCP/project.php FIND PHP Code:
if ($_POST['do'] == 'statusupdate')
PHP Code:
if ($_POST['do'] == 'statusupdate')
PHP Code:
$statusdata->set('displayorder', $vbulletin->GPC['displayorder']);
REPLACE WITH: PHP Code:
$statusdata->set('displayorder', $vbulletin->GPC['displayorder']);
PHP Code:
$issuestatus = array(
PHP Code:
$issuestatus = array(
PHP Code:
print_input_row($vbphrase['display_order'], 'displayorder', $issuestatus['displayorder'], true, 5);
PHP Code:
print_input_row($vbphrase['display_order'], 'displayorder', $issuestatus['displayorder'], true, 5);
PHP Code:
if ($_REQUEST['do'] == 'statusadd' OR $_REQUEST['do'] == 'statusedit')
PHP Code:
if ($_REQUEST['do'] == 'statusadd' OR $_REQUEST['do'] == 'statusedit')
OPEN FILE includes/class_dm_pt_issuestatus.php FIND: PHP Code:
var $validfields = array(
PHP Code:
var $validfields = array(
NOTE - You can change as many or as few cells in row of each issue. In this example I did the first three as shown in the attached image! FIND: PHP Code:
<td class="alt2" align="center">
PHP Code:
<td class="alt2" align="center" style="background-color: $issue[background]">
PHP Code:
<td class="alt1" align="$stylevar[left]">
PHP Code:
<td class="alt1" align="$stylevar[left]" style="background-color: $issue[background]">
PHP Code:
<td class="alt2 smallfont" align="$stylevar[right]" nowrap="nowrap">
PHP Code:
<td class="alt2 smallfont" align="$stylevar[right]" nowrap="nowrap" style="background-color: $issue[background]">
Well, if I didn't scare you off and you are still reading... Just remember to use the color codes as the six digit hexadecimal values with the number sign. Here are the ones I am using: #FFFFFF - White #FFFFCC - Pastel Yellow #CCFFFF - Pastel Blue #FFCCFF - Pastel Pink Note that I use color for issues that need my attention. I use white for the issues that I can ignore... But obviously you can use any colors you want! Now, if you do not add a color value, your site will use the default style colors as well! Download
This modification is archived, downloads are still allowed. Supporters / CoAuthors
Screenshots |