71
gronice
Re: WebSlave Project - a project managment tool
  • 2003/11/4 19:34

  • gronice

  • Just popping in

  • Posts: 30

  • Since: 2003/7/31


Another bug fixed:

- some added slashes hadn't been stripped

Download v.0.7.11

Have fun
G'Ron

72
DaBoyz
Re: WebSlave Project - a project managment tool
  • 2003/12/31 10:20

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


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 ?

73
DaBoyz
Re: WebSlave Project - a project managment tool
  • 2003/12/31 10:29

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


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);
        }
    }
}

74
Jerico
Re: WebSlave Project - a project managment tool
  • 2004/2/24 2:28

  • Jerico

  • Just popping in

  • Posts: 7

  • Since: 2004/2/24


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

75
gronice
Re: WebSlave Project - a project managment tool
  • 2004/2/24 7:11

  • gronice

  • Just popping in

  • Posts: 30

  • Since: 2003/7/31


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

76
Jerico
Re: WebSlave Project - a project managment tool
  • 2004/2/24 18:07

  • Jerico

  • Just popping in

  • Posts: 7

  • Since: 2004/2/24


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!

77
gronice
Re: WebSlave Project - a project managment tool
  • 2004/2/28 0:37

  • gronice

  • Just popping in

  • Posts: 30

  • Since: 2003/7/31


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

78
philou
Re: WebSlave Project - a project managment tool
  • 2004/2/28 7:30

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


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

79
gronice
Re: WebSlave Project - a project managment tool
  • 2004/2/28 9:11

  • gronice

  • Just popping in

  • Posts: 30

  • Since: 2003/7/31


Thx, is fixed.

80
lmewshaw
Re: WebSlave Project - a project managment tool
  • 2004/3/8 21:04

  • lmewshaw

  • Just popping in

  • Posts: 4

  • Since: 2004/2/21


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

Login

Who's Online

176 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits