From 47a90f17e6c7491ef84d0a4d400cc2a0192011fc Mon Sep 17 00:00:00 2001 From: Atte Date: Thu, 11 Sep 2014 15:44:31 +0300 Subject: [PATCH] Update characterprofile.php --- characterprofile.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/characterprofile.php b/characterprofile.php index 14f9c2c..1d555b4 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -9,6 +9,9 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { if ($config['TFSVersion'] == 'TFS_10') { $profile_data = user_character_data($user_id, 'name', 'level', 'vocation', 'lastlogin', 'sex'); $profile_data['online'] = user_is_online_10($user_id); + if ($config['Ach'] == true) { + $achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`='$user_id'"); + } } else $profile_data = user_character_data($user_id, 'name', 'level', 'vocation', 'lastlogin', 'online', 'sex'); $profile_znote_data = user_znote_character_data($user_id, 'created', 'hide_char', 'comment'); @@ -18,6 +21,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { $guild = get_player_guild_data($user_id); $guild_name = get_guild_name($guild['guild_id']); } + ?> @@ -48,16 +52,15 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { } ?> - - -
  • Achievement Points: '; - } - }?> - + + 0) //if player doesn't have any achievement points it won't echo the line below. + echo 'Achievement Points' .$achievement. ' '; + } + ?> +