Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Community Builder Profile Pro

  • buyalong
  • buyalong
  • OFFLINE
  • Posts: 52
  • Thanks: 1
  • Karma: 0
7 years 11 months ago #291068 by buyalong
Community Builder Profile Pro was created by buyalong
I'm not sure if it's related but since I installed CB Profile Pro, whch I know is not your component, I have been getting this error when I try to update profile:

var cbDefaultFieldBackground; function cbFrmSubmitButton() { var me = this.elements; var r = new RegExp("[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", "i"); var errorMSG = ''; var iserror=0; if (cbDefaultFieldBackground === undefined) cbDefaultFieldBackground = ((me.style.getPropertyValue) ? me.style.getPropertyValue("backgroundColor") : me.style.backgroundColor);
Fatal error: Cannot access protected property cbTabs::$fieldJS in /home3/ironman/public_html/conciergeluggagesolutions.com/components/com_comprofiler/comprofiler.html.php on line 245

Can you tell me if you are familiar with this problem and how to get rid of it. Thank you.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48710
  • Thanks: 8319
  • Karma: 1447
7 years 11 months ago #291079 by krileon
Replied by krileon on topic Community Builder Profile Pro
We don't have a JS function called cbFrmSubmitButton. We don't have fieldJS variable on cbTabs class. Looks like CB Profile Pro is still modifying core files despite me adding triggers specifically so they don't have to. I suggest contacting CB Profile Pro regarding this. They can replace profile display, profile edit, and registration purely using triggers now. More specifically the below.

Profile Edit:
Code:
$_PLUGINS->trigger( 'onAfterUserProfileEditDisplay', array( $user, $tabcontent, &$return ) );

Profile Display:
Code:
$_PLUGINS->trigger( 'onAfterUserProfileDisplay', array( $user, true, &$return ) );

Registration:
Code:
$_PLUGINS->trigger( 'onAfterRegisterFormDisplay', array( $user, $tabcontent, &$return ) );

Basically they just use reference variable $return and they can replace the output with whatever they need.


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