diff --git a/characterprofile.php b/characterprofile.php index 548d4fa..be024dc 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -21,7 +21,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { if ($config['Ach']) { $user_id = (int) $user_id; - $achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`=$user_id"); + $achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`={$user_id} LIMIT 1"); } } else { // TFS 0.2, 0.3 if (!$loadOutfits) { @@ -35,541 +35,447 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { } $profile_znote_data = user_znote_character_data($user_id, 'created', 'hide_char', 'comment'); - $guild_exist = false; - - if (get_character_guild_rank($user_id) > 0) - { + if (get_character_guild_rank($user_id) > 0) { $guild_exist = true; $guild = get_player_guild_data($user_id); $guild_name = get_guild_name($guild['guild_id']); } - ?> - + - - -

img

- - + + + + +

Address:

+include 'layout/overall/footer.php'; ?> \ No newline at end of file diff --git a/engine/init.php b/engine/init.php index ef8555e..7ec5ef0 100644 --- a/engine/init.php +++ b/engine/init.php @@ -135,10 +135,11 @@ if ($config['log_ip']) { } // Sub page override system +$filename = explode('/', $_SERVER['PHP_SELF']); +$filename = $filename[count($filename)-1]; +$page_filename = str_replace('.php', '', $filename); if ($config['allowSubPages']) { require_once 'layout/sub.php'; - $filename = explode('/', $_SERVER['PHP_SELF']); - $filename = $filename[count($filename)-1]; if (isset($subpages) && !empty($subpages)) { foreach ($subpages as $page) { if ($page['override'] && $page['file'] === $filename) { diff --git a/layout/css/style.css b/layout/css/style.css index eb24d25..13fa21c 100644 --- a/layout/css/style.css +++ b/layout/css/style.css @@ -706,4 +706,30 @@ table.hide { .auction_char .outfitColumn img { top: -16px; left: -20px; +} + +/* Characterprofile table design */ +#characterProfileTable thead th:first-of-type { + position: relative; + width: 28%; +} +#characterProfileTable thead th:nth-child(2) { + /*background-color: red;*/ +} + +#characterProfileTable thead h1 { + text-shadow: none; + color: white; + padding: 0; +} + +#characterProfileTable .outfit { + position: absolute; + left: 0; + top: -16px; +} +#characterProfileTable .flag { + position: absolute; + right: 16px; + top: 16px; } \ No newline at end of file