Oh yes dreamweaver can do that to peopleTandyServices wrote:This was the very first mod I installed and I solved it. I used Dreamweaver to make the edits in the first place, and that seems to be the problem. Now I used wordpad and the problem is solved. Should've thought of that
Thanks for the quick support
Next time, try Notepad++TandyServices wrote:This was the very first mod I installed and I solved it. I used Dreamweaver to make the edits in the first place, and that seems to be the problem. Now I used wordpad and the problem is solved. Should've thought of that
Thanks for the quick support
Code: Select all
<div class="panel bg1">
<div class="inner"><span class="corners-top"><span></span></span>
<h3>{L_FRIEND_LIST}</h3>
<!-- BEGIN fri -->
<a class="thumbnail" href="{fri.AV_LINK}" style="text-decoration:none">
<span>
<!-- IF fri.USER_COLOR --><b style="color:#{fri.USER_COLOR}"> <!-- ELSE --><b style="color:#000;"><!-- ENDIF -->{fri.USERNAME}</b><br /><!-- IF fri.FRI_AV -->{fri.FRI_AV}</span>{fri.FRI_AV_THUMB} <!-- ELSE --> <img src="images/no_avatar.gif" alt="noavatar" /></span><img src="images/no_avatar.gif" alt="noavatar" width="{fri.WIDTH}" /><!-- ENDIF -->
</a>
<!-- END fri -->
<ul class="linklist">
<li class="rightside pagination">{TOTAL_FRIENDS} • <!-- IF FRINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER_F}</a> • <span>{FRINATION}</span><!-- ELSE -->{PAGE_NUMBER_F}<!-- ENDIF --></li>
</ul>
<span class="corners-bottom"><span></span></span></div>
</div>
I also like this idea.trickoff wrote:Is it possible to make some sort of indication that show you if the user/friend is online or not. Mabye to have the username in red or bold text.
Code: Select all
// friend list mod by ian-taylor.ca
$user_id = request_var('u', 0);
$start = request_var('start', 0);
$limit = request_var('limit', intval($config['number_friends']));
$sql = 'SELECT u.user_avatar, u.username, u.user_colour, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, z.user_id, z.zebra_id, z.friend FROM ' . USERS_TABLE . ' u, ' . ZEBRA_TABLE . ' z WHERE u.user_id=z.zebra_id AND z.friend = 1 AND z.user_id = '.$user_id;
$result = $db->sql_query_limit($sql, $limit, $start);
while($row_av = $db->sql_fetchrow( $result )) {
$avatar_fri = get_user_avatar($row_av['user_avatar'], $row_av['user_avatar_type'], $row_av['user_avatar_width'], $row_av['user_avatar_height']);
$fri_id = $row_av['zebra_id'];
$av_size_size = $config['friend_avatar_size'];
if(!$row_av['user_avatar'])
{
$avatar = '<img src="images/avatars/no_avatar.gif" width="'.$av_size_size.'" />';
}
else
$avatar = ($row_av['user_avatar']) ? get_user_avatar($row_av['user_avatar'], $row_av['user_avatar_type'], ($row_av['user_avatar_width'] > $row_av['user_avatar_height']) ? $av_size_size : ($av_size_size / $row_av['user_avatar_height']) * $row_av['user_avatar_width'], ($row_av['user_avatar_height'] > $row_av['user_avatar_width']) ? $av_size_size : ($av_size_size / $row_av['user_avatar_width']) * $row_av['user_avatar_height']) : '';
$template->assign_block_vars('fri',array(
'FRI_ID' => $row_av['zebra_id'],
'FRI_AV' => $avatar_fri,
'USERNAME' => $row_av['username'],
'WIDTH' => $config['friend_avatar_size'],
'USER_COLOR' => $row_av['user_colour'],
'AV_LINK' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=viewprofile&u=$fri_id"),
'FRI_AV_THUMB' => $avatar,
));
}
// count some stuff up for the pagination
$profile = request_var('u', 0);
$sql = 'SELECT COUNT(zebra_id) AS number_friends FROM '. ZEBRA_TABLE ." WHERE user_id=$profile AND friend = 1";
$result = $db->sql_query($sql);
$pagination_friend = append_sid($phpbb_root_path . 'memberlist.' . $phpEx ,'mode=viewprofile&u='.$user_id);
$total_friends = $db->sql_fetchfield('number_friends');
$db->sql_freeresult($result);
$template->assign_vars(array(
'FRINATION' => generate_pagination($pagination_friend, $total_friends, $limit, $start),
'PAGE_NUMBER_F' => on_page($total_friends, $limit, $start),
'TOTAL_FRIENDS' => ($total_friends == 1) ? $user->lang['LIST_FRIEND'] : sprintf($user->lang['LIST_FRIENDS'], $total_friends),
));
// end friend list mod by ian-taylor.ca
platinum_2007 wrote:Replace the edit in memberlist.php with
to solve the Universal no avatar problem.Code: Select all
// friend list mod by ian-taylor.ca $user_id = request_var('u', 0); $start = request_var('start', 0); $limit = request_var('limit', intval($config['number_friends'])); $sql = 'SELECT u.user_avatar, u.username, u.user_colour, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, z.user_id, z.zebra_id, z.friend FROM ' . USERS_TABLE . ' u, ' . ZEBRA_TABLE . ' z WHERE u.user_id=z.zebra_id AND z.friend = 1 AND z.user_id = '.$user_id; $result = $db->sql_query_limit($sql, $limit, $start); while($row_av = $db->sql_fetchrow( $result )) { $avatar_fri = get_user_avatar($row_av['user_avatar'], $row_av['user_avatar_type'], $row_av['user_avatar_width'], $row_av['user_avatar_height']); $fri_id = $row_av['zebra_id']; $av_size_size = $config['friend_avatar_size']; if(!$row_av['user_avatar']) { $avatar = '<img src="images/avatars/no_avatar.gif" width="'.$av_size_size.'" />'; } else $avatar = ($row_av['user_avatar']) ? get_user_avatar($row_av['user_avatar'], $row_av['user_avatar_type'], ($row_av['user_avatar_width'] > $row_av['user_avatar_height']) ? $av_size_size : ($av_size_size / $row_av['user_avatar_height']) * $row_av['user_avatar_width'], ($row_av['user_avatar_height'] > $row_av['user_avatar_width']) ? $av_size_size : ($av_size_size / $row_av['user_avatar_width']) * $row_av['user_avatar_height']) : ''; $template->assign_block_vars('fri',array( 'FRI_ID' => $row_av['zebra_id'], 'FRI_AV' => $avatar_fri, 'USERNAME' => $row_av['username'], 'WIDTH' => $config['friend_avatar_size'], 'USER_COLOR' => $row_av['user_colour'], 'AV_LINK' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=viewprofile&u=$fri_id"), 'FRI_AV_THUMB' => $avatar, )); } // count some stuff up for the pagination $profile = request_var('u', 0); $sql = 'SELECT COUNT(zebra_id) AS number_friends FROM '. ZEBRA_TABLE ." WHERE user_id=$profile AND friend = 1"; $result = $db->sql_query($sql); $pagination_friend = append_sid($phpbb_root_path . 'memberlist.' . $phpEx ,'mode=viewprofile&u='.$user_id); $total_friends = $db->sql_fetchfield('number_friends'); $db->sql_freeresult($result); $template->assign_vars(array( 'FRINATION' => generate_pagination($pagination_friend, $total_friends, $limit, $start), 'PAGE_NUMBER_F' => on_page($total_friends, $limit, $start), 'TOTAL_FRIENDS' => ($total_friends == 1) ? $user->lang['LIST_FRIEND'] : sprintf($user->lang['LIST_FRIENDS'], $total_friends), )); // end friend list mod by ian-taylor.ca
S.kumaran wrote:Demo please?