Hi Hiro, 

No you need to make your own module. Let's say you call your module anone.

Then:

1. Make a folder in sites/all/modules called anone

2. Make a file inside that folder and call it anone.info, put the following lines inside
            name = " A-NO-NE"
            description = "Helper module for small changes in functionality Anone site"
            package = "Anone"
            dependencies[] = og
            core = 6.x
            version = "6.x-1.x-dev"

    3. Make a second file inside the anone folder and call it anone.module, put inside the lines that I gave you, but replace mymodule in the function name with the real name of the module where you use it in: anone, so
    function anone_og_links_alter(&$links, $group_node) {
    Start with <?php but don't end with ?>

    4. Go in your Drupal admin to modules and activate your module. Should work, if you get a white screen you made a mistake. More information how to make a module you find on  http://drupal.org/node/206753

    Good luck, 

    Hans
    www.koba.be

    2009/6/26 A-NO-NE Music <madflute@anonemusic.com>

    Thank you so much for you response (again :-)

    I must admit I do not know how to implement this.  When you say "inside the module", do I need to hack the book.module file, or create a tpl,php file instead?


    --
    - Hiro

    Hiroaki Honshuku, A-NO-NE Music, Greater Boston
    http://a-no-ne.com   http://anonemusic.com



    On 09/06/24(水), at 5:39, KOBA | Hans Rossel wrote:

    I uses this basis code inside a module to adapt the OG Detail block, just uncomment or remove the parts you don't need.

    /**
    * Implementation of hook_og_link_alter().
    */
    function mymodule_og_links_alter(&$links, $group_node) {
    //drupal_set_message('<pre>'. var_export($group_node,TRUE) .'</pre>');
    //drupal_set_message('<pre>'. var_export($links,TRUE) .'</pre>');

     //$links['invite'] = 'Blablabla';  // change the invite anchor text
     //unset ($links['subscribers']);
     unset ($links['invite']);  // Remove invite a friend link from group details block.
     //unset ($links['manager']);
     //unset ($links['my_membership']);
    }


    Hans
    www.koba.be

    2009/6/24 A-NO-NE Music <madflute@anonemusic.com>

    Drupal 6.12
    OG 6.x-1.3

    I am using OG for my classes at a collage.  I need to get a better control of OG Detail Block.

    - I need to hide "invite friend"

    - I want to change the string where it says Groups to Classes

    - I want to have this block displayed as soon as a student logs in even though the node isn't a group node, i.e., <front>.

    I thought about it might be  better off with View but I couldn't figure out how to change the content per student logged in like OG Detail Block does.  Any help would be appreciated.


    --
    - Hiro

    Hiroaki Honshuku, A-NO-NE Music, Greater Boston
    http://a-no-ne.com   http://anonemusic.com

    --
    [ Drupal support list | http://lists.drupal.org/ ]



    --
    Hans Rossel
    KOBA Webdevelopment
    Kerkstraat 228
    9050 Gent
    09-334.52.60
    0472-79.32.16
    www.koba.be
    info@koba.be
    --
    [ Drupal support list | http://lists.drupal.org/ ]



    --
    [ Drupal support list | http://lists.drupal.org/ ]



    --
    Hans Rossel
    KOBA Webdevelopment
    Kerkstraat 228
    9050 Gent
    09-334.52.60
    0472-79.32.16
    www.koba.be
    info@koba.be