Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Creating a Social Network / Facebook style 'Friends' Module


Reply


2 Posts   510 Views

Avatar
Futureweb

Community Member, 233 Posts

17 November 2011 at 3:11pm

Hi,

I've made a module 'friends' which allows logged in users to search for other users, and become friends. once friends they can view each others profiles. i kind of got the idea from this site i heard about called facebook...

Anyway, that all works. But I also want allow people to invite friends via email. Sending the email, with a unique ref code is easy.

I want to extend the memberprofiles module, so they are taken to the memberprofiles sign up page - eg, mysite/memberprofiles/?ref=123123
and the ref code gets put into a hidden field. When the form is processed, the ref code is read, and it sets up a friends connection between the inviter and the member who's just created an account.

I could copy and modify the memberprofiles module, or create something similar, but i'm hoping there is a way i can extend the form.

Any suggestions would be much appreciated.

I plan to share the module too - i think it would be very useful

Avatar
Futureweb

Community Member, 233 Posts

1 February 2012 at 3:26pm

Hi, for anyone interested, I've worked around the problems, and got a working version of the 'friends' module up and running. It's pretty basic, but proving useful on one of my sites.

Details here: http://www.futureweb.co.nz/modules/silverstripe-friends-module/