Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • genotype
    Member

    @genotype

    I figured it out by going through a plugin that creates groups. The bottom part of the above code can be replaced with:

    	$saved = $new_group -> save();
    
    if ( $saved )
    {
    $id = $new_group->id;
    groups_update_groupmeta( $id, 'total_member_count', 1 );
    groups_update_groupmeta( $id, 'last_activity', time() );
    groups_update_groupmeta( $id, 'theme’, ‘buddypress' );
    groups_update_groupmeta( $id, 'stylesheet’, ‘buddypress' );
    
    } else {
    return false;
    }
    

    Is there any way I can do this through the Apearance > Menus Page? Like to make a custom link that goes to “http://mysite.com/members/theCurrentUser/”, except that “theCurrentUser” is a variable?

    Alternatively, I know the following code will work, but I’m not sure where to put it:
    <a href="”>

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar