Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
codsniper
Regular
Regular



Joined: Feb 19, 2007
Posts: 61
Location: Almost at the north-pole

PostPosted: Tue Feb 20, 2007 3:41 am Reply with quote

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)
 
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Tue Feb 20, 2007 3:59 am Reply with quote

turn on your error report and see if that shows any error..
 
View user's profile Send private message
codsniper







PostPosted: Tue Feb 20, 2007 4:07 am Reply with quote

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







PostPosted: Tue Feb 20, 2007 4:08 am Reply with quote

nothing?
and when viewing the module ?
 
codsniper







PostPosted: Tue Feb 20, 2007 4:12 am Reply with quote

Yea found it, and edited the post above..
 
hitwalker







PostPosted: Tue Feb 20, 2007 4:13 am Reply with quote

easy huh... Laughing
 
codsniper







PostPosted: Tue Feb 20, 2007 4:21 am Reply with quote

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







PostPosted: Tue Feb 20, 2007 4:30 am Reply with quote

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







PostPosted: Tue Feb 20, 2007 4:35 am Reply with quote

i had a copy here and looked myself...
the opentablewithhead is not in workboard..
 
codsniper







PostPosted: Tue Feb 20, 2007 4:36 am Reply with quote

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







PostPosted: Tue Feb 20, 2007 4:38 am Reply with quote

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







PostPosted: Tue Feb 20, 2007 4:39 am Reply with quote

its in my index.php file from WorkBoard module version 1.2.0..

Is there a error in my files then?
 
hitwalker







PostPosted: Tue Feb 20, 2007 4:42 am Reply with quote

change all OpenTableWithHead
to
OpenTable

try that and see if that works..
yours isnt original..
 
codsniper







PostPosted: Tue Feb 20, 2007 4:44 am Reply with quote

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







PostPosted: Tue Feb 20, 2007 5:12 am Reply with quote

i dont know cause i never used it...
mail me at hitwalker(at) chello dot nl
ill send it in a reply.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©