Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: Help in PHP Code

  1. #11
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    They did have help on a construct very similar to what you have there - multiple tabs. I don't think what you're doing is that far off. Have you tried?

    Where is this add_filter function? Being unfamiliar with this plug-in, I would need to see at least what it looks like (as I said, and possibly other functions it depends upon) to figure out how to make it happy while also producing no tab or a hidden tab.

    If you're sure the forum for this plug-in will not support what you are attempting, perhaps try Stack-Overflow. At least someone there seems somewhat familiar with the plug-in.

    I don't think anyone here has that experience, without that we would need to see more code as I've already indicated. As for the unset command, how to write it and where to put it, if I had to guess I would write it and place it like so (addition highlighted):

    Code:
    	else {
    		
    		function add_custom_profile_tab3( $downloadtab ) {
     
    		$downloadtab['download'] = array(
    			'name' => 'Downloads',
    			'icon' => 'um-faicon-bookmark',
    		);
    		
    		return $downloadtab;
    		
    	}	
    	unset( $downloadtab['download'] );	
     }
    But again, experience with this plug-in would be a big plus in figuring this out. I have no idea if this use of unset would work here.
    Last edited by jscheuer1; 04-21-2015 at 04:20 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Replies: 3
    Last Post: 05-12-2011, 03:43 AM
  2. Secret code / hidden message / obfuscated code - ???
    By newbie01.others in forum JavaScript
    Replies: 2
    Last Post: 01-14-2011, 11:29 AM
  3. Replies: 15
    Last Post: 06-11-2009, 12:27 PM
  4. Replies: 2
    Last Post: 10-27-2008, 05:16 AM
  5. Help - Code discrepency - Full Screen code
    By kurson in forum Dynamic Drive scripts help
    Replies: 17
    Last Post: 05-23-2006, 05:21 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
  •