-
Author
-
September 21, 2016 at 18:13 #136786HDcmsParticipant
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 CODEif ( !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
September 26, 2016 at 04:50 #137121LauraModeratorHell, 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 solutionLaura 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 🙂
September 26, 2016 at 10:42 #137147HDcmsParticipantHi,
thank you for your attentionJohn 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
RegardsSeptember 27, 2016 at 06:43 #137291LauraModeratorHello, 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 accessHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
September 27, 2016 at 15:04 #137310HDcmsParticipantHi,
I put it in the CSS file (as another)
It seems that it does not work!September 27, 2016 at 15:05 #137311HDcmsParticipantIgnore the previous post that I can change or delete
September 30, 2016 at 08:01 #137687LauraModeratorHello, did you resolve it? Let me know
Right now its not available as i tested and it requires some extra work and developmentHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
September 30, 2016 at 11:51 #137706HDcmsParticipantHI,
No
I was hoping you could help me through css or fonctions.php
RegardsOctober 2, 2016 at 14:49 #137874LauraModeratorHell, 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 solutionLaura 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 🙂
-
AuthorPosts
You must be logged in to reply to this topic.