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
You can change the attribute of user object fetched. Best example for this hook usage is the DisplayUsernames component https://www.opensource-socialnetwork.org/component/view/3065/display-username
~~~
<?php
function com_display_username_init(){
ossn_add_hook('user', 'get', 'com_display_username_replace_fullname_by_username');
}
function com_display_username_replace_fullname_by_username($hook, $type, $return, $params){
$return->fullname = $return->username;
return $return;
}
ossn_register_callback("ossn", "init", "com_display_username_init");
~~~
User fetched object
You can change the attribute of user object fetched. Best example for this hook usage is the DisplayUsernames component https://www.opensource-socialnetwork.org/component/view/3065/display-username ~~~ <?php function com_display_username_init(){ ossn_add_hook('user', 'get', 'com_display_username_replace_fullname_by_username'); } function com_display_username_replace_fullname_by_username($hook, $type, $return, $params){ $return->fullname = $return->username; return $return; } ossn_register_callback("ossn", "init", "com_display_username_init"); ~~~
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