Skip to Content Skip to Menu

CB connect and gender field

10 years 8 months ago #241810 by thewebsurfer
CB connect and gender field was created by thewebsurfer
hi, in facebook login i set the facebook gender field->CB gender field
but in this way i have the gender field in my db as "male" or "female".
i set CB with gender values as "_UE_MALE" and "_UE_FEMALE" there is a way to change male/female values on the fly (during facebook login) as i want: "_UE_MALE" and "_UE_FEMALE"?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 8 months ago #241841 by krileon
Replied by krileon on topic CB connect and gender field
You can act on the after registration trigger using CB Auto Actions and a field action to change it. Example as follows.

Type: Field
Trigger: onAfterUserRegistration
Access: Everybody
Conditional: [cb_gender] Equal To male
Field: Gender
Operator: Set
Value: _UE_MALE

Be sure to check the checkbox next to Value so it won't translate _UE_MALE. Repeat a second action for 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.

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

10 years 8 months ago #241847 by thewebsurfer
Replied by thewebsurfer on topic CB connect and gender field
ok thanks a lot. i cant test personally at the moment, but i will see soon if it works.

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

10 years 8 months ago #241921 by thewebsurfer
Replied by thewebsurfer on topic CB connect and gender field
ok, whats wrong with that? i have done exactly what you said
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 8 months ago #241955 by krileon
Replied by krileon on topic CB connect and gender field
Please see my above example. Your conditional is not correct. You're matching the literal string cb_gender to male. It must be a valid substitution. Please see the below tutorial regarding substitutions.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-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.

10 years 8 months ago #241959 by thewebsurfer
Replied by thewebsurfer on topic CB connect and gender field

krileon wrote: Please see my above example. Your conditional is not correct. You're matching the literal string cb_gender to male


im sorry i still dont get where the error is.
cb_gender=male is exactly the value of cb_gender of a facebook logged male user has.

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

Moderators: beatnantkrileon
Powered by Kunena Forum