Before install (Attention)

  • When this plug-in was activated, several pages are made automatically.
    If you're giving some service in your site already, you should build test site. Install this plug-in to test site and try it sufficiently.

  • If you used "WP Super Cache" plug-in together, schedule updation may be not reflected.

 

Install

  1. Open the admin-page, search in keyword "Online Lesson Booking" from "Add new" page in "Plugins" menu.

    01a_install

  2. Click “Install now”.

    01b_install_search

  3. Activate plug-in after install-package is downloaded.

    01c_install_download

    02a_activate

  4. Some special pages are already created automatically, when the plug-in was activated.

    02b_activate_specialpages

  5. Widgets "Members only" and "Teachers only" and "Admins only" are added to widgets automatically.

    02c_activate_widgets

  6. Add widgets "Members only" and "Teachers only" and "Admins only" to the widget-area.

    "Members only" widget:
    02d_activate_widget_members

    "Teachers only" widget:
    02e_activate_widget_teachers

    "Admins only" widget:
    (Under preparations)

 

WordPress settings

General

04a_wp_settings_general

Membership

Check the item "membership" (as "Anyone can register").

New User Default Role:

Select "subscriber".

 

Theme settings

Theme Functions (functions.php)

This plug-in uses JQuery. Insert this code in your theme-file (functions.php).


04b_wp_settings_functionsphp

 

Plug-in settings

The plug-in setting is edited in page "OLBsystem".
When plug-in is activated, the default values are set.

03_plugin_settings

General

Menu "General" is setup about reservation and a timetable.

Timetable settings (default)
ItemValue
Start time
*(Set like a "09:00" in a case of before 10:00.)
10:00
End time22:00
Interval30 (min)
Reservation settings (default)
ItemValue
Time to close a reservation request30 (minutes before)
Time to close a cancellation request30 (minutes before)
The limit of the reservation per day2 (* empty or 0 is unlimited )
The limit of the reservation which is not charged (*1)2
The limit of the reservation per month2 (* empty or 0 is unlimited )
Indefinite period (*3)No (Checkbox: OFF)
Using ticket system (*2)No (Checkbox: OFF)
Meta-key of ticketolbticket
(* This is the "user_meta" key which saves each member's number of tickets.)
The term of validity of ticket60 (Days)
(* If this is larger than zero, when the each member's number of tickets is updated, the term of validity will also be updated automatically.)
CRON settings (default)
ItemValue
The days which do not delete the past schedule7 (days)
CRON intervaldaily
View settings (default)
ItemValue
Show teachers per page3
Customize user profile pageYes

(*1) About "The limit of the reservation which is not charged"
This parameter is the number of times that member can reserve lesson also before payment.
Originally, unless a member pays in and it acquires the "term of validity", he cannot reserve. But, member can make reservation to value of this parameter also before payment. It is "Trial lesson".

If the value of this parameter is set to "0", it becomes impossible to reserve lesson until a member pays in.

*2) About "Ticket system"
"Ticket system" is the function added from Ver 0.4.0.
This is the structure which can be reserved by giving each member a "possession ticket" and consuming the ticket.
If tickets run short, if a member does not newly get a ticket, he cannot do reservation.
It can choose whether to apply a "ticket system." (Default value is "not use").

» About "Ticket system"

*3) About "Indefinite period"
"Indefinite period" is the function added from Ver 0.7.0.
When this option was checked, the judgement of "Term of validity" when a member makes a reservation, isn't done. That's also same in "Ticket system".
This option can be chosen. (Default is "uncheced").

 

Special pages

Menu "Special pages" is setup of the name (slug) of a page indispensable to a system.

ItemValue
Daily schedule pageschedule
Reservation form pagereservation
Cancel(by teacher) form pagecancel
Absent(by teacher) form pagereport
Edit schedule(by teacher) pageeditschedule
Refer members info(by teacher) pagemembersinfo
Members my pagemypage
Login page (Eempty)
  • When a "Login page" name is empty, you will be using the login page of the WordPress standard.
  • When a "login page" is prepared for originally in fixed pages, appoint a "slug" name as a login page name. (e.g. "login")

 

Mail

Menu "Mail" is Edit of the text of notice mail.

Email address
Signature
Notice
Notice of received reservation
SubjectReserved: %RESERVE_DATE% %RESERVE_TIME% %ROOM_NAME%
(output is "Reserved: 2013-06-01 10:00 John Doe")
Subject to teacherReserved: %RESERVE_DATE% %RESERVE_TIME% %USER_NAME%(Skype: %USER_SKYPE%)
Message
To: %USER_NAME% (Skype: %USER_SKYPE%)
Your reservation was received.

[Reservation ID] %RESERVE_ID%
[Teacher] %ROOM_NAME%
[Date/Time] %RESERVE_DATE% %RESERVE_TIME%

(Received: %SEND_TIME%)

If you cancel, please offer from the following URL %CANCEL_DEADLINE%
%CANCEL_URL%
Can use the following variables.
%USER_ID%Member ID
%USER_NAME%Member name
%USER_EMAIL%Member email
%USER_SKYPE%Member SkypeID
%USER_TERM%Member's term of validity
%USER_TERM_REM%Remaining days of a member's term of validity
%USER_TICKETS%Member's number of tickets
%ROOM_NAME%Teacher name
%RESERVE_ID%Reservation ID
%RESERVE_DATE%Date
%RESERVE_TIME%Time
%SEND_TIME%Sending time
%CANCEL_DEADLINE%Cancellation deadline
%CANCEL_URL%Cancellateion URL
Notice of received cancellation
SubjectCancelled: %RESERVE_DATE% %RESERVE_TIME% %ROOM_NAME%
Subject to teacherCancelled: %RESERVE_DATE% %RESERVE_TIME% by %USER_NAME%
Message
To: %USER_NAME% (Skype: %USER_SKYPE%)
Your cancellation was received.

[Reservation ID] %RESERVE_ID%
[Teacher] %ROOM_NAME%
[Date/Time] %RESERVE_DATE% %RESERVE_TIME%

(Received: %SEND_TIME%)
Can use the following variables.
%USER_ID%Member ID
%USER_NAME%Member name
%USER_EMAIL%Member email
%USER_SKYPE%Member SkypeID
%USER_TERM%Member's term of validity
%USER_TERM_REM%Remaining days of a member's term of validity
%USER_TICKETS%Member's number of tickets
%ROOM_NAME%Teacher name
%RESERVE_ID%Reservation ID
%RESERVE_DATE%Date
%RESERVE_TIME%Time
%SEND_TIME%Sending time
Notice of cancellation by teacher
SubjectCancelled by teacher: %RESERVE_DATE% %RESERVE_TIME% %ROOM_NAME%
Subject to teacherCancelled by teacher: %RESERVE_DATE% %RESERVE_TIME% %USER_NAME%
Message
to: %USER_NAME% (Skype: %USER_SKYPE%)
Your reservation was canceled by teacher.

[Reservation ID] %RESERVE_ID%
[Teacher] %ROOM_NAME%
[Date/Time] %RESERVE_DATE% %RESERVE_TIME%
[Message]
%MESSAGE%

(Sending: %SEND_TIME%)
Can use the following variables.
%USER_ID%Member ID
%USER_NAME%Member name
%USER_EMAIL%Member email
%USER_SKYPE%Member SkypeID
%USER_TERM%Member's term of validity
%USER_TERM_REM%Remaining days of a member's term of validity
%USER_TICKETS%Member's number of tickets
%ROOM_NAME%Teacher name
%RESERVE_ID%Reservation ID
%RESERVE_DATE%Date
%RESERVE_TIME%Time
%SEND_TIME%Sending time
%MESSAGE%Message (Reasons of cancellation, etc.)

 

Reset

Menu "Reset" initialize each setting.

Target

Settings selected from "General", "Special pages", "Mail" are reset.