phpScheduleIt
May 22, 2013, 10:10:40 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: Resource Calendar as main startup screen  (Read 788 times)
abcrobots
Newbie
*

Karma: 0
Posts: 26


« on: September 24, 2011, 12:36:16 PM »

Hi
Is there a way to make it so that any user, with no account can view the calendar, but if they want to make a booking, require an account?

Also, can admins select which screen is the index.html screen? I'd like to show the users a specific resource calendar once they enter the site, no account, and if they see a booking availability, then require a user/pass login with paypal integration?

Thanks in advance!
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: September 26, 2011, 01:46:53 PM »

1) There is a read-only version of the calendar linked off the login screen.

2) This doesn't exist right now.  You can change where the user goes after logging in by changing line 87 of lib/Auth.class.php to:

if (empty($resume)) $resume = 'schedule.php';

PayPal integration is a bit harder, but there is a thread on these forums outlining the changes.
Logged
abcrobots
Newbie
*

Karma: 0
Posts: 26


« Reply #2 on: September 26, 2011, 02:33:29 PM »

OK.  so the question is this:
How difficult is it to change the code so that the resource calendar is displayed as the "home" or Index page, and then as the user browses and selects an available time, they would be required to log in with an account to make the reservation.
My issue with the paypal would be that if they want to make the reservation, it is not confirmed until they have confirmed payment.  Otherwise it would be possible to tentatively book all the time for yourself and make all the time unavailable.
I'll look for the thread, but if you have a link to post to the paypal integration, I'd appreciate it.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: October 10, 2011, 02:10:49 PM »

It shouldn't be too hard.  You should just be able to change line 197 of templates\schedule.template.php to:

if ($clickable || $is_blackout) {

The user should be required to log in before the popup displays (I haven't tried this, though).

PayPal: http://php.brickhost.com/forums/index.php?topic=2622.0
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!