[#4065] Cbsubs integration cbfields

10 years 11 months ago #228607 by krileon
Replied by krileon on topic Cbsubs integration cbfields
Strange, please PM backend super administrator login credentials and will take a look.


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 to join the conversation.

10 years 11 months ago #228610 by erilam
Replied by erilam on topic Cbsubs integration cbfields

krileon wrote: Strange, please PM backend super administrator login credentials and will take a look.


Done, thx

Eric Lamy (erix)
www.agerix.fr/

Please Log in to join the conversation.

10 years 11 months ago - 10 years 11 months ago #228624 by krileon
Replied by krileon on topic Cbsubs integration cbfields
Have investigated your installation and it's due to a bug. The reversal of a field value isn't properly setting the value in user object, but is storing to database. What this means though is if a user store happens shortly after the reversal it'll go right back to the value it was as the user object wasn't updated. I've fixed the bug and installed a fixed release for you. For those experiencing the same issue the below is the quickfix.

IN: /components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/plugin/cbsubscbfield/cbsubs.cbfield.php
ON: Lines 166 - 168
FROM:
if ( $user->$fnam == $fieldvalue ) {
	$user->$fnam				=	'';
}
TO:
if ( $fieldRemoveContent ) {
	$user->$fnam				=	$fieldRemoveContent;
} else {
	if ( $user->$fnam == $fieldvalue ) {
		$user->$fnam			=	'';
	}
}

Note erilam, you do not need this quickfix as I've already applied it for you and confirmed is working. Please also confirm is now working fine for you.


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: erilam

Please Log in to join the conversation.

10 years 11 months ago #228629 by erilam
Replied by erilam on topic Cbsubs integration cbfields

krileon wrote: I've fixed the bug and installed a fixed release for you.


Thx. I'm happy to read that it was not my settings who where wrong. It smell a fix for CB 1.9.x ;)

krileon wrote: I've fixed the bug and installed a fixed release for you. Note erilam, you do not need this quickfix as I've already applied it for you and confirmed is working. Please also confirm is now working fine for you.


Ok it works fine for textfield and radiobutton. But I have also test a radio button with Remove value on plan deactivation set on YES and no value on plan deactivation. It doesn't work in that case.

Eric Lamy (erix)
www.agerix.fr/

Please Log in to join the conversation.

10 years 11 months ago #228630 by erilam
Replied by erilam on topic Cbsubs integration cbfields

krileon wrote: I've fixed the bug and installed a fixed release for you.


Just a question more, for other members should I use CB tools to synchronise their fields or theses tools are not available for CBsubs and I have to do it by SQL in the database ?

Eric Lamy (erix)
www.agerix.fr/

Please Log in to join the conversation.

10 years 11 months ago #228637 by krileon
Replied by krileon on topic Cbsubs integration cbfields

But I have also test a radio button with Remove value on plan deactivation set on YES and no value on plan deactivation. It doesn't work in that case.

That's legacy usage and it'll only remove if the current value matches exactly the value it was set to. So should be working assuming the field wasn't change manually or by anything else. I suspect you've something doing a user store somewhere that's conflicting, but I've no idea where it's coming from.

Just a question more, for other members should I use CB tools to synchronise their fields or theses tools are not available for CBsubs and I have to do it by SQL in the database ?

Don't understand the question. You're wanting to mass-fix users who have incorrect values? you'd need to do this in database by adjusting _comprofiler table for all rows that are messed up. There's no tool to fix this.


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: deltafidesign

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.226 seconds

Facebook Twitter LinkedIn