Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[SOLVED] Only premium user can send a message

9 years 11 months ago - 9 years 10 months ago #257559 by ks.stadler
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.

Is there a other way to do that?
Last edit: 9 years 10 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 11 months ago #257590 by krileon
Replied by krileon on topic Only premium user can send a message
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.
The following user(s) said Thank You: ks.stadler

Please Log in or Create an account to join the conversation.

9 years 10 months ago #257743 by ks.stadler
Replied by ks.stadler on topic Only premium user can send a message
Thanks for your fast help krileon :) I will test this in the next few days!

Please Log in or Create an account to join the conversation.

9 years 10 months ago #258262 by ks.stadler
Replied by ks.stadler on topic Only premium user can send a message
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.

How can I do that?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #258296 by krileon
Replied by krileon on topic Only premium user can send a message
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.
The following user(s) said Thank You: ks.stadler

Please Log in or Create an account to join the conversation.

9 years 10 months ago #258326 by ks.stadler
Replied by ks.stadler on topic Only premium user can send a message
Thank you very much krileon ;) I didn't know that we also can check the own value (i mean the viewers field value)!! This save my life ^^ thanks

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum