Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] CBsubs: Field plugin, show/hide module and more..

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 6 months ago - 11 years 6 months ago #225145 by dotcom22
hello

1) When using CBsubs field plugin (for example for add a value on plan activation), it is mentioned "CB fields changing on plan activation and deactivation" but this mean if a user renew before expiration an existent and always active plan, the value set will not be added? Or by "activation" this mean also "renewal" ??


2) Actually if I want use "Modules which access depends on this plan" feature, I'm supposed to select all modules I want be accessible and keep unselected the one who need to have an active subscription. I wondering if is possible to do the opposite... In fact if I add later news "public" module, it will necessary to not forget to re-configure all plans. I think is more logic to set module who access depend on plan instead the opposite.

I miss something ?


3) Time ago I setup a Query field "cb_trimmedtext" with this code:

SELECT SUBSTRING(`cb_presentation`,1,250) FROM `jos_comprofiler` WHERE `user_id` = '[user_id]'

The goal of this field is to be used inside User List trough a Delimiter field for display only the first 250 characters contained inside Editor Textarea field "cb_presentation".

In practice all work fine but I just noticed the trimmed text display a backslash before words who contain quote (french language). For example instead to display "L'immeuble" I get "L\'immeuble"

When I look on the Textarea field "cb_presentation" itself, no backslash are displayed.

Any idea why this happen ?


4) I want use "Image Gallery" who allow to choose a predefined Avatar and delete all default image for put my own. If later I update CB, those default image will be again added or not ?



thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 11 years 6 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225222 by krileon

1) When using CBsubs field plugin (for example for add a value on plan activation), it is mentioned "CB fields changing on plan activation and deactivation" but this mean if a user renew before expiration an existent and always active plan, the value set will not be added? Or by "activation" this mean also "renewal" ??

Activation means anything that activates the plan. This could be renewal, upgrade, or new subscription. CBSubs uses a status and a reason for that status. So for example the Status is "A" (activation), but the Reason is "U" (upgrade).

2) Actually if I want use "Modules which access depends on this plan" feature, I'm supposed to select all modules I want be accessible and keep unselected the one who need to have an active subscription. I wondering if is possible to do the opposite... In fact if I add later news "public" module, it will necessary to not forget to re-configure all plans. I think is more logic to set module who access depend on plan instead the opposite.

You select the modules you want accessible based off an activation subscription to that plan. So for example if I select "Latest Articles" module then I won't be able to see that module until I've actively subscribed to that plan. You can't do the reverse.

3) Time ago I setup a Query field "cb_trimmedtext" with this code:

SELECT SUBSTRING(`cb_presentation`,1,250) FROM `jos_comprofiler` WHERE `user_id` = '[user_id]'

The goal of this field is to be used inside User List trough a Delimiter field for display only the first 250 characters contained inside Editor Textarea field "cb_presentation".

In practice all work fine but I just noticed the trimmed text display a backslash before words who contain quote (french language). For example instead to display "L'immeuble" I get "L\'immeuble"

When I look on the Textarea field "cb_presentation" itself, no backslash are displayed.

Any idea why this happen ?

Check the value within your _comprofiler database and see if it's escaped there as well. The CB Query Field doesn't strip slashes so it's probably escaped in database and the query result is just displaying what's in database.

4) I want use "Image Gallery" who allow to choose a predefined Avatar and delete all default image for put my own. If later I update CB, those default image will be again added or not ?

If you install CB again then yes those defaults will be installed again, but your images should be fine assuming you didn't name them the same. Simply delete them on every update of CB.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 6 months ago #225297 by dotcom22
About 3)

I looked inside DB for related user, but the value displayed is well formatted without slashe.

I tried to change the field name contained inside the Query with another who is not wysiwyg and the result is the same.

I tried also to include my delimiter (the one who display Query field) inside the profile and the result is worst because I get now "L\\\'immeuble" that mean wih 3 slashe !!

Maybe the Query need to be modified for avoid this issue ?

Any suggestion ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225317 by krileon
Try displaying the query field as a regular field instead of substituting it through a delimiter field. It's possible the substitution it self is adding the escaping. For example set the query field to display on profile and see if it looks fine on 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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 6 months ago #225358 by dotcom22
Of course.. :blush: :whistle:

I tried to use Query field alone (I wonder finally why I decided to use delimiter..but if I remember well I got in the past some case where value was not displayed, except trough delimiter) but I get always the slashe.

Any other idea ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225361 by krileon
So even if you display just the query field without a substitution it's still displaying slashes? If is the case then it's a bug, but not sure if CB is adding the slashes or if the database result is returned with slashes. Please confirm and will review plugins source to see if a bug is present.


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