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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Creating a Social Network / Facebook style 'Friends' Module


Go to End


2 Posts   887 Views

Avatar
JonShutt

Community Member, 244 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
JonShutt

Community Member, 244 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/