| |
stevo |
Posted: Mon Nov 17, 2003 7:58 pm Post subject: Changing default colour identifier |
|
|
Joined: 09 May 2003 Posts: 4 Location: Oxford, UK
|
| How do I change the default colour identifier on the create project screen? |
|
| |
|
 |
Ben |
Posted: Thu Nov 27, 2003 3:19 am Post subject: |
|
|
|
Change it here:
\system\modules\projects\index.php
line 306:
$tmpl['txtColour'] = '#EDEDE1'; |
|
| |
|
 |
loki-racer |
Posted: Tue Oct 11, 2005 7:41 pm Post subject: |
|
|
Joined: 03 Oct 2005 Posts: 7 Location: Leland, NC
|
If you have corporate version 2.6 you can open \system\modules\projects\index.php go to line 843 and comment out the line
| Code: |
| //$colour = $this->DB->Prepare(RequestForm('colour')); |
Then code similiar to this
| Code: |
if($clientid == 2) {$colour = "#669999";} //Company 1
elseif($clientid == 3) {$colour = "#000066";} //Company 2
elseif($clientid == 4) {$colour = "#660000";} //Company 3
else {$colour = "#99FFCC";} //DEFAULT |
where the $clientid is equal to the id from the database.
Then open system\modules\projects\templates\project_form.html. Find
Comment out everything in that next cell using
This makes it so that people creating projects don't have the option of selecting what color to make the project. This makes it easier for them because Copper automaticly keeps all projects by a specific client a certain color. Just remember to add more colors to the if else statement when people add clients. |
|
| |
|
 |
Ben |
Posted: Thu Oct 13, 2005 6:48 am Post subject: |
|
|
|
| Thanks Chris, much appreciated! |
|
| |
|
 |