Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Don't Understand a CB API Function

  • beat
  • beat
  • ONLINE
  • Posts: 2174
  • Thanks: 463
  • Karma: 352
18 years 10 months ago #5814 by beat
Replied by beat on topic Re:Don't Understand a CB API Function
3 quick replies:

- onBeforeUserRegistration event holds all user information at registration time in the parameters passed: e.g. $row->email holds the email. But in this case, as it is BEFORE and not AFTER, $row->id is unknown and unset.

- usually, the $user or $row & $rowExtras event function parameters already hold the user informations, where available. Sometimes, it allows your CB plugin to even change them or set them (like above).

- in the case of onBeforeUserConfirm(&$user) event, $user->id holds your id, etc, already, so no need to guess... :)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

Moderators: beatnantkrileon
Powered by Kunena Forum