Save
Apply
Close Community Builder Plugin: Edit [ Protect Fields ]
registerFunction( 'onBeforeUserUpdate','protectFields', 'getProtectFieldsTab' ); /** * Protection Tab Class for handling the CB tab api * @package Community Builder * @author JoomlaJoe and Beat */ class getProtectFieldsTab extends cbTabHandler { /** * Constructor */ function getProtectFieldsTab() { $this->cbTabHandler(); } /** * gets object with name, title and table corresponding to a field id * @access private * @param int fieldId * @returns mixed : either object, or null if no match */ function getFieldInfo($protectFieldId) { global $database; if ($protectFieldId == "0"«») return null; $query = "SELECT `name`,`table`,`title`,`type` FROM #__comprofiler_fields WHERE published=1 AND fieldid=".$protectFieldId; $database->setQuery($query); ...... and a lot more of this.....
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Now i'm getting another error:
Fatal error: Call to a member function setQuery() on a non-object in ...\components\com_comprofiler\plugin\user\plug_protectfields\protectFields.php on line 36
Hopefully there is a fix for this also. thank you all in advance.
Martin
Please Log in or Create an account to join the conversation.