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
onFormDisplay
[New 1.8] When a form is being displayed
onFormSave
[New 1.8] When the form is being saved.
onModuleRender
[New 2.0] Allow plugin to add any HTML code into any module position

Events

@since 1.8

onEventsCreate
New event created
onEventsUpdate
An event details has been updated
onEventsInvited
Event invitation sent to users
onEventsRequestInvitation
A user is requesting an invitation
onAfterEventsUserBlocked
A user has been blocked from an event
onBeforeEventsAttend
A user is about to attend an event
onAfterEventsAttend
A user is attending attend an event
onAfterEventsArchived
An event has been archived

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
onGetUserInfo
[New 1.8] When a user info is retrieved.

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

Registration

onRegisterValidate
[New 1.6] During validation of registration on basic information.
onRegisterProfileValidate
[New 1.6] During validation of registration on profile information.

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

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.

Copyright © 2007 - 2010 JomSocial.com. All rights reserved.
JomSocial is made for Joomla!
JomSocial Community Count

1456 users currently online | 112570 forum posts