xoops forums

gronice

Just popping in
Posted on: 2003/11/4 19:34
gronice
gronice (Show more)
Just popping in
Posts: 30
Since: 2003/7/31
#71

Re: WebSlave Project - a project managment tool

Another bug fixed:

- some added slashes hadn't been stripped

Download v.0.7.11

Have fun
G'Ron

DaBoyz

Just popping in
Posted on: 2003/12/31 10:20
DaBoyz
DaBoyz (Show more)
Just popping in
Posts: 79
Since: 2002/8/8 1
#72

Re: WebSlave Project - a project managment tool

WarningCall-time pass-by-reference has been deprecated argument passed by value; If you would like to pass it by referencemodify the declaration of [runtime function name](). If you would like to enable call-time pass-by-referenceyou can set allow_call_time_pass_reference to true in your INI fileHoweverfuture versions may not support this any longerin ...moduleswsprojectclassfunctions.php on line 215

Warning
Call-time pass-by-reference has been deprecated argument passed by value; If you would like to pass it by referencemodify the declaration of [runtime function name](). If you would like to enable call-time pass-by-referenceyou can set allow_call_time_pass_reference to true in your INI fileHoweverfuture versions may not support this any longerin ...moduleswsprojectclassfunctions.php on line 232

Warning
Call-time pass-by-reference has been deprecated argument passed by value; If you would like to pass it by referencemodify the declaration of [runtime function name](). If you would like to enable call-time pass-by-referenceyou can set allow_call_time_pass_reference to true in your INI fileHoweverfuture versions may not support this any longerin ...moduleswsprojectclassfunctions.php on line 259


What can I do exactly to correct this on Xoop 2.5.0.1 ?

DaBoyz

Just popping in
Posted on: 2003/12/31 10:29
DaBoyz
DaBoyz (Show more)
Just popping in
Posts: 79
Since: 2002/8/8 1
#73

Re: WebSlave Project - a project managment tool

I changed some code (suppression of '&' in red) and the warning messages disappeared :

function sortTasksBySubTasks([color=FF0000]&[/color]$project) {        
    if (isset(
$project['tasks'])) {
        
$new_array = array();
        foreach (
$project['tasks'] as $key => $value) {
            if (isset(
$value['parent_id']) and $value['parent_id'] == '0') {
                
$withoutChild $value;
                if (
$value['children'] != NULL) {
                    
$withoutChild['children'] = 1;
                }
                else {
                    
$withoutChild['children'] = NULL;
                }
                
$new_array[] = $withoutChild;
                if (
$value['children'] != NULL) {
                    
addSubTasks([color=FF0000]&[/color]$new_array$value);
                    
                }
            }
        }
        if (
count($new_array) < 1) {
            foreach (
$project['tasks'] as $key => $value) {
                if (isset(
$value['parent_id'])) {
                    
$withoutChild $value;
                    if (
$value['children'] != NULL) {
                        
$withoutChild['children'] = 1;
                    }
                    else {
                        
$withoutChild['children'] = NULL;
                    }
                    
$new_array[] = $withoutChild;
                    if (
$value['children'] != NULL) {
                        
addSubTasks([color=FF0000]&[/color]$new_array$value);
                        
                    }
                }
            }
        }
        
$project['tasks'] = $new_array;
    }
}

and
function addSubTasks($array$parent) {
    foreach (
$parent['children'] as $value) {
        
$withoutChild $value;
        if (
$value['children'] != NULL) {
            
$withoutChild['children'] = 1;
        }
        else {
            
$withoutChild['children'] = NULL;
        }
        
$array[] = $withoutChild;
        if (
$value['children'] != NULL) {
            
$this->addSubTasks([color=FF0000]&[/color]$array$value);
        }
    }
}

Jerico

Just popping in
Posted on: 2004/2/24 2:28
Jerico
Jerico (Show more)
Just popping in
Posts: 7
Since: 2004/2/24
#74

Re: WebSlave Project - a project managment tool

i get the following errors:( did I do anything wrong here with installing it? How can I fix this?

Quote:

SELECT name, startdate, enddate, description FROM xoops_ws_projects WHERE project_id=
Error number: 1064
Error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT SUM(hours) AS done FROM xoops_ws_tasks WHERE status = 100 AND deleted = 0 AND project_id=
Error number: 1064
Error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT SUM(hours) AS todo FROM xoops_ws_tasks WHERE status < 100 AND deleted = 0 AND project_id=
Error number: 1064
Error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1


-----------mysql debugging----------------

and the following php error
Quote:

Notice [PHP]: Undefined variable: project_id in file modules/wsproject/blocks/smallblock.php line 52
Notice [PHP]: Undefined variable: project_id in file modules/wsproject/blocks/smallblock.php line 57
Notice [PHP]: Undefined variable: project_id in file modules/wsproject/blocks/smallblock.php line 63
Notice [PHP]: strtotime(): Called with empty time parameter in file modules/wsproject/class/functions.php line 32
Notice [PHP]: strtotime(): Called with empty time parameter in file modules/wsproject/class/functions.php line 33
Notice [PHP]: strtotime(): Called with empty time parameter in file modules/wsproject/class/functions.php line 33
Notice [PHP]: Constant WS_PROJECT already defined in file modules/wsproject/blocks/mytasks.php line 27

gronice

Just popping in
Posted on: 2004/2/24 7:11
gronice
gronice (Show more)
Just popping in
Posts: 30
Since: 2003/7/31
#75

Re: WebSlave Project - a project managment tool

Hi,

please try to deactivate the small block.
After you've added a project you could try to reactive the block and configure it.

Kind Regards
G'Ron

Jerico

Just popping in
Posted on: 2004/2/24 18:07
Jerico
Jerico (Show more)
Just popping in
Posts: 7
Since: 2004/2/24
#76

Re: WebSlave Project - a project managment tool

hmm, i seem to be having a bit of troubles with this one...

I deactivated the blocks, but I can't seem to figure out where to create a project.. In fact, I've never been able to find it, I assumed it had something to do with the errors I am getting.. Perhaps I'm not disabling the correct block.. Which block is the small block?

I see 3 blocks that come with webslave,

Project Status
My Tasks
Project Overview

ahh nevermind, required the system main menu, I was using the imenu:) I thought I had already checked it, so either I'm dumb, or the errors were causing problems in the main menu Thanks for a great module!

gronice

Just popping in
Posted on: 2004/2/28 0:37
gronice
gronice (Show more)
Just popping in
Posts: 30
Since: 2003/7/31
#77

Re: WebSlave Project - a project managment tool

You'll gave to give your administrator group the admin rights in the modul administration.

Now you'll find everything at "new project" I think.

But your problem I can't find, don't know what kind of bug it may be.





--
New version:
wsProject 0.7.12
- fixed French translation
- added Swedish translation


Download v.0.7.12

Kind Regards

philou

Quite a regular
Posted on: 2004/2/28 7:30
philou
philou (Show more)
Quite a regular
Posts: 384
Since: 2002/5/6 8
#78

Re: WebSlave Project - a project managment tool

thanks for this release... just some problems
Warning: Call-time pass-by-reference in modules\wsproject\blocks\bigblocks.php on line 164
modules\wsproject\class\core.php on line 349
modules\wsproject\class\core.php on line 375


for the line 164
sortTasksBySubTasks(&$data[$proj_id]);

simply remove the "&"

same remark for the other lines in the core.php
$this->addSubTasks(&$new_array$value);

$this->addSubTasks(&$array$value);


that's all !!!
thanks for this usefull module

gronice

Just popping in
Posted on: 2004/2/28 9:11
gronice
gronice (Show more)
Just popping in
Posts: 30
Since: 2003/7/31
#79

Re: WebSlave Project - a project managment tool

Thx, is fixed.

lmewshaw

Just popping in
Posted on: 2004/3/8 21:04
lmewshaw
lmewshaw (Show more)
Just popping in
Posts: 4
Since: 2004/2/21
#80

Re: WebSlave Project - a project managment tool

My apologies if this is a repeat request

I'd like you to consider adding the feature of restricting the view of a project to a user group. At the project level, the "Projects Visible to Groups:" would be a selection of the XOOPS user groups. If a user does not have permission to see a project, as far as that person is concerned it does not exist. If a user is not any groups, then the user would see no projects listed in the "All Projects" view.

The idea is to support teams of developers or customers on a shared platform. Each team would not see the other's projects and associated tasks.

Thanks
Lee