HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Friendships 1.0

Allows users to being "friends" (send, receive and accept "friendship requests")

Friendships plugin for Vanilla Forums

Permission names have changed in version 1.0!
Please don't forget to renew the permissions if you have used that plugin before.

This plugin allows users to being "friends" (send, receive and accept "friendship requests"). Other plugins can be developed using this plugin data (e.g. "Show Friends Post", "Friends Activity", etc).


* Display friends list in user's profile page * Display "Send friendship request" button on every user's profile page * Send an email when a friendship is requested

Requires Vanilla >= 3.2


In order to properly display users without avatar you need to create a /conf/bootstrap.before.php file (if not exists yet) in your vanilla installation directory and define a function inside it.

if (!function_exists('UserPhotoDefaultUrl')) {
function UserPhotoDefaultUrl($User){
   return 'http://img841.imageshack.us/img841/6117/placeholdermale.png';
Vanilla will reuse this function every time an user don't have an avatar.


Just define these strings in your main vanilla's localization file /locales/yourlang/definitions.php

'[%1$s] %2$s wants to be your friend'
'Hi %1$s,
%2$s wants to be your friend. Visit your profile page to confirm this friendship request:
'Request friendship'
'Confirm %1$s friendship'
'Confirm friendship'
'Friends list'
'Pending requests'
'Delete friendship'
'Delete friendship request'
'Friendship request sent'
'Error during friendship request'
'Friendships requested'
'Error during friendship request'
'Error during friendship request. Please reload the page'


Thanks to szarak for making this happen.

Github repository

Commits are welcome https://github.com/lifeisfoo/Friendships

Author and License

Alessandro Miliucci, GPL v3. Icon by VisualPharm