help to make a theme

i make a theme, completly redesign the profile page. I need 2 helps.
1.how to add admin to user profile page.

2.how to remove hover menu in entire site.

1 Problem:-
i add message board in profile page. But when post in message board. i got an error, the header is already redirected.

    1. Not exactly understood #1.
    2. For #2, add the following to the user icon call function 'use_hover'=>false. If you want to remove the hover menu from entire site, just override the icon/user/default view with your own view in which the hover menu is removed.
  • headers_sent() error usually comes up when you have return prior to <?php tags

  • If you're using 1.8 the hover menu is controlled through plugin hooks.

     

    elgg_register_plugin_hook_handler('register', 'menu:user_hover', 'yourtheme_hover_menu', 1000);

     

     

    // called by menu:user_hover plugin hook
    // $params['entity'] is the user
    // $params['name'] is the menu name = "user_hover"
    // $return is an array of items that are already registered to the menu
    function yourtheme_hover_menu($hook, $type, $return, $params) {
      return array();
    }

  • Ah, yes you can create the plugin_hook for the hover menu as matt mentioned. Forgot about the new navigation system in 1.8. ;)

  • sorry there is one mistake in #1.
    It is:- i cant see the admin menu under the profile menu of each user after editing the theme.How can add it.

    Thanks for ur reply.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking