Hello, Guest.

Plugin API

Contents

JomSocial Plugins Methods

Our aim is to keep JomSocial event trigger minimal, but complete. By keeping the event hooks low, we can ensure optimum performance of JomSocial. If, you need any additional event hooks, please send a request to support@azrul.com and we will discuss about it and see if the additional event would be useful.

System Events

onSystemStart
Called before any controller is called
onSystemEnd
Called after page has been completely rendered
onUserRegisterFormDisplay
Registration from is displayed
onAfterConfigCreate
[New 1.6] JomSocial config object has just been created but not yet called by any code. Plugin may temporarily override any JomSocial global config.
onAfterAppsLoad
[New 1.6] Community plugin has just been loaded for the first time
onBeforeControllerCreate
[New 1.6] Before the system controller is created
onAjaxCall
[New 1.6] On calling the ajax


onCronRun
Event triggered when the cron jobs finish processed.
onWallDisplay
Wall entry is processed for display
onMessageDisplay
Process inbox message for display
onDiscussionDisplay
Discussion entry is processed for display
onBulletinDisplay
Group bulletin entry is processed for display

Profile

onProfileCreate
New user being registered with JomSocial
onProfileDisplay
Render application box in user profile
onProfileStatusUpdate
User status has been updated
onProfileAvatarUpdate
User avatar has been updated
onUserDetailsUpdate
User details has been updated
onBeforeProfileUpdate
[New 1.6] New custom user profile is about to be saved
onAfterProfileUpdate
[New 1.6] New custom user profile has been saved

Friend

onBeforeFriendRequest
[New 1.6] A user is requesting a connection to be made with other user.
onBeforeFriendApprove
[New 1.6] A user is about to approve a friend request.
onAfterFriendApprove
[New 1.6] A user has approve a friend request.
onFriendApprove
This event trigger after a the user has approved a friend request.
onFriendRequest
This event trigger after a friend request had been made.
onFriendRemove
This event trigger after a friend is removed.
onFriendReject
This event trigger when a friend is rejected.

Groups

onGroupCreate
New group created
onGroupDisable
When a group is disable
onGroupJoin
User join a group
onGroupJoinApproved
User join request approved
onGroupLeave
When user leave a group or removed by the group's admin
onBeforeGroupDelete
Deleting a group
onAfterGroupDelete
After a group is deleted

Photos

onBeforePhotoDelete
[New 1.6] Before photo is deleted
onAfterPhotoDelete
[New 1.6]After photo is deleted

Bookmarks

onLoadBookmarks
[Deprecated since 1.5] Before bookmarks popup is rendered. Allows manipulation inserting or removing bookmark links.
onBeforeBookmarksDisplay
[New 1.7] Before bookmarks popup is rendered. Allows manipulation inserting or removing bookmark links.

Docs Navigation

JomSocial Video Testimonial Contest. Top 5 best videos wins iPod Nano 4G.

Slashes & Dots Sdn. Bhd.
MALAYSIA OFFICE
No 1-7, Signature Office,
The Boulevard Mid Valley City,
Lingkaran Syed Putra,
59200 Kuala Lumpur, Malaysia.
U.S. OFFICE
251 West Central Avenue #146,
Springboro, Ohio 45066, U.S.A.

Tel: +60 (3) 2282-1997
Fax: +60 (3) 2283-1997
E-mail:
Copyright © 2007 - 2009 JomSocial.com. All rights reserved.
JomSocial is made for Joomla!
JomSocial Community Count

620 users currently online | 85010 forum posts