I have CB 2.0.4 with CBsubs 4.0.0 and uddeIM 3.5
I have created a premium user group.
pubic
-registered
--premium
How can I show only this premium user the link "Send Private Message" and the private message form??
I know there is a possibility to block other user groups in uddeIM. But this is not the best method because all registered users still see the "Send Private Message" link and the private message form. Only when the want to send their message and click send, they will get a error "You are not allowed sending to this group.". This is not the best solution.
Only way is to limit access to UddeIM it self, but it's going to show them an access denied error. There's no way to add specific access controls to that menu item. As for the quick message tab you can use a view access level and set the quick message tab to that view access level.
Once CB Menu has been upgraded further with a backend to manage menu items this should be possible, but until then it's not possible for menu items added through the API.
One way you maybe able to accomplish this is first protect access to UddeIM using your usergroup or view access level. Next add some CSS to your Joomla template CSS file to hide the menu item. Then using CB Auto Actions and a code action on the before profile display trigger with method set to CSS you can add CSS to then show the menu item while selecting your usergroup for the actions access.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Ok I have deleted this link. Now the users have only the possibility to send a message with the tab "quick message". This works good. Only female and paying users can see this tab. But the problem is now... I would like that a woman can not send a message to another woman. Because some guys could think they register a profile as female to write with other females.
You'll probably need to use CB Conditionals and a tab condition to condition the tab based off the viewing users gender compared to the displayed users gender. Example condition as follows.
Display: Tab conditional
Field: Gender
Operator: Not Equal To
Value: [cb:userdata field="cb_gender" user="#me" /]
Translate Value: No
Mode: Show
Registration: Disabled
Profile Edit: Disabled
Profile View: Enabled
The tab should then hide if the genders are the same (e.g. male viewing male or female viewing female).
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.