https://github.com/bahner/pws-booking
Wordpress plugin to handle OPKs old memberdatabase for booking
https://github.com/bahner/pws-booking
opk
Last synced: about 2 months ago
JSON representation
Wordpress plugin to handle OPKs old memberdatabase for booking
- Host: GitHub
- URL: https://github.com/bahner/pws-booking
- Owner: bahner
- Created: 2018-05-14T21:15:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-07T23:08:25.000Z (about 5 years ago)
- Last Synced: 2025-02-10T13:37:50.786Z (4 months ago)
- Topics: opk
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PWS Booking
===A wordpress plugin for updating members in OPKs member database for booking at Vangen.
Requires:
* Wordpress
* PHP5.6 +
* Python2.7
* openpyxl
* vaildate_emailTL;DR!
---
Build the module by typing
```bash
make
```Then install the produced `pws-booking.zip` in Wordpress. That's it. No configuration is required.
Development requirements
---
You probably want docker and docker-compose installed.
Then you can pull up a dockerized version of wordpress
with the command:
```bash
make up
```
And similarly ```make down``` to take it down againBuild requirements
---
The build process normally requires make and unzip. YMMV! This is normally installed as:
```bash
sudo apt install buildessential zip
```Python
---
The python packages can be installed with pip. On domeneshop, we don't have administrative access, but the packages can be installed for ourselves like this:
```
pip2 install --user openpyxl validate_email
```
This is true for our hosting at Domeneshop.Any version of PHP higher than 5.6 should work.
NB! Later of version of python may be used, but is not available in an usable fashion at domeneshop.
Schema changes
---
`id` is PersonId from NIF. This requires the current `AUTO INCREMENT` setting for id to be removed. The other id, `userid` is set to a mangled 8-char max version of `phonemobile` with a fallback to `id`.Update the tables as follows:
```sql
ALTER TABLE `opk`.`opk_booking_user`
CHANGE COLUMN `id` `id` MEDIUMINT(8) UNSIGNED NOT NULL ,
CHANGE COLUMN `userid` `userid` CHAR(8) NOT NULL DEFAULT '' ;ALTER TABLE `opk`.`opk_booking_user_import`
CHANGE COLUMN `id` `id` MEDIUMINT(8) UNSIGNED NOT NULL ,
CHANGE COLUMN `userid` `userid` CHAR(8) NOT NULL DEFAULT '' ;
```2018-05-21: bahner