Symfony users with a social taste
by rDeeb on Jan.19, 2009, under Plugins, Symfony
The Problem
Since VidaO2.com is a social community we found that the sfGuardUser wasn’t quite good for us. Don’t miss understand me, it is a very good user security plugin, but when it comes to store social data, like names, friends, friends request, statuses, activity feeds… well social data it came a little short.
The Solution
So here in VidaO2.com we started working on our own User management plugin, based of course on the great sfGuardUserPlugin by Fabien. So this plugin will feature out of the box:
- Users (Of Course…)
- Profiles
- Friends
- Friend Requests
- Invites Request (For Private Beta registering)
- Status
- Activity Stream
- And a very basic Invite a Friend that reads your passport.net account and send an invitation to your Contact List
Where can I find it?
Right know the only working copy it’s in our private svn server, we feel that it is still very unstable to work with it right now, so we are making tests and optimizing the code.
So what’s next?
Ask for functionalities, or if you got any idea tell us, and maybe it will make to the first release in the symfony plugin repository.
January 20th, 2009 on 2:39 am
Hum I think you didn’t understand (know) that with sfGuardPlugin, you can add your “profile” table, that contains names, email, city… Everything is documented in the plug-in documentation (see README.txt file at the root of the plug-in).
The way to link sf_guard_user table with one of yours is as simple as explained below :
my_status:
_attributes: { phpName: myStatus }
id { primaryKey: true, autoIncrement: true, required: true, type: integer }
status: {varchar(255), required: true }
user_id: {type: integer, required: true, foreignTable: sf_guard_user, foreignReference: id, onDelete: cascade }
After having generated your model, you will be able to do :
// in actions.class.php file
$status = new myStatus();
$status->setStatus(‘Hello everyone !’);
$status->setsfGuardUser($this->getUser());
$status->save();
++
January 20th, 2009 on 3:42 am
Great effort to start developing all these extra features based on the sfGuardPlugin! I’m renewing my gaming community (PHP4 -> PHP5 & Symfony), so the addons are most welcome!
I’m looking forward to test the plugin.
January 20th, 2009 on 6:16 am
You can check the sfSocialPlugin at http://www.symfony-project.org/plugins/sfSocialPlugin
January 20th, 2009 on 6:30 am
As nowhere mentioned, is this the so called sfSocialPlugin already existing in a pre-alpha version in symfony’s plugin repository?
And when do you think a first version of your plugin will be released?
I’m lookinf forward to this!
January 20th, 2009 on 9:55 am
@Hugo: We know that this can be done, but we wanted a little bit more social power and more data than the ones that brings the sfGuardUser
@Junni & Wissl: this is not the sfSocialPlugin, actually the name in our repository is vo2SocialUserPlugin. And in a meeting the team held yesturday, we decided to add the ability to log on using Facebook Connect and Gooogle Friend Connect.
About a tentative release date, maybe we could have an alpha version in about two weeks.
January 20th, 2009 on 12:48 pm
Excellent initiative. I am looking forward for that alpha version.
One suggestion is to make your alpha version available on line and test it by inviting any person that post a comment here even with just its mail.
This plugin is just what I am waiting for.
January 20th, 2009 on 1:36 pm
@fredlab: nice idea… actually I’m working on a little surprise for the Alpha Release.
March 5th, 2009 on 2:30 am
Hey, how is it going on?
Is there a roadmap, when the first code will be published?