diff --git a/e107_plugins/login_menu/login_menu_shortcodes.php b/e107_plugins/login_menu/login_menu_shortcodes.php index c0ef030fe..4746002a5 100755 --- a/e107_plugins/login_menu/login_menu_shortcodes.php +++ b/e107_plugins/login_menu/login_menu_shortcodes.php @@ -229,24 +229,28 @@ class login_menu_shortcodes extends e_shortcode function sc_lm_usersettings($parm='') { - $text = ($parm) ? $parm : LOGIN_MENU_L12; - return ''.$text.''; + $text = ($parm) ? $parm : LOGIN_MENU_L12; + $url = $this->sc_lm_usersettings_href(); + return ''.$text.''; } function sc_lm_usersettings_href($parm='') { - return e_HTTP.'usersettings.php'; + return e107::getUrl()->create('user/myprofile/edit'); + // return e_HTTP.'usersettings.php'; } function sc_lm_profile($parm='') { - $text = ($parm) ? $parm : LOGIN_MENU_L13; - return ''.$text.''; + $text = ($parm) ? $parm : LOGIN_MENU_L13; + $url = $this->sc_lm_profile_href(); + return ''.$text.''; } function sc_lm_profile_href($parm='') { - return e_HTTP.'user.php?id.'.USERID; + return e107::getUrl()->create('user/profile/view',array('user_id'=>USERID, 'user_name'=>USERNAME)); + // return e_HTTP.'user.php?id.'.USERID; } function sc_lm_logout($parm='') diff --git a/e107_themes/bootstrap3/theme_shortcodes.php b/e107_themes/bootstrap3/theme_shortcodes.php index 6490ca5df..491cda6b8 100644 --- a/e107_themes/bootstrap3/theme_shortcodes.php +++ b/e107_themes/bootstrap3/theme_shortcodes.php @@ -23,6 +23,7 @@ class theme_shortcodes extends e_shortcode include_lan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php"); $tp = e107::getParser(); + require_once(e_PLUGIN."login_menu/login_menu_shortcodes.php"); if(!USERID) // Logged Out. { @@ -79,7 +80,7 @@ class theme_shortcodes extends e_shortcode "; - require_once(e_PLUGIN."login_menu/login_menu_shortcodes.php"); + return $tp->parseTemplate($text, false, $login_menu_shortcodes); } @@ -92,8 +93,12 @@ class theme_shortcodes extends e_shortcode