Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Avatar of Clementkjhjkh
    Clementkjhjkh
    Participant

    @clementkjhjkh

    Anyone ? Please…

    Avatar of Clementkjhjkh
    Clementkjhjkh
    Participant

    @clementkjhjkh

    Does someone know where is the problem ?
    Thanks

    Avatar of Clementkjhjkh
    Clementkjhjkh
    Participant

    @clementkjhjkh

    Thanks,
    Actually i think that your code should work and that my problem may be not where i thought. problem.
    When i use
    define(‘BP_GROUPS_DEFAULT_EXTENSION’, ‘forum’ );
    it works but when i put it in a function like that, nothing happens:

    function redirect_to_forum(){
    define('BP_GROUPS_DEFAULT_EXTENSION', 'forum' );
    }
    add_action('wp','redirect_to_forum');

    So, i think that’s why nothing happens when i try to add your code.
    Do you know what’s wrong with my function ?

    Avatar of Clementkjhjkh
    Clementkjhjkh
    Participant

    @clementkjhjkh

    Sorry, here is what i tried :

    function redirect_to_forum() {
    global $bp;
    if( bp_is_group_members() )
    define(‘BP_GROUPS_DEFAULT_EXTENSION’, ‘forum’ );
    }
    add_action( ‘wp’, ‘redirect_to_forum’ );

    Avatar of Clementkjhjkh
    Clementkjhjkh
    Participant

    @clementkjhjkh

    Hi,
    I have the same problem, i tried this :

    but it doesn’t work, am i doing something wrong ?
    Besides i got a warning message :

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /homez.38/centrale/www/demo/demo/INELSE/wp-content/plugins/bp-custom.php:10) in /homez.38/centrale/www/demo/demo/INELSE/wp-content/plugins/events-manager/classes/em-notices.php on line 11

    If someone has a solution, it would be really great

    Avatar of Clementkjhjkh
    Clementkjhjkh
    Participant

    @clementkjhjkh

    Thanks,
    it worls perfectly but now i have some trouble using parameters for bp_has_group
    I want to display only the groups which match the condition ‘my_slug’==’yes’
    I tried :

    Is it the correct syntax ?

    Thanks a lot

    Avatar of Clementkjhjkh
    Clementkjhjkh
    Participant

    @clementkjhjkh

    Any help would be really appreciate.
    Thanks

    Avatar of Clementkjhjkh
    Clementkjhjkh
    Participant

    @clementkjhjkh

    Thanks a lot, it was really helpfull.

    Avatar of Clementkjhjkh
    Clementkjhjkh
    Participant

    @clementkjhjkh

    Please, any help would be really great.

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