Toggle navigation
Home
Hosting
Community
Developers
Github
Web Services (API)
Documentation
References
Report Issue
Download
Installer
Virtual Machine Image
Components
Themes
Member Area
Login
Register
Search
A hook you may use to check change the user behavior you may change moderator or non moderator. Default behavior is `false` means not a moderator (unless admin)
~~~
<?php
function my_component_init(){
ossn_add_hook('user', 'can:moderate', 'my_component_hook');
}
function my_component_hook($hook, $type, $return, $instance){
if($instance->username == 'abc'){
return true;
}
return false;
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~
Becareful with this hook.
User can moderate
A hook you may use to check change the user behavior you may change moderator or non moderator. Default behavior is `false` means not a moderator (unless admin) ~~~ <?php function my_component_init(){ ossn_add_hook('user', 'can:moderate', 'my_component_hook'); } function my_component_hook($hook, $type, $return, $instance){ if($instance->username == 'abc'){ return true; } return false; } ossn_register_callback('ossn', 'init', 'my_component_init'); ~~~ Becareful with this hook.
Quick Access
Dashboard
User can moderate
User gender types
User reset login URL
User profile URL
User profile icon URL
User login
User password minimum length
User fetched object
User account activation URL
User signup fields
User create user
User created validated account
User send account activation email
User password algorithm