phpScheduleIt
June 20, 2013, 01:37:38 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] 2
  Print  
Author Topic: Hiding blacked out times and can't logout users  (Read 1013 times)
davidarcher
Newbie
*

Karma: 0
Posts: 3


« on: April 13, 2012, 04:01:19 PM »

I was wondering if anyone had any idea how to hide the blacked out times in the calendar? In the older version I has able to have the calendar show only times from 7:00am to 8:00pm, but I don't see a way to do that in the newest version.

Also, I can't logout any user except for the original Admin user that was created during installation. Any help on these would be much much appreciated!!!

Thanks
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #1 on: April 16, 2012, 01:46:49 PM »

Hi David,
There's not a great way to hide unavailable times right now. One of my big areas of focus in 2.0 was with timezone compatibility. Unfortunately I had to make some trade offs in order to support them cleanly. I'll keep this problem in mind though and hopefully can come up with some solution.

I'm looking into the logout issue but haven't had much luck yet.
Logged
davidarcher
Newbie
*

Karma: 0
Posts: 3


« Reply #2 on: April 17, 2012, 10:03:12 AM »

Thanks for letting me know. FYI, I really do like the new layout/design. It's a lot easier to navigate.

Thanks
Logged
davidarcher
Newbie
*

Karma: 0
Posts: 3


« Reply #3 on: April 18, 2012, 01:58:10 PM »

I've found I can logoff users if I click "Sign Off" several times in a row.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #4 on: April 23, 2012, 01:55:34 PM »

This is fixed in 2.1.2
Logged
oraisa
Newbie
*

Karma: 0
Posts: 13


« Reply #5 on: April 23, 2012, 06:26:23 PM »

Well, I'm suffering from it in 2.1.2, but I think it has something to do with fields that I added to registration form. Can you give me a hint what is causing the logout problem?

(@davidarcher: thank you for the tip - hitting Sign Off several times really helps!)

oraisa
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #6 on: April 24, 2012, 09:44:35 AM »

I'd suggest turning on logging and see if any errors are logged
Logged
oraisa
Newbie
*

Karma: 0
Posts: 13


« Reply #7 on: April 26, 2012, 05:07:16 AM »

Logging has been on all the time, no help. Maybe it has something to do with JavaScript, and doesn't get logged?

oraisa
Logged
oraisa
Newbie
*

Karma: 0
Posts: 13


« Reply #8 on: April 26, 2012, 06:16:07 AM »

Well, I think I was wrong once again. PHP log just tells that user is logged out and logged back in immediately:
Code:
Thu Apr 26 12:51:14 2012,097 [8055] DEBUG default - Logout userId: 5
Thu Apr 26 12:51:14 2012,292 [8055] DEBUG default - Logging in with user: xxx.yyy@zzz.fi
Thu Apr 26 12:51:16 2012,002 [8055] DEBUG default - Logout userId: 5
Thu Apr 26 12:51:16 2012,186 [8055] DEBUG default - Logging in with user: xxx.yyy@zzz.fi
but SQL log would probably like to tell the solution - if I only could interpret it.

See attachment - can anybody help me? Where the log is pointing at?

Thanks in advance,
oraisa

[attachment deleted by admin]
Logged
oraisa
Newbie
*

Karma: 0
Posts: 13


« Reply #9 on: April 26, 2012, 07:12:46 AM »

OK, inspecting the attachment of my previous post, "null is null" means that my user is missing his role_level. Where should it be set? (The user is self-registered.)
Logged
oraisa
Newbie
*

Karma: 0
Posts: 13


« Reply #10 on: April 26, 2012, 06:54:11 PM »

So, "null is null" seems to be all right in this context, but what next? To add a few fields to the registration form I have modified so far 19 different files (which is a bit more than I expected), but I'm still missing some files to be modified. Which ones? Here's the list of modified files so far:

Domain/User.php
Domain/Access/UserRepository.php
lib/Application/Authentication/Registration.php
lib/Server/FormKeys.php
lib/Database/Commands/Commands.php
lib/Database/Commands/DataConstant.php
Pages/ProfilePage.php
Pages/RegistrationPage.php
Pages/RegistrationAdminPage.php
tpl/profile.tpl
tpl/register.tpl
tpl/Admin/manage_users.tpl
Presenters/ProfilePresenter.php
Presenters/RegistrationPresenter.php
lang/en_us.php
lang/fi_fi.php
Web/scripts/admin/user.js

Of course there could be something wrong with some of those files, but the logs don't tell it (if not the attached SQL log in one of my previous posts). No trace in Apache's error.log either. I just can't log out my users, if they have some information in their profile brought in by my own additional fields.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #11 on: April 30, 2012, 03:45:31 PM »

It may be worth setting up 2.1.3 in a new directory or deleting all old files. It sounds like the files may not have been updated.
Logged
Wes Bills
Newbie
*

Karma: 0
Posts: 4


« Reply #12 on: May 02, 2012, 03:27:14 PM »

Hi.  I've had the same problem about logging users out, and have discovered that there is a difference between the users set up by the sample data file, and the users set up in the Admin panel.  The users set up by the sample data file will log out normally.  The users set up in the admin panel do not log out, but are sent to the dashboard, where they remain not logged out.  When I checked the differences in the users table, using phpMyAdmin, I discovered that the users set up in the Admin panel do not have a 'last login date' but instead have 'NULL' for that field in the table; the users set up by the sample data file do have a 'last login date.'  I edited each user established via the Admin panel, to  add a 'last login date' and now each edited user does log out successfully.

The program now operates successfully, and looks like it will be a great resource for my colleagues.

Thank you.
Logged
GuiValarelli
Newbie
*

Karma: 0
Posts: 7

Tempus Fugit!


« Reply #13 on: May 08, 2012, 11:21:44 AM »

Hi.  I've had the same problem about logging users out, and have discovered that there is a difference between the users set up by the sample data file, and the users set up in the Admin panel.  The users set up by the sample data file will log out normally.  The users set up in the admin panel do not log out, but are sent to the dashboard, where they remain not logged out.  When I checked the differences in the users table, using phpMyAdmin, I discovered that the users set up in the Admin panel do not have a 'last login date' but instead have 'NULL' for that field in the table; the users set up by the sample data file do have a 'last login date.'  I edited each user established via the Admin panel, to  add a 'last login date' and now each edited user does log out successfully.

The program now operates successfully, and looks like it will be a great resource for my colleagues.

Thank you.

I noticed that myself, but i prefered to alter the default value of that field in order to set a fictional last login (the current date would work also) so, when a new user is created, the "null" bug is no longer an issue...
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #14 on: May 08, 2012, 01:25:55 PM »

Thanks! I'll get this fixed.
Logged
Pages: [1] 2
  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!