Page 1 of 2
help on dotProject !!
Posted: Mon Mar 12, 2007 1:12 am
by PHPycho
Hello forums
Has anybody made a modification to a so called groupware script named "dotProject" ?
What are the points to be taken into considerations if i
1> add few fields to the existing table called "companies" or any other
2> add new table
Please help me on the above topics !!
Thanks in advance..
Posted: Mon Mar 12, 2007 3:15 am
by volka
You might get faster/better results at
http://www.dotproject.net/vbulletin/
Posted: Mon Mar 12, 2007 6:54 am
by dude81
Dotproject has the following files
All the links which appear on the top are nothing but directories in modules directory. Each directory has the following files
1)index.php default page of the directory.
2)view page which will allow you to view the list of items(can be companies, projects, tasks etc) in the page.
3)Addedit page which will have the forms add and edit forms
4)do_aed pages where the sql action of adding and editing takes place.
5)companies.class.php where you will need to add your extra fields as class variables.
If any constraints on the fields you are adding , then adding in class or do_aed should do.
I think this should do as per your question
This is all in modules directory of dotproject
Posted: Mon Mar 12, 2007 11:02 pm
by PHPycho
Thanks Mr dude81
Suppose i would like to add two new fields in company What should i do in
1>companies.class.php
2>addedit.php
3>do_company_aed.php
or any other file
Please point out the specific things
thanks in advance
Posted: Mon Mar 12, 2007 11:15 pm
by dude81
1)You need to declare the variables first in the companies.class.php.
Code: Select all
/*
Remember this, the class variable name and the form variables name in addedit should be same. Only the thing that differs is in class you declare the names through php, and in the forms as
*/
2)Next add the variables in addedit form.
3)If any constraints on those variables, just implement the constraints before bind ans store logic in do_aed file
Posted: Mon Mar 12, 2007 11:52 pm
by PHPycho
I did the following but not working
1> in companies.class.php
Code: Select all
//New added fields variables
var $company_skype_name = NULL;
var $company_msnger_name = NULL;
2>in companies table
added two fields at the last
company_skype_name
company_msnger_name
3>in addedit.php
Code: Select all
<!-- New ADDED fields -->
<tr>
<td align="right">Skype Name:</td>
<td><input type="text" class="text" name="company_skype_name" value="<?php echo dPformSafe(@$obj->company_skype_name);?>" maxlength="15" /></td>
</tr>
<tr>
<td align="right">Msn Name:</td>
<td><input type="text" class="text" name="company_msnger_name" value="<?php echo dPformSafe(@$obj->company_msnger_name);?>" maxlength="15" /></td>
</tr>
I added new company and it successfully inserted in database but its not seeing in edit section
Is there anything left to do?
Help again.
thanks again
Posted: Tue Mar 13, 2007 1:34 am
by dude81
the form is same for edit and add. see the object ID comes properly or not
Posted: Tue Mar 13, 2007 3:41 am
by PHPycho
Finally it went right............
There is another option for adding new field by using
system admin>custom field editor>comapnies>Add a new Custom Field to this Module
But would like to ask one question ?
which one is better ?
Posted: Tue Mar 13, 2007 3:49 am
by dude81
system admin>custom field editor>comapnies>Add a new Custom Field to this Module
I guess I never looked at it, I leave the choice to you.
But I think coding with dotproject you will really enjoy rather than just adding through custom fields
Posted: Tue Mar 13, 2007 5:24 am
by PHPycho
I also noted one thing that using built in custom field section has to flexibility in the placement of field in the display...it always display on the right side..
thanks again Mr. dude81..
Posted: Tue Mar 13, 2007 10:23 pm
by PHPycho
One more question Mr. dude81
1> How to integrate Mantis with dotproject
Thanks once again !!
Posted: Tue Mar 13, 2007 10:35 pm
by dude81
Is it a module that is already built??
Posted: Wed Mar 14, 2007 12:10 am
by PHPycho
No a new one..
One Problem I encountered!!
1> when i added more than 8 fields in projects (at the last of the table)
then that field got no data inserted and when fetched only other data get fetched..
the data get all shifted towards back fields....
what is this problem about?
Is there any limitations in adding fields ?
Any modifications that should be made to add more than 8 fields
You have been helping me Mr. dude81
Again expecting for the help
Thanks again !!
Posted: Wed Mar 14, 2007 11:37 pm
by dude81
PHPycho wrote:
No a new one..
If it is a new one just put it in the modules dicrectory and write some setup script (by seeing other modules).
PHPycho wrote:
Is there any limitations in adding fields ?
Any modifications that should be made to add more than 8 fields
I'm not sure of that, It has been quiet longtime I worked with dotproject.
Posted: Thu Mar 15, 2007 1:08 am
by PHPycho
Thanks Mr. dude81
I would like to integrate mantis and i searched on the net and found one site with such features
http://www.dotproject.net/vbulletin/sho ... de5&t=5334
But i encountered problem:
i had kept the files as stated and configured as stated
Following are the configuration i made:
(Note: I had installed xampp in C:\Program files\xampp\
-dotProject is installed in C:\Program files\xampp\htdocs\dotproject\
-mantis is installed in C:\Program files\xampp\htdocs\mantis\
)
1>In mantis_config.php
Code: Select all
<?php
// Change this to the path to PHPXMLRPC client.php
require_once("C:/Program Files/xampp/htdocs/XMLRPC/PHPXMLRPC/client.php");
// Mantis username and password
$mantis_user = "administrator";
$mantis_pass = "root";
// Your domain
$domain = "http://localhost";
// The web path to the mantis_xmlrpc folder. Make sure you include the end slash
$web_path_to_mantis_xmlrpc = "http://localhost/mantis/mantis_xmlrpc/";
?>
2> In mantishelper.php
Code: Select all
# Change this path to point to the Mantis installation core.php file
require_once('C:/Program Files/xampp/htdocs/mantis/core.php');
3> In mantiserver.php
Code: Select all
# Change this to point to the PHPXMLRPC server.php
require_once("C:/Program Files/xampp/htdocs/XMLRPC/PHPXMLRPC/server.php");
And finally installed the mantis module from the dotproject and mantis link appeared and when clicked gave the following errors:
Error: [5] Connect error: Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (1958060647) at client.php:115
I am unable to figure out the problem ??
Thanks in advance Mr. dude81 !!