diff --git a/components/forum.php b/components/forum.php index b00b003e8c40db0125f693dfc3ba4c330cebe164..5a63e52ee48c0d1b0ba5145049fd15a8519cbc1e 100644 --- a/components/forum.php +++ b/components/forum.php @@ -56,7 +56,7 @@ if ($punbb_file == "extern.php") { $pathlist = array_slice($pathlist, 0, $file_index); $smarty->assign("title", "Forum"); - $smarty->assign("extra_styles", "/css/forum/SUCS.css"); + $smarty->assign("extra_styles", "$baseurl/css/forum/SUCS.css"); $smarty->assign("rss_url", "/Community/Forum/extern.php?action=active&type=rss"); $smarty->assign("body", $page); } diff --git a/htdocs/css/forum/SUCS.css b/htdocs/css/forum/SUCS.css index dbf975c73ae8a7ecdda99195930e549460058e97..e5985786c8510754cfdbdb44e2c474c3ebdb20da 100644 --- a/htdocs/css/forum/SUCS.css +++ b/htdocs/css/forum/SUCS.css @@ -263,3 +263,6 @@ td div.tclcon {margin-left: 2.3em} border: none; } +/* cut down on the fat. More space for avatars! */ +.postfootleft, .postfootright {display: none} + diff --git a/lib/punbb/viewtopic.php b/lib/punbb/viewtopic.php index cf0fcc4de2a5ca67b55cc092d59e9d8380fdad1c..e9944a43914c65af57fc7bcf3192fe7488c0f90a 100644 --- a/lib/punbb/viewtopic.php +++ b/lib/punbb/viewtopic.php @@ -206,17 +206,19 @@ while ($cur_post = $db->fetch_assoc($result)) // Format the online indicator $is_online = ($cur_post['is_online'] == $cur_post['poster_id']) ? '<strong>'.$lang_topic['Online'].'</strong>' : $lang_topic['Offline']; + /* begin SUCS avatar/hackergotchi hack if ($pun_config['o_avatars'] == '1' && $cur_post['use_avatar'] == '1' && $pun_user['show_avatars'] != '0') { if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif')) $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif" '.$img_size[3].' alt="" />'; else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg')) $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg" '.$img_size[3].' alt="" />'; - else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png')) - $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png" '.$img_size[3].' alt="" />'; - } - else + */ + if ($img_size = @getimagesize("/var/www/sucssite/htdocs/pictures/people".'/'.$cur_post['username'].'.png')) { + $user_avatar = '<img src="/pictures/people/'.$cur_post['username'].'.png" '.$img_size[3].' alt="" />'; + } else { $user_avatar = ''; + } // We only show location, register date, post count and the contact links if "Show user info" is enabled if ($pun_config['o_show_user_info'] == '1') @@ -229,7 +231,8 @@ while ($cur_post = $db->fetch_assoc($result)) $user_info[] = '<dd>'.$lang_topic['From'].': '.pun_htmlspecialchars($cur_post['location']); } - $user_info[] = '<dd>'.$lang_common['Registered'].': '.date($pun_config['o_date_format'], $cur_post['registered']); + //This is totally irrelavent to SUCS + //$user_info[] = '<dd>'.$lang_common['Registered'].': '.date($pun_config['o_date_format'], $cur_post['registered']); if ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST) $user_info[] = '<dd>'.$lang_common['Posts'].': '.$cur_post['num_posts']; @@ -317,8 +320,9 @@ while ($cur_post = $db->fetch_assoc($result)) <div class="postleft"> <dl> <dt><strong><?php echo $username ?></strong></dt> - <dd class="usertitle"><strong><?php echo $user_title ?></strong></dd> - <dd class="postavatar"><?php echo $user_avatar ?></dd> +<?php /* +<dd class="usertitle"><strong><?php echo $user_title ?></strong></dd> */ ?> + <dd class="postavatar"><?php echo $user_avatar ?></dd> <?php if (count($user_info)) echo "\t\t\t\t\t".implode('</dd>'."\n\t\t\t\t\t", $user_info).'</dd>'."\n"; ?> <?php if (count($user_contacts)) echo "\t\t\t\t\t".'<dd class="usercontacts">'.implode(' ', $user_contacts).'</dd>'."\n"; ?> </dl>