Giter Club home page Giter Club logo

friendships's Introduction

Friendships plugin for Vanilla Forums

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).

Features

  • 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 >= 2.0.18.4

Customization

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.

Translation

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:

%3$s'

'Request friendship'

'Confirm %1$s friendship'

'Confirm friendship'

'Friends list'

'Pending requests'

'Friendships'

'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'

Sponsor

Thanks to szarak for making this happen.

Author and License

Alessandro Miliucci, GPL v3. Icon by VisualPharm

friendships's People

Contributors

lifeisfoo avatar r-j avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.