ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How do I add a right nav button to the members module view / search members page?

April 21, 2010 7:42pm

Subscribe [2]
  • #1 / Apr 21, 2010 7:42pm

    Badlands

    17 posts

    Hi I’ve written functions that export a csv file containing information about all of the members. I would like these functions to be called by a button at the top of the view/search members control panel page of the members module.

    How best to do this without hacking the core module?

  • #2 / May 05, 2010 1:15am

    Badlands

    17 posts

    I’m assuming that this is best done using an extension. Althought I can’t actually find any decent tutorials or information that help explain how to use one of the hooks to impliment this.

    Could someone please point me in the right direction?

  • #3 / May 05, 2010 2:36am

    Wouter Vervloet

    758 posts

    I’m assuming that this is best done using an extension. Althought I can’t actually find any decent tutorials or information that help explain how to use one of the hooks to impliment this.

    Could someone please point me in the right direction?

    I think your best bet would be the show_full_control_panel_end hook.

    You can insert HTML into your CP by doing a search and replace on the Control Panel HTML. The DC Required Category add-on uses this method to insert some of it’s own settings into the CP. So if you look at its source, I guess you could figure out how to do it.

    Greetz,
    Wouter

  • #4 / May 06, 2010 7:01pm

    Badlands

    17 posts

    Thanks. This should send me on the right path. Perhaps needing to reverse engineer another developers plugin in order to learn how the system works indicates a shortfall in the Expression Engine documentation…

  • #5 / May 06, 2010 7:23pm

    Wouter Vervloet

    758 posts

    Well… the documentation is there…

    Hook Description:
    - Rewrite CP’s HTML
    - Find/Replace Stuff, etc.

    It is just the way you use it that is hard to document. Every developer comes up with imaginative ways to makes use of a particular hook, so why not take advantage of that?

    Greetz,
    Wouter

  • #6 / May 06, 2010 7:50pm

    Badlands

    17 posts

    I see your point man and I agree. I just think it took me too long to learn how a concept like hooks work. In doing so I think that the documentation could be more thorough

    Something like this would have helped me immensely:

    The function you associate with this hook in the extension takes $out as a parameter :

    //When this function is called, the html of the control panel is passed in as a parameter 
    //which you can then manipulate
    function the_function_associated_with_the_hook_in_extension_settings( $out ){
    
    //Do something with the html
    
    //Return your modified control panel html to be displayed
    return $out;
    
    }
  • #7 / May 11, 2010 2:19am

    Badlands

    17 posts

    Could someone tell me if the ‘show_full_control_panel_end’ hook has been deprecated or in some way removed from EE2 ?


    There seems to be no difinitive answer in this forum http://ellislab.com/forums/viewthread/153999/ and it is extremely important to a project I have due by tomorrow.

    Cheers

  • #8 / May 11, 2010 2:39am

    Wouter Vervloet

    758 posts

    Could someone tell me if the ‘show_full_control_panel_end’ hook has been deprecated or in some way removed from EE2 ?


    There seems to be no difinitive answer in this forum http://ellislab.com/forums/viewthread/153999/ and it is extremely important to a project I have due by tomorrow.

    Cheers

    It has been removed in EE2. I ran into this myself not too long ago when I was porting one of my add-ons.

  • #9 / May 11, 2010 2:48am

    Badlands

    17 posts

    Did you by any chance find a solution?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases