Author |
Message |
codsniper
Regular


Joined: Feb 19, 2007
Posts: 61
Location: Almost at the north-pole
|
Posted:
Tue Feb 20, 2007 3:41 am |
|
Hi, I just installed the workboard version 1.2.0 and only get a blank module page and no footer when I try to view it.
Anyone have a tip? (Nuke 7.8 - patch 3.3 - last sentinel) |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Tue Feb 20, 2007 3:59 am |
|
turn on your error report and see if that shows any error.. |
|
|
|
 |
codsniper

|
Posted:
Tue Feb 20, 2007 4:07 am |
|
I tryed to turn it on, but where should the errors show?
I dont see anyone anywhere
------ edit ------
Found it:
Fatal error: Call to undefined function opentablewithhead() in /home/cod2ncom/public_html/modules/WorkBoard/index.php on line 27 |
|
|
|
 |
hitwalker

|
Posted:
Tue Feb 20, 2007 4:08 am |
|
nothing?
and when viewing the module ? |
|
|
|
 |
codsniper

|
Posted:
Tue Feb 20, 2007 4:12 am |
|
Yea found it, and edited the post above.. |
|
|
|
 |
hitwalker

|
Posted:
Tue Feb 20, 2007 4:13 am |
|
easy huh...  |
|
|
|
 |
codsniper

|
Posted:
Tue Feb 20, 2007 4:21 am |
|
hehe.. well do you have any tips on how I can fix it and get it to work..
Would love to use this module |
|
|
|
 |
hitwalker

|
Posted:
Tue Feb 20, 2007 4:30 am |
|
7.8 huh...
i never used it,installed it,tried it...whatever...
i do know this error is very rare.
can you post 5 lines before and after line 27 |
|
|
|
 |
hitwalker

|
Posted:
Tue Feb 20, 2007 4:35 am |
|
i had a copy here and looked myself...
the opentablewithhead is not in workboard.. |
|
|
|
 |
codsniper

|
Posted:
Tue Feb 20, 2007 4:36 am |
|
Yes, here you go:
Code:require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
require_once("modules/$module_name/includes/functions.php");
get_lang($module_name);
$index = 1;
##################
# Front Page
##################
function index() {
global $prefix, $db, $bgcolor2, $module_name;
include("header.php");
OpenTableWithHead("<center><b>"._WORKBOARD_MODULE_INDEX_TITLE."</b></center>");
echo "<center>";
echo "<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\">";
echo "<tr>";
echo "<td width=100% bgcolor=\"$bgcolor2\" align=left colspan=2><b>"._WORKBOARD_MODULE_INDEX_PROJECTNAME."</b></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center nowrap=\"nowrap\"><nobr><b>"._WORKBOARD_MODULE_INDEX_STATUS."</b></nobr></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center><nobr><b>"._WORKBOARD_MODULE_INDEX_PERCENT."</b></nobr></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center><nobr><b>"._WORKBOARD_MODULE_INDEX_TASKS."</b></nobr></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center nowrap=\"nowrap\"><nobr><b>"._WORKBOARD_MODULE_INDEX_PRIORITY."</b></nobr></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center><nobr><b>"._WORKBOARD_MODULE_INDEX_ASSIGNED."</b></nobr></td>";
echo "</tr>";
|
|
|
|
|
 |
hitwalker

|
Posted:
Tue Feb 20, 2007 4:38 am |
|
see the difference....
Code:require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
require_once("modules/$module_name/includes/functions.php");
get_lang($module_name);
##################
# Front Page
##################
function index() {
global $prefix, $db, $bgcolor2, $module_name;
include("header.php");
OpenTable();
echo "<center><b>"._WORKBOARD_MODULE_INDEX_TITLE."</b></center>";
CloseTable();
echo "<br>";
OpenTable();
echo "<center>";
echo "<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\">";
echo "<tr>";
echo "<td width=100% bgcolor=\"$bgcolor2\" align=left colspan=2><b>"._WORKBOARD_MODULE_INDEX_PROJECTNAME."</b></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center><nobr><b>"._WORKBOARD_MODULE_INDEX_STATUS."</b></nobr></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center><nobr><b>"._WORKBOARD_MODULE_INDEX_PERCENT."</b></nobr></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center><nobr><b>"._WORKBOARD_MODULE_INDEX_TASKS."</b></nobr></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center><nobr><b>"._WORKBOARD_MODULE_INDEX_PRIORITY."</b></nobr></td>";
echo "<td bgcolor=\"$bgcolor2\" align=center><nobr><b>"._WORKBOARD_MODULE_INDEX_ASSIGNED."</b></nobr></td>";
echo "</tr>";
|
|
|
|
|
 |
codsniper

|
Posted:
Tue Feb 20, 2007 4:39 am |
|
its in my index.php file from WorkBoard module version 1.2.0..
Is there a error in my files then? |
|
|
|
 |
hitwalker

|
Posted:
Tue Feb 20, 2007 4:42 am |
|
change all OpenTableWithHead
to
OpenTable
try that and see if that works..
yours isnt original.. |
|
|
|
 |
codsniper

|
Posted:
Tue Feb 20, 2007 4:44 am |
|
dang... could you pm me a link to the original then?
-- edit --
I changed all the entrys in all php files in the module root folder and now it seems to work as it should.
Another question, are members assigned to a project able to edit the project info/status/progress? Or can only a site admin do that? |
|
|
|
 |
hitwalker

|
Posted:
Tue Feb 20, 2007 5:12 am |
|
i dont know cause i never used it...
mail me at hitwalker(at) chello dot nl
ill send it in a reply. |
|
|
|
 |
|