Difference between revisions of "Diaplasi User Site"

From CommonsLab
Jump to: navigation, search
Line 6: Line 6:
 
* Diaplasi
 
* Diaplasi
 
* JWT Authentication for WP-API
 
* JWT Authentication for WP-API
* Ultimate Member (do nt upgrade, custom changes in files)
+
* 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]

$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>';