Work board help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Work board help
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 58
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
hello i just installed the work board and it all works but the block when you put the block on the main page center i get this message right above it.

Parse error: parse error in /home/stealth/public_html/html/blocks/block-Work_Board.php on line 29

and in the block i get this message

Work Board


There isn't content right now for this block.



Back to top Reply with quote
#2   re: Work board help
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Which version of WorkBoard is this? And did you get it from Nukescripts or Burnwave?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 58
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
i got it from nukescript and the verison is

Module's Name: NSN Work Board
Module's Version: 1.2.0
Release Date: 22 Feb 2004
License: Copyright © 2000-2004 NukeScripts Network & Burnwave Ltd.
Author's Name: NukeScripts Network & Burnwave Ltd.
Module's Description: Advanced project tracking system.

--------------------------------------------------------------------------------

i also got that suporter from there and i can't get the block right it is scrolling off the page.




_________________
Back to top Reply with quote
#4   re: Work board help
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Yea i remeber having some problems with the block too. I can give you mine but I only have the one on the front page. Can you post the contents of the block maybe it is just a simple error.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: Work board help
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 58
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
yes here it is

<?php

/********************************************************/
/* NSN Work Board                                       */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2004 by NukeScripts Network         */
/********************************************************/
/* WorkBoard                                            */
/* Copyright (c) 2003 by Michael Squires                */
/* All rights reserved.                                 */
/* http://www.burnwave.com/                             */
/********************************************************/

if( eregi( "block-Work_Board.php", $_SERVER['PHP_SELF'])) {
   Header("Location: index.php");
   die();
}

global $prefix, $db, $bgcolor2;
$modname = "Work_Board";
get_lang($modname);
require_once("modules/$modname/includes/functions.php");

$content = "<center><table width='100%' border='1' cellspacing='0' cellpadding='2'>";
$content .= "<tr>";
$content .= "<td width=100% bgcolor='$bgcolor2' align='left' colspan='2'><b>"._WB_PROJECTNAME."</b></td>";
$content .= "<td bgcolor='$bgcolor2' align='center'><nobr><b>"._WB_REQUESTS."</b></nobr></td>";
if (is_active("Work_Probe") {
    $content .= "<td bgcolor='$bgcolor2' align='center'><nobr><b>"._WB_REPORTS."</b></nobr></td>";
}
if (is_active("Work_Request") {
    $content .= "<td bgcolor='$bgcolor2' align='center'><nobr><b>"._WB_TASKS."</b></nobr></td>";
}
$content .= "<td bgcolor='$bgcolor2' align='center'><nobr><b>"._WB_STATUS."</b></nobr></td>";
$content .= "<td bgcolor='$bgcolor2' align='center'><nobr><b>"._WB_PROGRESSBAR."</b></nobr></td>";
$content .= "</tr>";
$projectresult = $db->sql_query("SELECT project_id FROM ".$prefix."_nsnwb_projects order by project_name");
while (list($project_id) = $db->sql_fetchrow($projectresult)) {
    $project = wbproject_info2($project_id);
    $status = wbstatus_info($project['status_id']);
    $content .= "<tr>";
    $wbimage = wbimage2("project.png", $modname);
    $content .= "<td align=center><img src='$wbimage' alt='"._WB_PROJECTID." #$project_id' title='"._WB_PROJECTID." #$project_id'></td>";
    $content .= "<td align=left width=100%>".$project['project_name']."</td>";
    if (is_active("Work_Probe") {
        $numrequests = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsnre_requests WHERE project_id='$project_id'"));
        if (!$numrequests) { $numrequests = 0; }
        $content .= "<td align=center width=100%><a href='modules.php?name=Request&op=REViewProject&project_id=$project_id'>$numrequests</a></td>";
    }
    if (is_active("Work_Request") {
        $numreports = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsnpr_bugs WHERE project_id='$project_id'"));
        if (!$numreports) { $numreports = 0; }
        $content .= "<td align=center width=100%><a href='modules.php?name=Probe&op=PRViewProject&project_id=$project_id'>$numreports</a></td>";
    }
    $numtasks = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsnwb_tasks WHERE project_id='$project_id'"));
    if (!$numtasks) { $numtasks = 0; }
    $content .= "<td align=center width=100%><a href='modules.php?name=$modname&op=WBProject&project_id=$project_id'>$numtasks</a></td>";

    $content .= "<td align=center>";
    if($status['status_name'] != ""){ $content .= "".$status['status_name'].""; } else { $content .= "<i>"._WB_NA."</i>"; }
    $content .=  "</td>";
    $content .=  "<td align=left><nobr>";
    $wbimage = wbimage2("bar_left.png", $modname);
    $content .= "<img src='$wbimage' width='1' height='7'>";
    if($project['project_percent'] == 0){
        $wbimage = wbimage2("bar_center_red.png", $modname);
        $content .= "<img src='$wbimage' width='100' height='7' alt='0"._WB_PERCENT." "._WB_COMPLETED."' title='0"._WB_PERCENT." "._WB_COMPLETED."'>";
    } else {
        if($project['project_percent'] > 100){ $project_percent = 100; } else { $project_percent = $project['project_percent']; }
        $wbimage = wbimage2("bar_center_grn.png", $modname);
        $content .= "<img src='$wbimage' width='".$project_percent."' height=7 alt='".$project_percent.""._WB_PERCENT." "._WB_COMPLETED."' title='".$project_percent.""._WB_PERCENT." "._WB_COMPLETED."'>";
        if($project_percent < 100){
            $percent_incomplete = 100 - $project_percent;
            $wbimage = wbimage2("bar_center_red.png", $modname);
            $content .= "<img src='$wbimage' width='".$percent_incomplete."' height=7 alt='".$project_percent.""._WB_PERCENT." "._WB_COMPLETED."' title='".$project_percent.""._WB_PERCENT." "._WB_COMPLETED."'>";
        }
    }
    $wbimage = wbimage2("bar_right.png", $modname);
    $content .= "<img src='$wbimage' width='1' height='7'>";
    $content .=  "</nobr></td>";
    $content .=  "</tr>";
}
$content .=  "</table></center>";

?>



Back to top Reply with quote
#6   re: Work board help
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Line 29, change from:
if (is_active("Work_Probe") {

to:
if (is_active("Work_Probe")) {

Line 32, change:
if (is_active("Work_Request") {

to:
if (is_active("Work_Request")) {




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 58
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
ok i did that now i am getting this error

Parse error: parse error in /home/stealth/public_html/html/blocks/block-Work_Board.php on line 46




_________________
Back to top Reply with quote
#8   re: Work board help
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Post lines 30 - 80 here please.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   re: Work board help
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 58
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
    $content .= "<td bgcolor='$bgcolor2' align='center'><nobr><b>"._WB_REPORTS."</b></nobr></td>";
}
if (is_active("Work_Request")) {
    $content .= "<td bgcolor='$bgcolor2' align='center'><nobr><b>"._WB_TASKS."</b></nobr></td>";
}
$content .= "<td bgcolor='$bgcolor2' align='center'><nobr><b>"._WB_STATUS."</b></nobr></td>";
$content .= "<td bgcolor='$bgcolor2' align='center'><nobr><b>"._WB_PROGRESSBAR."</b></nobr></td>";
$content .= "</tr>";
$projectresult = $db->sql_query("SELECT project_id FROM ".$prefix."_nsnwb_projects order by project_name");
while (list($project_id) = $db->sql_fetchrow($projectresult)) {
    $project = wbproject_info2($project_id);
    $status = wbstatus_info($project['status_id']);
    $content .= "<tr>";
    $wbimage = wbimage2("project.png", $modname);
    $content .= "<td align=center><img src='$wbimage' alt='"._WB_PROJECTID." #$project_id' title='"._WB_PROJECTID." #$project_id'></td>";
    $content .= "<td align=left width=100%>".$project['project_name']."</td>";
    if (is_active("Work_Probe") {
        $numrequests = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsnre_requests WHERE project_id='$project_id'"));
        if (!$numrequests) { $numrequests = 0; }
        $content .= "<td align=center width=100%><a href='modules.php?name=Request&op=REViewProject&project_id=$project_id'>$numrequests</a></td>";
    }
    if (is_active("Work_Request") {
        $numreports = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsnpr_bugs WHERE project_id='$project_id'"));
        if (!$numreports) { $numreports = 0; }
        $content .= "<td align=center width=100%><a href='modules.php?name=Probe&op=PRViewProject&project_id=$project_id'>$numreports</a></td>";
    }
    $numtasks = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsnwb_tasks WHERE project_id='$project_id'"));
    if (!$numtasks) { $numtasks = 0; }
    $content .= "<td align=center width=100%><a href='modules.php?name=$modname&op=WBProject&project_id=$project_id'>$numtasks</a></td>";

    $content .= "<td align=center>";
    if($status['status_name'] != ""){ $content .= "".$status['status_name'].""; } else { $content .= "<i>"._WB_NA."</i>"; }
    $content .=  "</td>";
    $content .=  "<td align=left><nobr>";
    $wbimage = wbimage2("bar_left.png", $modname);
    $content .= "<img src='$wbimage' width='1' height='7'>";
    if($project['project_percent'] == 0){
        $wbimage = wbimage2("bar_center_red.png", $modname);
        $content .= "<img src='$wbimage' width='100' height='7' alt='0"._WB_PERCENT." "._WB_COMPLETED."' title='0"._WB_PERCENT." "._WB_COMPLETED."'>";
    } else {
        if($project['project_percent'] > 100){ $project_percent = 100; } else { $project_percent = $project['project_percent']; }
        $wbimage = wbimage2("bar_center_grn.png", $modname);
        $content .= "<img src='$wbimage' width='".$project_percent."' height=7 alt='".$project_percent.""._WB_PERCENT." "._WB_COMPLETED."' title='".$project_percent.""._WB_PERCENT." "._WB_COMPLETED."'>";
        if($project_percent < 100){
            $percent_incomplete = 100 - $project_percent;
            $wbimage = wbimage2("bar_center_red.png", $modname);
            $content .= "<img src='$wbimage' width='".$percent_incomplete."' height=7 alt='".$project_percent.""._WB_PERCENT." "._WB_COMPLETED."' title='".$project_percent.""._WB_PERCENT." "._WB_COMPLETED."'>";
        }
    }
    $wbimage = wbimage2("bar_right.png", $modname);
    $content .= "<img src='$wbimage' width='1' height='7'>";



Back to top Reply with quote
#10   re: Work board help
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
You didnt change anything in that block apply the fixes above then try it.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum