Skip to Content Skip to Menu

[SOLVED] CB Privacy Plugin - Rule Description

10 years 6 months ago - 10 years 6 months ago #244141 by mickeyoomlapolis
[SOLVED] CB Privacy Plugin - Rule Description was created by mickeyoomlapolis
Is possible to change default description of rule.
For example
Private -> Not Visible in Profile
Users -> Visible only to registered users
Public -> Visible to all in profile

Or is possible make a traslation in other language ??

Thanks.
Last edit: 10 years 6 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #244176 by krileon
Replied by krileon on topic CB Privacy Plugin - Rule Description
Yes, all of CB Privacy strings can be translated as they're all passed through CBTxt. You'll need to review CB Privacy source for the language strings then add them to your cbteamplugins language file. Example usage as follows.

Code:
'Public' => 'Visible to all in profile', 'Users' => 'Visible only to registered users', 'Private' => 'Not Visible in Profile'


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.

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

10 years 6 months ago #244195 by mickeyoomlapolis
Replied by mickeyoomlapolis on topic CB Privacy Plugin - Rule Description
I have CB Privacy Plugin 3.1.0

I find file cbteamplugins_language.php but inside this file there isn't what I'm searching for.

The first question is why there are different voices (check attached images) between front-end and back-end.

And after the voices that I see are different from:

Visible on profile
Only to logged-in users
Only for direct connections
Invisible on profile

that are standard in CB Privacy Plugin.

Thank you.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #244200 by krileon
Replied by krileon on topic CB Privacy Plugin - Rule Description
If you want to translate CB Privacy you need to add its language strings to cbteamplugins_language and translate them as needed as exampled in my previous reply.

As for the bulletins next to the privacy types you've CSS likely from your Joomla template forcing UL elements to have a list style. The only way to debug that is to right click and inspect element in Chrome or Firefox on a privacy value then review the UL element in the developer console to see what CSS is styling it.


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.

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

10 years 6 months ago #244206 by mickeyoomlapolis
Replied by mickeyoomlapolis on topic CB Privacy Plugin - Rule Description
Adding the language strings in cbteamplugins_language is ok.

My second question before was not about CSS Style, but I don't understand why I have two voices in the back-end that are already in my language (ITALIAN) and different from the front-end. For this reason when I add in cbteamplugins_language.php :

'Users' => 'Solo a Utenti connessi'

it doesn't take effect in Back-End but only in the Front-End , you can see the picture below.

I presume there is a place where this two voices are already traslated but I don't know where.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #244222 by krileon
Replied by krileon on topic CB Privacy Plugin - Rule Description
Users is a relatively common string. Check throughout your language files to see if it already exists. I believe GJ language files have a translation for User and if it's loaded in it may cause your issue. The language loaded on frontend is entirely based off the language the user has assigned to them via the language user params field.

Try translating the string in the default language files and see if your change shows up. If it does that means the default language (English) is being loaded and not your Italian language files.


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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum