Difference between revisions of "Diaplasi User Site"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* Diaplasi | * Diaplasi | ||
* JWT Authentication for WP-API | * JWT Authentication for WP-API | ||
− | * Ultimate Member (do | + | * Ultimate Member (do not upgrade, custom changes in files) |
* WPML Multilingual CMS [https://github.com/wp-premium/sitepress-multilingual-cms|github] | * WPML Multilingual CMS [https://github.com/wp-premium/sitepress-multilingual-cms|github] | ||
* WPML String Translation | * WPML String Translation | ||
Line 24: | Line 24: | ||
** https://diaplasi.net/el/login-el | ** https://diaplasi.net/el/login-el | ||
** https://diaplasi.net/login | ** https://diaplasi.net/login | ||
+ | ** change core/class-fields.php and add | ||
+ | <nowiki>$resArray = explode(', ',$res); | ||
+ | foreach ($resArray as &$r) { | ||
+ | $r = __( $r ,UM_TEXTDOMAIN); | ||
+ | }; | ||
+ | unset($r); | ||
+ | $res = implode (', ',$resArray); | ||
+ | </nowiki> | ||
+ | before | ||
+ | <nowiki> | ||
+ | $output .= '<div class="um-field-value">' . $res . '</div>';</nowiki> |
Revision as of 10:28, 26 February 2019
The User site or Front-end is http://diaplasi.net. It is the site where users register and edit their profile which contains all personal and medical information. It is also the site with which the application verifies a user.
The site is Wordpress and uses the following plug-ins:
- Allow Multiple Accounts
- Diaplasi
- JWT Authentication for WP-API
- Ultimate Member (do not upgrade, custom changes in files)
- WPML Multilingual CMS [1]
- WPML String Translation
Add and activate Cactus theme
Configuration
- configure JWT authentication according to [2]
- add Greek language to WPML
- Create forms (Register & Profile) and then pages for Ultimate member forms.
- add profile.php & w3.css to wp-content/themes/cactus/ultimate-member/templates/
- Custom redirect URL: https://diaplasi.net/login
- edit UM Settings -> "Access" exclude the following URLs
- https://diaplasi.net/el/register-el
- https://diaplasi.net/el/register
- https://diaplasi.net/el/login-el
- https://diaplasi.net/login
- change core/class-fields.php and add
$resArray = explode(', ',$res); foreach ($resArray as &$r) { $r = __( $r ,UM_TEXTDOMAIN); }; unset($r); $res = implode (', ',$resArray); before $output .= '<div class="um-field-value">' . $res . '</div>';