*

Camilo Vargas

  • ***
  • 47 posts
how do I configure so that only users with membership have the online chat

*

MB Themes

@Camilo
you must put whole online chat block into condition that logged in user must be part of some group.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Camilo Vargas

  • ***
  • 47 posts
How do I get a function done? so that only the platinum membership groups

*

MB Themes

@Camilo
What you already did?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
have you found a solution for this? i want to do this too

would putting the chat code inside this work?
Code: [Select]
<?php if (osp_get_user_group() == 3); {
chat
}

its also similar to my question here https://forums.osclasspoint.com/osclass-pay-plugin/get-item-user-membership-group/ if anyone can help

*

MB Themes

@oscman
Yes you will have to wrap button in such block, or just add css that will hide block for users without group

Code: [Select]
<?php if (osp_get_user_group() != 3) { ?>
  #oc-chat {display:none!important;}
<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
where would i put that code as in css php wouldn't work?
i have veronika theme and i can't find how it automatically finds the chat window on footer where do i edit this code in theme? i wanted to make the same for messenger and some other things

*

MB Themes

@oscman
I.e. in footer.php of theme
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
@oscman
I.e. in footer.php of theme

footer.php of veronika theme doesn't have any code for chat, the chat is added automatically to the theme with hook or something when installed and i can't just place the code

*

MB Themes

@oscman
I would try that first and then consider if it can work or no.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots