phpScheduleIt
June 20, 2013, 02:36:07 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: Little help changing something  (Read 599 times)
chrisn
Newbie
*

Karma: 0
Posts: 3


« on: January 30, 2012, 03:31:46 PM »

Hi!

I found this wonderful tool the other day and am very impressed with it.

I found one of your threads that explained how to change the times into periods and managed to do that (as shown in the below screenshot)

http://i40.tinypic.com/2dmh63d.png (Too big to stream here)

but I was wondering is it possible to change the reservation times in the pop-up to names wrather than actual times? I did some digging into the reservation.template.php but was completely lost.



I know this is something thats being worked on but I was wondering if there were any little hacks I could do (like with the times) for now.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #1 on: January 31, 2012, 01:43:30 PM »

The approach is basically the same. In templates/reserve.template.php in the print_time_info() function you want to replace
Code:
Time::formatTime($i)
on line 662 and 680 with something like:
Code:
$mapping[$i]

Logged
chrisn
Newbie
*

Karma: 0
Posts: 3


« Reply #2 on: February 01, 2012, 08:00:18 AM »

Hi, thanks for the quick response!

I tried these changes and this is the result I've gotten;



Not sure where I went wrong.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #3 on: February 07, 2012, 09:56:51 AM »

Looks pretty close. You probably need to remove the drop down containing the non-labelled times.
Logged
chrisn
Newbie
*

Karma: 0
Posts: 3


« Reply #4 on: February 15, 2012, 06:36:38 AM »

Sorry to be so persistant but could anyone give me step by step instructions in doing this? I'm a complete noobie to php so really don't know what I'm actually doing.
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!