lholland421 Posted September 5, 2014 Posted September 5, 2014 hi nick, is there anyway of having separate booking tiles one for room bookings and one for resources ? I guess they would have to be on separate booking systems ? thanks
nickbro Posted September 7, 2014 Posted September 7, 2014 Nope there isn't sorry. If you want to, and you know javascript, you can create one. See ExampleCustomTile.js in the hap+ release, just include that on in the head of the homepage
lholland421 Posted September 17, 2014 Author Posted September 17, 2014 Hi Nick , I am currently having an issue where users cannot book anything. they are told they have exceeded the max bookings per week. I have set this to 9999999 so I don't think they would have. Any ideas ? Thanks
lholland421 Posted September 17, 2014 Author Posted September 17, 2014 hi nick still getting the issue with -1 Thanks!
nickbro Posted September 17, 2014 Posted September 17, 2014 ok, looks like you have an issue somewhere, I'll need you to do some http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html. Try 0 as well. This is what I'm looking for
tj2419 Posted September 17, 2014 Posted September 17, 2014 Hi is this what you mean @lholland421. I have created three tiles and changed the icons in the hap config and set the hyperlinks to go to the following Rooms - ~/bookingsystem/t-Room Laptops - ~/bookingsystem/t-Laptops iPads - ~/bookingsystem/t-Other
lholland421 Posted September 17, 2014 Author Posted September 17, 2014 @tj2419 That is what i need ! Thats awesome how do i do that? @nickbro im just about to debug it now.
tj2419 Posted September 17, 2014 Posted September 17, 2014 1. Go to your Hap +Config 2. Select the Homepage Tab 3. Click Add Link and fill in like the images below. (For the show to put the groups you want to show it to. Mine just show admin as i haven't yet launched it with staff) Then when adding rooms or resources to your room booking (Booking system tab) make sure you match up the Resource Type to IT Rooms = Room, Laptops = Laptops and iPads = Other. Voila 1
lholland421 Posted September 17, 2014 Author Posted September 17, 2014 (edited) YOU'RE THE MAN !!! CHEERS ! Edited September 17, 2014 by witch grammar nazi
lholland421 Posted September 17, 2014 Author Posted September 17, 2014 Hi Nick ! i have an error! thanks Nick
nickbro Posted September 17, 2014 Posted September 17, 2014 Ok, from that it looks like it's not doing the initial query for number of bookings/week number, what's in the url box (after the #)?
lholland421 Posted September 17, 2014 Author Posted September 17, 2014 when i load the booking system nothing is after # in the url as i don't seem to have #.
nickbro Posted September 17, 2014 Posted September 17, 2014 Ok, there is something wrong with your setup In a browser go to /hap/api/BookingSystem/Initial/17-9-2014/{username} Obviously replace {username} with your username
lholland421 Posted September 17, 2014 Author Posted September 17, 2014 hi nick i get this displayed [0,1]
nickbro Posted September 17, 2014 Posted September 17, 2014 ok, what do you get when you put in a teacher's username?
lholland421 Posted September 17, 2014 Author Posted September 17, 2014 i get [0,1] when a teachers username and its loading all the time.
nickbro Posted September 17, 2014 Posted September 17, 2014 ok, that's what it should be. 0 is the number of bookings and 1 is the week number. Can you look at the source code for the page (browser source not notepad edit), look for something like this <br /> user = { username: 'Nick', isAdminOf: [ 'ICT1', 'ICT2', 'E3', 'A6', 'Laptops', 'iPads', 'S6', 'LRC' ], isBSAdmin: true, minDate: new Date(2014, 8, 17), maxDate: new Date(2015, 6, 20), maxBookings: -1 };<br /> What you are looking for is the last thing, maxBookings, what does that say for the user? If it doesn't say -1, or the silly high number then something isn't getting set somewhere
lholland421 Posted September 18, 2014 Author Posted September 18, 2014 Hi Nick i have checked this on multiple users and they all have max bookings -1 in the source code. have i missed out some sort of permissions or something? Thanks
nickbro Posted September 18, 2014 Posted September 18, 2014 nope that's what's meant to be there if you've set -1 in the admin area, I can't quite figure out what's going on here
lholland421 Posted September 18, 2014 Author Posted September 18, 2014 Its a bit odd, Would it help if i gave you a login?
nickbro Posted September 18, 2014 Posted September 18, 2014 not really, something is causing the function that checks the current bookings against max bookings to error. I cannot replicate that on any of my installs.
lholland421 Posted September 18, 2014 Author Posted September 18, 2014 Should I try reinstalling or replacing some core files ?
nickbro Posted September 18, 2014 Posted September 18, 2014 You can try reinstalling the booking system from the latest plugin release. If you do give me a username and password I can at least see what in the javascript it is playing up I suppose. Can't promise when I'll look at it today as I've got some primary school visits to do
lholland421 Posted September 18, 2014 Author Posted September 18, 2014 Okay Nick will try replacing the booking system files from the latest one and seeing what happens ! Ill message you a username and password shortly ! Thanks Nick !
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now