[#3768] CB Invites validation message

11 years 5 months ago #214990 by kenson
Replied by kenson on topic Re: CB Invites validation message
Can provide me the solution so that I can fix immediately on my end?

Please Log in to join the conversation.

11 years 5 months ago #215000 by krileon
Replied by krileon on topic Re: CB Invites validation message
IN: components/com_comprofiler/plugin/user/plug_cbinvites/field.cbinvites.php
ON: Line 13
FROM
$code	=	cbinvitesClass::getCleanParam( true, 'invite_code', null, null, 'GET' );
TO
$code	=	cbinvitesClass::getCleanParam( true, 'invite_code', null, 'GET' );


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

Please Log in to join the conversation.

11 years 5 months ago - 11 years 5 months ago #215135 by kenson
Replied by kenson on topic Re: CB Invites validation message
Thanks for the solution.

I am trying to populating Email from URL as well but seems not success.
Link example:
abc.com/component/comprofiler/registers?invite_code=7w54f30b6509e40b0d514e0d5d8a0ccw&email=xxx@outlook.com

I edited:
components/com_comprofiler/plugin/user/plug_cbinvites/field.cbinvites.php

p/s: Script attached.
[REMOVED]: Please do not attach subscriber content.

Is I am miss some step? Thanks.

Please Log in to join the conversation.

11 years 5 months ago #215157 by krileon
Replied by krileon on topic Re: CB Invites validation message
CB Invites doesn't populate email, you're on your own in that regard and will need to modify it to do so. The fields file is specifically for the invite code field. Your best bet is to use CB Auto Actions on the registration display trigger to take the GET value and push it to the email field using jQuery.


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.

11 years 5 months ago #215164 by kenson
Replied by kenson on topic Re: CB Invites validation message
Thanks Krileon. This is my 1st time to us CB Auto Action. Can you please provide me some step to achieve this?

Type
Triggers
Conditional
Method
Code

Thanks in advance.

Please Log in to join the conversation.

11 years 5 months ago #215182 by krileon
Replied by krileon on topic Re: CB Invites validation message
You'll want to use a code type with the before registration display trigger and method set to jQuery. You'll need to write jQuery to grab from GET (you can use [get_VARNAME] substitution) then push to the email field. An example as follows.

$( '#email' ).val( '[get_email]' );


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

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.189 seconds

Facebook Twitter LinkedIn