mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Altered way ICQ overlay is done, uses JavaScript ... don't want this generated within the source code, fixed website issue in profile
git-svn-id: file:///svn/phpbb/trunk@1708 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f97b9ae517
commit
9be9a6602b
3 changed files with 33 additions and 69 deletions
|
@ -468,22 +468,8 @@ else if( $mode == "read" )
|
||||||
if( $privmsg['user_icq'] )
|
if( $privmsg['user_icq'] )
|
||||||
{
|
{
|
||||||
$icq_status_img = "<a href=\"http://wwp.icq.com/" . $privmsg['user_icq'] . "#pager\"><img src=\"http://web.icq.com/whitepages/online?icq=" . $privmsg['user_icq'] . "&img=5\" width=\"18\" height=\"18\" border=\"0\" /></a>";
|
$icq_status_img = "<a href=\"http://wwp.icq.com/" . $privmsg['user_icq'] . "#pager\"><img src=\"http://web.icq.com/whitepages/online?icq=" . $privmsg['user_icq'] . "&img=5\" width=\"18\" height=\"18\" border=\"0\" /></a>";
|
||||||
|
|
||||||
//
|
|
||||||
// This cannot stay like this, it needs a 'proper' solution, eg a separate
|
|
||||||
// template for overlaying the ICQ icon, or we just do away with the icq status
|
|
||||||
// display (which is after all somewhat a pain in the rear :D
|
|
||||||
//
|
|
||||||
if( $theme['template_name'] == "subSilver" )
|
|
||||||
{
|
|
||||||
$icq_add_img = '<table width="59" border="0" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap" class="icqback"><img src="images/spacer.gif" width="3" height="18" alt = "">' . $icq_status_img . '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $privmsg['user_icq'] . '"><img src="images/spacer.gif" width="35" height="18" border="0" alt="' . $lang['ICQ'] . '" /></a></td></tr></table>';
|
|
||||||
$icq_status_img = "";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$icq_add_img = "<a href=\"http://wwp.icq.com/scripts/search.dll?to=" . $privmsg['user_icq'] . "\"><img src=\"" . $images['icon_icq'] . "\" alt=\"" . $lang['ICQ'] . "\" border=\"0\" /></a>";
|
$icq_add_img = "<a href=\"http://wwp.icq.com/scripts/search.dll?to=" . $privmsg['user_icq'] . "\"><img src=\"" . $images['icon_icq'] . "\" alt=\"" . $lang['ICQ'] . "\" border=\"0\" /></a>";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$icq_status_img = "";
|
$icq_status_img = "";
|
||||||
|
@ -571,6 +557,8 @@ else if( $mode == "read" )
|
||||||
"SEARCH_IMG" => $search_img,
|
"SEARCH_IMG" => $search_img,
|
||||||
"EMAIL_IMG" => $email_img,
|
"EMAIL_IMG" => $email_img,
|
||||||
"WWW_IMG" => $www_img,
|
"WWW_IMG" => $www_img,
|
||||||
|
"ICQ" => ( $privmsg['user_icq'] ) ? $privmsg['user_icq'] : " ",
|
||||||
|
"ICQ_IMG" => ( $privmsg['user_icq'] ) ? $images['icon_icq'] : " ",
|
||||||
"ICQ_STATUS_IMG" => $icq_status_img,
|
"ICQ_STATUS_IMG" => $icq_status_img,
|
||||||
"ICQ_ADD_IMG" => $icq_add_img,
|
"ICQ_ADD_IMG" => $icq_add_img,
|
||||||
"AIM_IMG" => $aim_img,
|
"AIM_IMG" => $aim_img,
|
||||||
|
|
|
@ -216,9 +216,6 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
// Output page header and
|
// Output page header and
|
||||||
// profile_view template
|
// profile_view template
|
||||||
//
|
//
|
||||||
$page_title = $lang['Viewing_profile'];
|
|
||||||
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
|
|
||||||
|
|
||||||
$template->set_filenames(array(
|
$template->set_filenames(array(
|
||||||
"body" => "profile_view_body.tpl",
|
"body" => "profile_view_body.tpl",
|
||||||
"jumpbox" => "jumpbox.tpl")
|
"jumpbox" => "jumpbox.tpl")
|
||||||
|
@ -262,8 +259,8 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
{
|
{
|
||||||
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL ."=" . $profiledata['user_id']) : "mailto:" . $profiledata['user_email'];
|
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL ."=" . $profiledata['user_id']) : "mailto:" . $profiledata['user_email'];
|
||||||
|
|
||||||
$email = "<a href=\"$email_uri\">" . $lang['Send_email'] . "</a>";
|
$email = '<a href="$email_uri">' . $lang['Send_email'] . '</a>';
|
||||||
$email_img = "<a href=\"$email_uri\"><img src=\"" . $images['icon_email'] . "\" alt=\"" . $lang['Send_email'] . "\" border=\"0\" /></a>";
|
$email_img = '<a href="$email_uri"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" border="0" /></a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -276,13 +273,13 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
switch( $profiledata['user_avatar_type'] )
|
switch( $profiledata['user_avatar_type'] )
|
||||||
{
|
{
|
||||||
case USER_AVATAR_UPLOAD:
|
case USER_AVATAR_UPLOAD:
|
||||||
$avatar_img = "<img src=\"" . $board_config['avatar_path'] . "/" . $profiledata['user_avatar'] . "\" alt=\"\" />";
|
$avatar_img = '<img src="' . $board_config['avatar_path'] . '/' . $profiledata['user_avatar'] . '" alt="" />';
|
||||||
break;
|
break;
|
||||||
case USER_AVATAR_REMOTE:
|
case USER_AVATAR_REMOTE:
|
||||||
$avatar_img = "<img src=\"" . $profiledata['user_avatar'] . "\" alt=\"\" />";
|
$avatar_img = '<img src="' . $profiledata['user_avatar'] . '" alt="" />';
|
||||||
break;
|
break;
|
||||||
case USER_AVATAR_GALLERY:
|
case USER_AVATAR_GALLERY:
|
||||||
$avatar_img = "<img src=\"" . $board_config['avatar_gallery_path'] . "/" . $profiledata['user_avatar'] . "\" alt=\"\" />";
|
$avatar_img = '<img src="' . $board_config['avatar_gallery_path'] . '/' . $profiledata['user_avatar'] . '" alt="" />';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -320,22 +317,8 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
|
|
||||||
if( !empty($profiledata['user_icq']) )
|
if( !empty($profiledata['user_icq']) )
|
||||||
{
|
{
|
||||||
$icq_status_img = "<a href=\"http://wwp.icq.com/" . $profiledata['user_icq'] . "#pager\"><img src=\"http://web.icq.com/whitepages/online?icq=" . $profiledata['user_icq'] . "&img=5\" width=\"18\" height=\"18\" border=\"0\" /></a>";
|
$icq_status_img = '<a href="http://wwp.icq.com/' . $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $profiledata['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
|
||||||
|
$icq_add_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" border="0" /></a>';
|
||||||
//
|
|
||||||
// This cannot stay like this, it needs a 'proper' solution, eg a separate
|
|
||||||
// template for overlaying the ICQ icon, or we just do away with the icq status
|
|
||||||
// display (which is after all somewhat a pain in the rear :D
|
|
||||||
//
|
|
||||||
if( $theme['template_name'] == "subSilver" )
|
|
||||||
{
|
|
||||||
$icq_add_img = '<table width="59" border="0" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap" class="icqback"><img src="images/spacer.gif" width="3" height="18" alt = "">' . $icq_status_img . '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '"><img src="images/spacer.gif" width="35" height="18" border="0" alt="' . $lang['ICQ'] . '" /></a></td></tr></table>';
|
|
||||||
$icq_status_img = "";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$icq_add_img = "<a href=\"http://wwp.icq.com/scripts/search.dll?to=" . $profiledata['user_icq'] . "\"><img src=\"" . $images['icon_icq'] . "\" alt=\"" . $lang['ICQ'] . "\" border=\"0\" /></a>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -343,16 +326,16 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
$icq_add_img = " ";
|
$icq_add_img = " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
$aim_img = ($profiledata['user_aim']) ? "<a href=\"aim:goim?screenname=" . $profiledata['user_aim'] . "&message=Hello+Are+you+there?\"><img src=\"" . $images['icon_aim'] . "\" border=\"0\" alt=\"" . $lang['AIM'] . "\" /></a>" : " ";
|
$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" border="0" alt="' . $lang['AIM'] . '" /></a>' : " ";
|
||||||
|
|
||||||
$msnm_img = ($profiledata['user_msnm']) ? "<img src=\"" . $images['icon_msnm'] . "\" border=\"0\" alt=\"" . $lang['MSNM'] . "\" /> " . $profiledata['user_msnm'] : " ";
|
$msnm_img = ( $profiledata['user_msnm'] ) ? '<img src="' . $images['icon_msnm'] . '" border="0" alt="' . $lang['MSNM'] . '" /> ' . $profiledata['user_msnm'] : " ";
|
||||||
|
|
||||||
$yim_img = ( $profiledata['user_yim'] ) ? "<a href=\"http://edit.yahoo.com/config/send_webmesg?.target=" . $members[$i]['user_yim'] . "&.src=pg\"><img src=\"" . $images['icon_yim'] . "\" border=\"0\" alt=\"" . $lang['YIM'] . "\" /></a>" : " ";
|
$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" border="0" alt="' . $lang['YIM'] . '" /></a>' : " ";
|
||||||
|
|
||||||
$search_img = "<a href=\"" . append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=topics") . "\"><img src=\"" . $images['icon_search'] . "\" border=\"0\" alt=\"" . $lang['Search_user_posts'] . "\" /></a>";
|
$search_img = '<a href="' . append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=posts") . '"><img src="' . $images['icon_search'] . '" border="0" alt="' . $lang['Search_user_posts'] . '" /></a>';
|
||||||
$search = "<a href=\"" . append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=topics") . "\">" . $lang['Search_user_posts'] . "</a>";
|
$search = "<a href=\"" . append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=posts") . "\">" . $lang['Search_user_posts'] . "</a>";
|
||||||
|
|
||||||
$www_img = ($profiledata['user_website']) ? "<a href=\"" . $profiledata['user_website'] . "\"><img src=\"" . $images['icon_www'] . "\" alt=\"" . $lang['Visit_website'] . "\" border=\"0\" /></a>" : " ";
|
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" border="0" /></a>' : " ";
|
||||||
|
|
||||||
$pm_img = "<a href=\"" . append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=" . $profiledata['user_id']) . "\"><img src=\"". $images['icon_pm'] . "\" alt=\"" . $lang['Send_private_message'] . "\" border=\"0\" /></a>";
|
$pm_img = "<a href=\"" . append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=" . $profiledata['user_id']) . "\"><img src=\"". $images['icon_pm'] . "\" alt=\"" . $lang['Send_private_message'] . "\" border=\"0\" /></a>";
|
||||||
|
|
||||||
|
@ -371,19 +354,21 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
"PM_IMG" => $pm_img,
|
"PM_IMG" => $pm_img,
|
||||||
"UL_SEARCH" => $search,
|
"UL_SEARCH" => $search,
|
||||||
"SEARCH_IMG" => $search_img,
|
"SEARCH_IMG" => $search_img,
|
||||||
|
"ICQ" => ( $profiledata['user_icq'] ) ? $profiledata['user_icq'] : " ",
|
||||||
|
"ICQ_IMG" => ( $profiledata['user_icq'] ) ? $images['icon_icq'] : " ",
|
||||||
"ICQ_ADD_IMG" => $icq_add_img,
|
"ICQ_ADD_IMG" => $icq_add_img,
|
||||||
"ICQ_STATUS_IMG" => $icq_status_img,
|
"ICQ_STATUS_IMG" => $icq_status_img,
|
||||||
"AIM" => ( ($profiledata['user_aim']) ? $profiledata['user_aim'] : " " ),
|
"AIM" => ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?">' . $profiledata['user_aim'] . '</a>' : " ",
|
||||||
"AIM_IMG" => $aim_img,
|
"AIM_IMG" => $aim_img,
|
||||||
"MSN" => ( ($profiledata['user_msnm']) ? $profiledata['user_msnm'] : " " ),
|
"MSN" => ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : " ",
|
||||||
"MSN_IMG" => $msnm_img,
|
"MSN_IMG" => $msnm_img,
|
||||||
"YIM" => ( ($profiledata['user_yim']) ? $profiledata['user_yim'] : " " ),
|
"YIM" => ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg">' . $profiledata['user_yim'] . '</a>' : " ",
|
||||||
"YIM_IMG" => $yim_img,
|
"YIM_IMG" => $yim_img,
|
||||||
"WEBSITE" => ( ($profiledata['user_website']) ? $profiledata['user_website'] : " " ),
|
"WEBSITE" => ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_phpbbwebsite">' . $profiledata['user_website'] . '</a>' : " ",
|
||||||
"WEBSITE_IMG" => $www_img,
|
"WEBSITE_IMG" => $www_img,
|
||||||
"LOCATION" => ( ($profiledata['user_from']) ? $profiledata['user_from'] : " " ),
|
"LOCATION" => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : " ",
|
||||||
"OCCUPATION" => ( ($profiledata['user_occ']) ? $profiledata['user_occ'] : " " ),
|
"OCCUPATION" => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : " ",
|
||||||
"INTERESTS" => ( ($profiledata['user_interests']) ? $profiledata['user_interests'] : " " ),
|
"INTERESTS" => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : " ",
|
||||||
"AVATAR_IMG" => $avatar_img,
|
"AVATAR_IMG" => $avatar_img,
|
||||||
|
|
||||||
"L_VIEWING_PROFILE" => sprintf($lang['Viewing_user_profile'], $profiledata['username']),
|
"L_VIEWING_PROFILE" => sprintf($lang['Viewing_user_profile'], $profiledata['username']),
|
||||||
|
@ -405,11 +390,14 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
"L_OCCUPATION" => $lang['Occupation'],
|
"L_OCCUPATION" => $lang['Occupation'],
|
||||||
"L_INTERESTS" => $lang['Interests'],
|
"L_INTERESTS" => $lang['Interests'],
|
||||||
|
|
||||||
"U_SEARCH_USER" => append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=topics"),
|
"U_SEARCH_USER" => append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=posts"),
|
||||||
|
|
||||||
"S_PROFILE_ACTION" => append_sid("profile.$phpEx"))
|
"S_PROFILE_ACTION" => append_sid("profile.$phpEx"))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$page_title = $lang['Viewing_profile'];
|
||||||
|
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
|
||||||
|
|
||||||
$template->pparse("body");
|
$template->pparse("body");
|
||||||
|
|
||||||
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
||||||
|
|
|
@ -855,22 +855,8 @@ for($i = 0; $i < $total_posts; $i++)
|
||||||
if( !empty($postrow[$i]['user_icq']) )
|
if( !empty($postrow[$i]['user_icq']) )
|
||||||
{
|
{
|
||||||
$icq_status_img = "<a href=\"http://wwp.icq.com/" . $postrow[$i]['user_icq'] . "#pager\"><img src=\"http://web.icq.com/whitepages/online?icq=" . $postrow[$i]['user_icq'] . "&img=5\" width=\"18\" height=\"18\" border=\"0\" /></a>";
|
$icq_status_img = "<a href=\"http://wwp.icq.com/" . $postrow[$i]['user_icq'] . "#pager\"><img src=\"http://web.icq.com/whitepages/online?icq=" . $postrow[$i]['user_icq'] . "&img=5\" width=\"18\" height=\"18\" border=\"0\" /></a>";
|
||||||
|
|
||||||
//
|
|
||||||
// This cannot stay like this, it needs a 'proper' solution, eg a separate
|
|
||||||
// template for overlaying the ICQ icon, or we just do away with the icq status
|
|
||||||
// display (which is after all somewhat a pain in the rear :D
|
|
||||||
//
|
|
||||||
if( $theme['template_name'] == "subSilver" )
|
|
||||||
{
|
|
||||||
$icq_add_img = '<table width="59" border="0" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap" class="icqback"><img src="images/spacer.gif" width="3" height="18" alt = "" />' . $icq_status_img . '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $postrow[$i]['user_icq'] . '"><img src="images/spacer.gif" width="35" height="18" border="0" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" /></a></td></tr></table>';
|
|
||||||
$icq_status_img = "";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$icq_add_img = "<a href=\"http://wwp.icq.com/scripts/search.dll?to=" . $postrow[$i]['user_icq'] . "\"><img src=\"" . $images['icon_icq'] . "\" alt=\"" . $lang['ICQ'] . "\" title=\"" . $lang['ICQ'] . "\" border=\"0\" /></a>";
|
$icq_add_img = "<a href=\"http://wwp.icq.com/scripts/search.dll?to=" . $postrow[$i]['user_icq'] . "\"><img src=\"" . $images['icon_icq'] . "\" alt=\"" . $lang['ICQ'] . "\" title=\"" . $lang['ICQ'] . "\" border=\"0\" /></a>";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$icq_status_img = "";
|
$icq_status_img = "";
|
||||||
|
@ -1076,6 +1062,8 @@ for($i = 0; $i < $total_posts; $i++)
|
||||||
"PM_IMG" => $pm_img,
|
"PM_IMG" => $pm_img,
|
||||||
"EMAIL_IMG" => $email_img,
|
"EMAIL_IMG" => $email_img,
|
||||||
"WWW_IMG" => $www_img,
|
"WWW_IMG" => $www_img,
|
||||||
|
"ICQ" => ( !empty($postrow[$i]['user_icq']) ) ? $postrow[$i]['user_icq'] : " ",
|
||||||
|
"ICQ_IMG" => ( !empty($postrow[$i]['user_icq']) ) ? $images['icon_icq'] : " ",
|
||||||
"ICQ_STATUS_IMG" => $icq_status_img,
|
"ICQ_STATUS_IMG" => $icq_status_img,
|
||||||
"ICQ_ADD_IMG" => $icq_add_img,
|
"ICQ_ADD_IMG" => $icq_add_img,
|
||||||
"AIM_IMG" => $aim_img,
|
"AIM_IMG" => $aim_img,
|
||||||
|
|
Loading…
Add table
Reference in a new issue