phpScheduleIt
May 22, 2013, 08:47:57 PM *
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: View Blackouts on Rescalendar  (Read 777 times)
samato
Guest
« on: November 17, 2008, 03:26:04 PM »

Is it possible to get the blackout times to show on the reservation calendars and sign  up sheet?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: November 18, 2008, 01:40:03 PM »

Just comment out line 55 of lib/db/rescalendardb.class.php and line 57 of lib/db/mycalendardb.class.php
Logged
samato
Guest
« Reply #2 on: November 20, 2008, 01:53:47 PM »

Perfect - Thanks!!

Is there anyway to have the username not print with the blackouts (I may just have it not print if it's my name, since I'm doing the administering, but was wondering if there were a value in $res in rescalendar.template.php that I could check that would tell me if it was a blackout rather than a regular reservation.)
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: November 21, 2008, 01:54:12 PM »

Yup, the same field:  $res['is_blackout'] (will be 1 or 0)
Logged
samato
Guest
« Reply #4 on: November 23, 2008, 10:38:51 PM »

Awesome!  Thanks so much for the help.  Works perfectly Smiley
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!