The friends plugin

The friends plugin

Postby tchang on Tue Jan 23, 2007 5:20 am

hi,

Some of you have talk about implementing a "friends plugin" for lifetype. Since the discussion about this are from 2005, I was wondering if anybody came with a solution ?
I'm currently deploying lifetype and I'll need these kind of feature:
    List friends on the blog page
    blog owner can add friends from the user list
    visitors can request to be added as friend
    comments fields are automatically filled in with the user information
    visitor should be able to log in from the blog (and not only from the summary or admin pages)


Of course I can start coding this from scratch but maybe something has already been done ?
If not... can you give me direction ?
tchang
 
Posts: 12
Joined: Wed Jun 28, 2006 2:53 pm

Postby jondaley on Tue Jan 23, 2007 9:47 am

I don't believe anyone has worked on this.
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Postby phunkphorce on Tue Jan 23, 2007 5:01 pm

Code contributions are always appreciated :)
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby tchang on Wed Jan 24, 2007 12:06 pm

ok then... but since it will be my first plugin can you give me a start point ?
is the plugin development article in the wiki (http://wiki.lifetype.net/index.php/Plugin_Development) still valid ?
do you have a simple but well written plugin so I can get a example ?
any advice ?

thanks
tchang
 
Posts: 12
Joined: Wed Jun 28, 2006 2:53 pm

Postby jondaley on Wed Jan 24, 2007 12:50 pm

See remembercommentsdata for the auto-fill in stuff.
LifeType 1.2 knows (I think - I haven't seen it) if you are a blog user logged in, viewing someone else's blog.
I expect that you will take a look at a number of plugins that are similar, and take bits and pieces from each one. At least, that is how I usually write plugins.

Logging in from other than the summary or admin is trivial - just put a submit button pointing to admin.php. However, since you probably want to have them end up somewhere else, that will be harder - I am not sure if there is a hook for that. I have been thinking that we should add a redirect-after-login parameters, example: links can be sent that link directly to the administration->general tab, which currently works if you are already logged in, but don't work if you are not, without hitting the back button twice.
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch


Return to Requests and Suggestions