Cleveland Heights-University Heights Public Library Webdeveloper
Forum Replies Created
-
Forum: Plugins
In reply to: [Book a Room] Staff event notificationHave you tried testing from the email setting page? Are you getting the test emails?
Forum: Plugins
In reply to: [Book a Room] User roles option?I have just finished a new version that has modified most of the code and all of the templates so that we are i18n ready. Once this is tested and becomes the official version, I will be making some larger changes including better security through user role and capability enhancements.
Forum: Plugins
In reply to: [Book a Room] UK Phone validationI am glad that did it for you. Once I get this big update done and tested, I’ll make a real fix for this.
Forum: Plugins
In reply to: [Book a Room] Price for rooms / containersSorry but at the moment, that isn’t possible. Eventually I’m going to be revamping things and hopefully integrating online payments but that’s further down the road.
Forum: Plugins
In reply to: [Book a Room] UK Phone validationI was looking at the public phone validation for registering and such. This is in the Admin area making events, correct?
I just realized that the Admin event checking does NOT use the regex at all, as you said.
It may take me a bit of time to put out a version for that, but I can let you know what to comment out if you want so that it works for now!
In the file bookaroom-events.php, lines 1472 and 1481 are the phone validation.
if( !empty( $externals['publicPhone'] ) ) { $cleanPhone = preg_replace( "/[^0-9]/", '', $externals['publicPhone'] ); if ( strlen( $cleanPhone ) == 11 ) { $cleanPhone = preg_replace( "/^1/", '', $cleanPhone ); } if( !is_numeric( $cleanPhone ) || strlen( $cleanPhone ) !== 10 ) { $final[] = __( 'You must enter a valid contact phone number.', 'book-a-room' ); $errorBG['publicPhone'] = true; } }If you add a # to the beginnings of lines 1478 and 1479, it shouldn’t throw an error. Your final should be:
if( !empty( $externals['publicPhone'] ) ) { $cleanPhone = preg_replace( "/[^0-9]/", '', $externals['publicPhone'] ); if ( strlen( $cleanPhone ) == 11 ) { $cleanPhone = preg_replace( "/^1/", '', $cleanPhone ); } if( !is_numeric( $cleanPhone ) || strlen( $cleanPhone ) !== 10 ) { #$final[] = __( 'You must enter a valid contact phone number.', 'book-a-room' ); #$errorBG['publicPhone'] = true; } }Once I’ve redone the templates and converted everything over for translation (getting close), I’ll correct this validation to use the regex.
Forum: Plugins
In reply to: [Book a Room] UK Phone validationOn my test site, I used this:
/^((\(?0\d{4}\)?\s?\d{3}\s?\d{3})|(\(?0\d{3}\)?\s?\d{3}\s?\d{4})|(\(?0\d{2}\)?\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3}))?$/THis validated against a made up number ((028) 3722 4444). Can you try this one?
I also tried /^[A-z]+$/ and it works for words like “bob” but not numbers.
You can also try /.*$/ to allow anything through.
Forum: Plugins
In reply to: [Book a Room] UK Phone validationI’m not the greatest RegEx writer, so I’m hunting around for good ones that will work for UK.
Forum: Plugins
In reply to: [Book a Room] UK Phone validationCan you try another regex?
^((\(?0\d{4}\)?\s?\d{3}\s?\d{3})|(\(?0\d{3}\)?\s?\d{3}\s?\d{4})|(\(?0\d{2}\)?\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3}))?$
Forum: Plugins
In reply to: [Book a Room] Events do not display on calendarHello again!
I will look at the first part ASAP.
As for #2, it looks good to me, no errors. What is the link you get when you click on a detail?
Forum: Plugins
In reply to: [Book a Room] There are no rooms available at this branch.The Meeting Room plugin and Event Calendar plugin are separate and don’t share DB login information, so if you don’t set up the Event Calendar exactly right, you won’t see any events.
In the image provided, you can see the Settings > Event Settings page. You can see the important bits to fill out and an error message on the top of the screen.
What happens when you fill this out? No errors?
Are you sure you have the prefix correct, also?
Forum: Plugins
In reply to: [Book a Room] Events do not display on calendarLooks good!
Forum: Plugins
In reply to: [Book a Room] Events do not display on calendarThanks for the kind words! I appreciate it! Like I always say, my dream job is to just get paid to write free software for libraries (and anyone else, for that matter)!
Give that beta zip a try and let me know if that works for you!
Forum: Plugins
In reply to: [Book a Room] There are no rooms available at this branch.Did you set up the Event calendar in the regular WordPress Settings > Events Settings and configure the database? Did you get any messages when you hit submit?
- This reply was modified 9 years, 3 months ago by Cleveland Heights-University Heights Public Library Webdeveloper.
Forum: Plugins
In reply to: [Book a Room] There are no rooms available at this branch.Hi! Sorry you’re having issues.
Can you make sure that the Room Container settings have Public? checked and Hide On Daily unchecked?
Room containers can be available to the public, but also hidden from the public (like an Administration room that is only for staff). Checking Public? means that regular users can request that container.
The Hide from Public is for things like Display Cases that you want to be able to schedule, so that, for example, a local artists to put in their art, but you don’t want those “meetings” showing up on the daily lists for a month.
Forum: Plugins
In reply to: [Book a Room] Events do not display on calendarI don’t want to leave this up forever, but can you give this a try?
Uninstall the current Book a Room Event Calendar Plugin. Not the main plugin!
Then install this one.
http://meetings.heightslibrary.org/wp-content/uploads/2017/05/book-a-room-event-calendar.zip
You need to go to Settings > Event Settings and check the Allow Public Meeting View, then use the shortcode [showCalendarAll]
This may not work for you and may be buggy. It is use-at-your-own risk, as always. Hopefully it works fine, though.
- This reply was modified 9 years, 3 months ago by Cleveland Heights-University Heights Public Library Webdeveloper.