phpCollab Community
Discuss everything phpCollab!

The forums are currently in READ-ONLY mode while we upgrade the forums.
Home » Development » Modifications » Page Customization (Page Customization)
Page Customization [message #8341] Fri, 07 March 2008 23:53 Go to next message
jasona is currently offline  jasona
Messages: 4
Registered: March 2008
Location: Canada
phpCollab guest
Hello Everyone,

First and foremost, I would like to thank the developers of php-collab, this is a wonderful peace of software.

I am trying to customize php collab for our office. I want to remove some of the fields from the forms. For example in projects/editproject.php I want to remove fields such as:

Priority :
Phase Enabled :
Development site url :
Final site url :
Modified :

Just to name a few.. Can someone point me in the right direction.
Re: Page Customization [message #8342 is a reply to message #8341] Sat, 08 March 2008 03:03 Go to previous messageGo to next message
tbell45219 is currently offline  tbell45219
Messages: 10
Registered: October 2005
phpCollab guest
Around line 653 you have an 'echo' command:
echo "</select></td></tr>
<tr class='odd'><td valign='top' class='leftvalue'>".$strings["description"]." :</td><td><textarea rows='10' style='width: 400px; height: 160px;' name='d' cols='47'>$d</textarea></td></tr>
<tr class='odd'><td valign='top' class='leftvalue'>".$strings["url_dev"]." :</td><td><input size='44' value='$url_dev' style='width: 400px' name='url_dev' maxlength='100' type='text'></td></tr>
<tr class='odd'><td valign='top' class='leftvalue'>".$strings["url_prod"]." :</td><td><input size='44' value='$url_prod' style='width: 400px' name='url_prod' maxlength='100' type='text'></td></tr>
<tr class='odd'><td valign='top' class='leftvalue'>".$strings["owner"]." :</td><td><select name='pown'>";


The $url_dev and $url_prod are fields that show/print the URL fields. you can delete the vars and no data will show which means you can't add anything.

Around line 729 is where the phase shows 'none' when none is selected. You could delete the $strings["none"].
if($projectDetail->pro_phase_set[0] == "0") 
{
	echo "<option value='0' selected>".$strings["none"]."</option>";
}
else
{
	echo "<option value='0'>".$strings["none"]."</option>";
}


Around line 740 is where the phases are shown if they are enabled. Delete vars.
	if($projectDetail->pro_phase_set[0] == "$i") 
	{
		echo "<option value='$i' selected>".$phaseArraySets["sets"][$i]."</option>";
	}
	else
	{
		echo "<option value='$i'>".$phaseArraySets["sets"][$i]."</option>";
	}



I don't know if this will be all the field labels but it should be a start.
Back up your file and test while doing it.

Re: Page Customization [message #8345 is a reply to message #8342] Thu, 20 March 2008 21:46 Go to previous message
jasona is currently offline  jasona
Messages: 4
Registered: March 2008
Location: Canada
phpCollab guest
Thank you for all the help, you guided me in the right direction. If anyone would like to know what they need to do to customize a page by removing or renaming fields you can reply to his or send me a message i would be glad to help.
Previous Topic: [MOD] fckeditor html editor integration
Next Topic: Recurring tasks
Goto Forum:
  


Current Time: Fri May 24 18:15:18 CEST 2013

Total time taken to generate the page: 0.27404 seconds