Code:
function CustomMenuFuncProfile()
{
global $site;
global $p_arr;
global $ID;
global $aGlobalVars;
global $contact_allowed;
global $logged;
global $user_is_online;
$ret = "";
$ret .= '<div class="menu_item_block">';
if ( $aGlobalVars['enable_im'] && $user_is_online )
{
$ret .= MenuItem(_t("_Private message"), 'javascript:void(0);', '', '_private_message.gif', '', "launchAddToIM({$p_arr['ID']});" );
}
if ( $p_arr['Video'] && $aGlobalVars['enable_video'] )
{
$ret .= MenuItem( _t("_view video"), 'javascript:void(0);', '', '_view_video.gif', '', "javascript: window.open( 'video_pop.php?ID={$p_arr['ID']}', '', 'width={$aGlobalVars['popUpWindowWidth']},height={$aGlobalVars['popUpWindowHeight']},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" );
}
if ( $p_arr['Sound'] && $aGlobalVars['enable_audio'] )
{
$ret .= MenuItem( _t("_listen voice"), 'javascript:void(0);', '', '_listen_voice.gif', '', "javascript: window.open( 'sound_pop.php?ID={$p_arr['ID']}', '', 'width={$aGlobalVars['popUpWindowWidth']},height={$aGlobalVars['popUpWindowHeight']},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );" );
}
if ( !$aGlobalVars['anonymous_mode'] )
{
//$ret .= MenuItem(_t("_GET_EMAIL"), 'freemail.php?ID=' . $p_arr['ID'], '', '_get_email.gif', '_blank' );
$ret .= MenuItem( _t("_GET_EMAIL"), 'javascript:void(0);', '', '_block_member.gif', '', "javascript:window.open( 'freemail.php?ID={$p_arr['ID']}', '', 'width={$aGlobalVars['popUpWindowWidth']},height={$aGlobalVars['popUpWindowHeight']},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );" );
}
$ret .= MenuItem( _t("_SEND_MESSAGE"), 'compose.php?ID=' . $p_arr['ID'], '', '_compose_message.gif', '_blank' );
if ( !$aGlobalVars['membership_only'] && !$aGlobalVars['free_mode'] && $logged['member'] && !$contact_allowed )
$ret .= MenuItem( _t("_ADD_TO_CART"), 'javascript:void(0);', '', '_cart.gif', '', "javascript: window.open( 'cart_pop.php?action=add&ID={$p_arr['ID']}', 'cart_$ID', 'width={$aGlobalVars['popUpWindowWidth']},height={$aGlobalVars['popUpWindowHeight']},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );" );
//$ret .= MenuItem( _t("_send a kiss"), "vkiss.php?sendto=$p_arr[ID]", '', '_send_kiss.gif' );
$ret .= MenuItem( _t("_send a kiss"), 'javascript:void(0);', '', '_send_kiss.gif', '', "javascript:window.open( 'vkiss.php?sendto={$p_arr['ID']}', '', 'width={$aGlobalVars['popUpWindowWidth']},height={$aGlobalVars['popUpWindowHeight']},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );" );
$ret .= MenuItem( _t("_email to frend"), 'javascript:void(0);', '', '_email_to_friend.gif', '', "return launchTellFriendProfile($ID);" );
if( $aGlobalVars['enable_guestbook'] )
{
$ret .= MenuItem( _t("_guestbook"), 'guestbook.php?owner=' . $p_arr['ID'], '', '_guestbook.gif' );
}
if( $aGlobalVars['enable_blog'] )
{
$ret .= MenuItem( _t("_blog"), 'blog.php?owner=' . $p_arr['ID'], '', '_blog.gif' );
}
if( $aGlobalVars['enable_gallery'] )
{
$ret .= MenuItem( _t("_Gallery"), 'gallery.php?owner=' . $p_arr['ID'], '', '_gallery.gif' );
}
if ( $logged['member'] )
{
$ret .= MenuItem( _t("_block member"), 'javascript:void(0);', '', '_block_member.gif', '', "javascript:window.open( 'list_pop.php?action=block&ID=$ID', '', 'width={$aGlobalVars['popUpWindowWidth']},height={$aGlobalVars['popUpWindowHeight']},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );" );
$ret .= MenuItem( _t("_friend member"), 'javascript:void(0);', '', '_friend_member.gif', '', "javascript:window.open( 'list_pop.php?action=friend&ID=$ID', '', 'width={$aGlobalVars['popUpWindowWidth']},height={$aGlobalVars['popUpWindowHeight']},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );" );
$ret .= MenuItem( _t("_hot member"), 'javascript:void(0);', '', '_hot_member.gif', '', "javascript:window.open( 'list_pop.php?action=hot&ID=$ID', '', 'width={$aGlobalVars['popUpWindowWidth']},height={$aGlobalVars['popUpWindowHeight']},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );");
$ret .= MenuItem( _t("_spam member"), 'javascript:void(0);', '', '_spam_report.gif', '', "javascript:window.open( 'list_pop.php?action=spam&ID=$ID', '', 'width={$aGlobalVars['popUpWindowWidth']},height={$aGlobalVars['popUpWindowHeight']},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );");
}
if ( $logged['admin'] )
{
$ret .= MenuItem(_t("_edit profile"), 'profile_edit.php?ID=' . $p_arr['ID'], '', '_edit_profile.gif', '_blank' );
}
$ret .= "</div>";
return $ret;
}
any help would be appreciated..
Bookmarks