Results 1 to 2 of 2

Thread: Custom Menu - Profile Menu - Question

  1. #1

    Join Date
    Sep 2006
    Posts
    34

    Default Custom Menu - Profile Menu - Question

    I am looking to split the menu into 2 rows.. but no idea how to go about doing this found the info for it in the Menu_design.php file

    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&amp;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&amp;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&amp;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&amp;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&amp;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..

  2. #2

    Join Date
    Sep 2006
    Posts
    34

    Default

    ha.. as soon as i hit enter it comes to me.. silly silly me..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to add a Menu Item to Custom Menu?
    By cpowers in forum General Issues, Comments, Questions
    Replies: 3
    Last Post: 05-22-2007, 08:51 AM
  2. How to Add Icons to Custom Menu
    By fatum in forum General Issues, Comments, Questions
    Replies: 0
    Last Post: 05-01-2007, 05:14 PM
  3. adSense below Custom Menu
    By aaronrrc in forum General Issues, Comments, Questions
    Replies: 0
    Last Post: 04-30-2007, 03:56 PM
  4. dolphin custom menu blog link for profile
    By treedguy in forum Blog / Guestbook
    Replies: 0
    Last Post: 04-17-2007, 07:41 AM
  5. custom menu
    By gvpm in forum Dolphin General Discussion v5.3 to v5.6.5
    Replies: 1
    Last Post: 11-03-2006, 12:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •