Self-Hosted Configuration: Set Registration and Logging Dates

By on

Description: 

If you host your own site, you'll need to set your Registration Open and Close Dates, as well as your Program Begin and End Dates.

Set Registration Dates:

  1. Go to Admin > Structure > Pages
  2. Find the "Home Page" ("page-home") row and click the Edit button.
  3. Under Variants, click "Anon-Open" and then "Selection Rules"
  4. Look for the "PHP Code - Registration Dates" row and click the small blue gear icon.

    Screenshot of Selection Rules panel
  5. Change the time zone value using one of the time zones from this list.
  6. Set the $signup_start variable using "YYYY-MM-DD HH:MM:SS" format to whatever time you wish the signup button to appear.
  7. Set the $signup_end variable using the same format to whatever time you wish the signup button to disappear.

    Screenshot of date config screen.

  8. Click the Save button.
  9. Click the Update&Save button.
  10. Confirm the registration button is hidden.

Set Program Dates

  1. Go to Admin > Structure > Pages
  2. Find the "Reader Dashboard" ("page-reader_dashboard") row and click the Edit button.
  3. Under Variants, click "Program Closed" and then "Selection Rules."
  4. Look for the "PHP Code - Logging Enabled" row and click the small blue gear icon.

    Screenshot of Registration Dates Selection Rules

  5. Change the time zone value using one of the time zones from this list.
  6. Set the $logging_start variable using "YYYY-MM-DD HH:MM:SS" format to whatever time you wish the program to allow patrons to begin entering reading.
  7. Set the $logging_end variable using the same format to whatever time you wish the program to stop allowing patrons to enter reading.



  8. Click the Save button.
  9. Click the Update&Save button.
  10. Go to Admin > Structure > Blocks
  11. On the Block list, search the list for "Program Closed - Reader Dashboard Placeholder" and click the Configure button.
  12. In the "Block Body" field, enter whatever should appear in place of the Reader Dashboard widgets for readers when the program is closed.  Before the program begins, this might be something like "Check back June 1st when we begin!"  After logging is complete, it might say "Thanks and visit your library to collect your end of summer prize!"
  13. Click the Save button to save your updated Block.
  14. Login as a Reader to see if the Reader Dashboard or your Program-Closed block is appearing as appropriate.