USER-ADD (FRIEND-LIST) CUSTOM

yanick beaulieu Posted in Beginning Developers 1 year ago

Hello, I would like to add the possibility that a person is able to add a member in a personalize list instead of making a friend list we can make a colleague list you will find the code in git hub on the other hand the function /action/colleague/add?user takes me to another link which does not work what should I do to make this work.

Replies
Indonesian Arsalan Shah Replied 1 year ago

Because you have not registered action in your component init method register action first

ossn_register_action('colleague/add',   ossn_com()->com .'comID/actions/addcollegue.php');

Create a file in components/comID/actions/addcollegue.php and dry run the action to make sure it is working. (Replacing comID) with your customs component. Already explained this sir.

If you no register this action or any action you get 404 error.