This topic has 10 replies, 2 voices, and was last updated 7 years by HDcms.

  • Author
  • #136786
     HDcms
    Participant

    Hello,

     

    The ultimate goal is to mask the content and selector when a member arrives on the page of a public group to which it has not acceded. In fact he will see just the top of the page, and description button to join group

    screenshot

    https://framapic.org/j4FYWFvZmHVI/sOyIzEz0Gl7F.png

    The idea is to reach over activities and other menu group visited oblige to register if he sees that description, avatar and the button to join

    I found bp_group_is_member to test ()
    http://buddypress.wp-a2z.org/oik_api/bp_group_is_member/
    If I do not put any argument, I understand that it will test whether the member is party group (and I add the condition to be displayed in a group?

    I have an error message:

    « Fatal error: Call to undefined function bp_group_is_member() in /var/www/../wp-content/plugins/bp-custom.php on line 3 »

    What I found to achieve the goal:

    COPY CODE
    if ( !bp_group_is_member() || bp_is_active('groups') )
     {add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activity_types_non-membre' );}
    
    function my_bp_activity_types_non-membre( $retval ) {
        $retval['action'] = array(        
            //'activity_comment',
    	//'activity_update',
    	//'created_group',
    	//'friendship_created', nouv relation entre membre
    	//'joined_group',
    	//'last_activity',
    	//'new_avatar',
    	//'new_blog_comment',
            //'new_blog_post',
    	//'new_member',
    	//'updated_profile',
    	//'rtmedia_update'       
        ); 
        return $retval;

    Regards

    #137121
     Laura
    Moderator

    Hell, i do not understand what is the issue. Can you explain a bit more?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #137147
     HDcms
    Participant

    Hi,
    thank you for your attention

    John is a member of a public group. He can see everything in a public group.
    Sarah is not a member of the public group.
    Tomorrow: she just sees the descripitf, the avatar and the button “join”
    Currently: she can see but can not send a message on the group’s activity)
    This is the screenshot I sent
    Regards

    #137291
     Laura
    Moderator

    Hello, you could do this with css, if its a group member, nothing, else ( if not a group member ) print css that hides the buttons and the message box. Does this work for you?
    If you want i can try to integrate it but i will need ftp and wordpress admin access

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #137308
     HDcms
    Participant
    This reply has been set as private.
    #137310
     HDcms
    Participant

    Hi,
    I put it in the CSS file (as another)
    It seems that it does not work!

    #137311
     HDcms
    Participant

    Ignore the previous post that I can change or delete

    #137687
     Laura
    Moderator

    Hello, did you resolve it? Let me know
    Right now its not available as i tested and it requires some extra work and development

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #137706
     HDcms
    Participant

    HI,
    No
    I was hoping you could help me through css or fonctions.php
    Regards

    #137874
     Laura
    Moderator

    Hell, sadly it requires some time and development and we can only help with small custom requests like style changes and others, but we spend time resolving issues related to the theme directly and not new feature requests, just at the section of requests or by custom work

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #140059
     HDcms
    Participant

    HI,

    I leave open
    Perhaps a member !!?

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?