From af598909ab13f2dffff277abf2f9cfca34d5cdd7 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 21 Jul 2007 09:57:33 +0000 Subject: [PATCH] Bugtracker #4024 - PM link in user profile had gone missing --- e107_themes/templates/user_template.php | 25 ++++++++++--------------- user.php | 9 +++++++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/e107_themes/templates/user_template.php b/e107_themes/templates/user_template.php index 1223d1e08..789f77785 100644 --- a/e107_themes/templates/user_template.php +++ b/e107_themes/templates/user_template.php @@ -11,16 +11,16 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_themes/templates/user_template.php,v $ -| $Revision: 1.2 $ -| $Date: 2007-03-27 13:48:30 $ -| $Author: lisa_ $ +| $Revision: 1.3 $ +| $Date: 2007-07-21 09:57:33 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); } -global $user_shortcodes, $pref; +global $user_shortcodes, $pref, $user; //Set this to TRUE if you would like any extended user field that is empty to NOT be shown on the profile page define("HIDE_EMPTY_FIELDS", FALSE); @@ -105,16 +105,11 @@ else $sc_style['USER_SENDPM']['pre'] = ""; $sc_style['USER_SENDPM']['post'] = "".LAN_425.""; -if($tp->parseTemplate("{USER_SENDPM}", FALSE, $user_shortcodes)) -{ - $sendpm = "{USER_SENDPM}"; -} -else -{ - $sendpm = ""; -} +// Determine which other bits are installed; let photo span those rows (can't do signature - will vary with user) +$span = 4; +if ($tp->parseTemplate("{USER_SENDPM}", FALSE, $user_shortcodes)) $span++; +$span = " rowspan='".$span."' "; -$span = " rowspan='".($sendpm ? "5" : "4")."' "; $sc_style['USER_PICTURE']['pre']=""; $sc_style['USER_PICTURE']['post']=""; @@ -125,7 +120,7 @@ $USER_FULL_TEMPLATE = " ".LAN_142." {USER_ID} : {USER_NAME}{USER_LOGINNAME} - $user_picture + {$user_picture} {USER_REALNAME_ICON} ".LAN_308." {USER_REALNAME} @@ -152,7 +147,7 @@ $USER_FULL_TEMPLATE = " {USER_LASTVISIT}
{USER_LASTVISIT_LAPSE}
-{$sendpm} +{USER_SENDPM} {USER_RATING} {USER_SIGNATURE} {USER_EXTENDED_ALL} diff --git a/user.php b/user.php index a6a53377b..add3e28a0 100644 --- a/user.php +++ b/user.php @@ -11,12 +11,17 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/user.php,v $ -| $Revision: 1.2 $ -| $Date: 2007-04-29 19:59:43 $ +| $Revision: 1.3 $ +| $Date: 2007-07-21 09:57:33 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ require_once("class2.php"); + +// Next bit is to fool PM plugin into doing things +global $user; +$user['user_id'] = USERID; + require_once(e_FILE."shortcode/batch/user_shortcodes.php"); require_once(e_HANDLER."form_handler.php");