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
Tired of Facebook, Instagram & Twitter selling your data?
You reached the right place
Create your own social network website!
Newsfeed Page
Newsfeed page helps you to find what's happening on the network.
MOBILE FRIENDLY
Mobile friendly design allows your users to browse social network on their mobile devices.
USER PROFILE
PERSONAL WALL, FRIENDS LIST, PHOTO ALBUMS, PROFILE COVER, USER INFORMATION AND MUCH MORE.
Groups
Groups make it easy to communicate with friends , family or your work mates
Administration Panel
Using administration panel you can manage your website pages, components and users
Comments output for entity , object or post
This hook is used to output comments for type of entity, post or object. ~~~ <?php function my_component_init(){ ossn_add_hook('post', 'comments:entity', 'my_component_hook'); ossn_add_hook('post', 'comments:object', 'my_component_object_hook'); ossn_add_hook('post', 'comments', 'my_component_post_hook'); } function my_component_hook($hook, $type, $return = null, $params){ // $params['entity_guid'] contains entity guid you wanted to show comment for //return template; } function my_component_object_hook($hook, $type, $return = null, $params){ // $params['object_guid'] contains object guid you wanted to show comment for //return template; } function my_component_post_hook($hook, $type, $return = null, $postObject){ //$postObject contain OssnWall instance. //postObject->guid contains wall post guid. //this is bit different then above two hooks in terms of paramters. //return template; } ossn_register_callback('ossn', 'init', 'my_component_init'); ~~~ Working example https://github.com/opensource-socialnetwork/opensource-socialnetwork/blob/v6.x/components/OssnLikes/ossn_com.php#L50-L53
Quick Access
Dashboard
Comments output for entity , object or post
Comment change getComment parameters
Comment template params