phpScheduleIt
May 18, 2013, 07:03:31 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: How can I remove color boxes from schedule?  (Read 487 times)
philip.hexley
Newbie
*

Karma: 0
Posts: 2


« on: January 19, 2012, 09:42:35 AM »

I am an absolute beginner when it comes to computers full stop, but I have found this site unbelieveably useful in getting a schedule up and running. There are a few things I am trying to work on but am having trouble as I don't know code or programming at all. So please bare with me on this one people.

I have successfully removed the "My participation" "Accessories" tabs from the pop-up box when scheduling an appointment, but now I want to completely remove the color boxes across the top of the schedule. I have found in templates schedule.template.php where there is a section,

line 51: function print_color_key() {

I feel this is what needs to be changed but I do not know exactly what/how to change it. When I have tried commenting it out with /* .... */ I get fatal errors pop up and no schedule at all. Please help if you can, I am a complete newbie so be gentle!

Phil
Logged
robpet72
Jr. Member
**

Karma: 1
Posts: 55


« Reply #1 on: January 20, 2012, 03:19:14 PM »

Philip, the people on this forum have never been anything more than gentle, I don't think you have to worry about that.

Go to schedule.class.php.
In there is a function called print_schedule().
I believe it's the first if statement (I have a lot of modifications, so it might not be).
It looks like this:
Code:
        if ($this->scheduleType == ALL)
{
            print_color_key();
}

If you just comment out
Code:
print_color_key();
with a //, your colour boxes will disappear.
Since this is the only function in that if statement, you could probably comment the whole thing statement out with your /* ... */.

I hope this helps.


rob
Logged
philip.hexley
Newbie
*

Karma: 0
Posts: 2


« Reply #2 on: January 22, 2012, 02:47:39 PM »

Oh that's excellent - thank you!

I pretty much have a basic, but customised schedule up and running very easily. This is so great, again - thank you!
Logged
psi_newbie
Newbie
*

Karma: 0
Posts: 39


« Reply #3 on: January 26, 2012, 06:09:39 PM »

hey philip, how did you remove the participants and accessories in the popup? Please explain. Thank you
Logged
robpet72
Jr. Member
**

Karma: 1
Posts: 55


« Reply #4 on: January 26, 2012, 08:48:14 PM »

The simplest way to do it, although you may want to explore more to remove the outside border, is to find the begin_container() function in reserve.template.php.

Just comment out (or remove) the following lines:

Code:
<td class="tab-not-selected" id="tab_advanced" onclick="javacript: clickTab(this, 'pnl_advanced');" style="border-left-width:0px;"><a href="javascript:void(0);"><?php echo translate('Participants')?></a></td>

and

Code:
<td class="tab-not-selected" id="tab_additional" onclick="javacript: clickTab(this, 'pnl_additional');" style="border-left-width:0px;"><a href="javascript:void(0);"><?php echo translate('Accessories')?></a></td>

That will remove the tabs for those two in the popup. 

As I mentioned, you'll still have the "basic" tab, but you can take that out in the same function.  I suggest you experiment with it a bit, by commenting out pieces.  If you erase, you could break it pretty ugly.



rob
Logged
psi_newbie
Newbie
*

Karma: 0
Posts: 39


« Reply #5 on: January 29, 2012, 10:44:25 AM »

Thank you, it works now
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!