[Register]
Powered by Elgg

Plugins :: Blog :: RFC: activity plugin

March 05, 2007

Hi, i made a plugin that shows all posts of a user on any weblog, the same for comments. I think could add files activity too.

I'm not sure about the name, it add a RewriteRule to use url like /user/activity/posts o /user/activity/comments and a "Activity" block inside user's sidebar.

Any comments/idea? 

See working sample here: http://ajayu.memi.umss.edu.bo/pabloazero/activity/posts 

Download code here

Keywords: activity, comments, plugin, posts

Posted by Rolando Espinoza La Fuente @ Plugins


Comments

  1. Hi, Rolando.

    It can be useful, but I think it's worth concentrate efforts on  'Recent Activity' field.

    I saw at your elgg instance you are adding the number os messages and commentaries each users have created. An interesting thing would be the user have a view of the number of news activities for him. The way it is for the moment at elgg core, it's hidden from user and veru difficult for them discover alone.

    In my opinion a thing wich could be done is add a link close to the person description indication the number o new activities, something like: RSS | Tags | Resources <br> Activities (numer of new activities). This number of new activities would change only if the user read it.

    The link http://elgginstance/_activity/ would show only for the titles of a particular activity (when a person add you as a contact, when a message marked as interesting and your message are commented), only linking for it, not showing the complete comentary. If the person click on a particular activity, then the number o new activities is reduced 1.

    This is because sometimes a person can be far away from computer for sometime (for example, a few weeks) and he won't know new activities.

    Maybe with the private system it's easy to add this things and 'Recent activity' field will be unnecessary.

    I am trying to configure Garrett's Folio plugin here at my instance (wich seems to have an activity button on menu toolbar) and talking to Walrus about private messages being used for this.

    user iconTom on Monday, 05 March 2007, 19:53 UTC # |

  2. it seems like it would be excellent way for any site user to see what another user has done (comments or blog posts)...and it certainly makes sense along side rss/rags/resources as part of a profile.

    i agree that it's difficult to find activity (same with "marked interesting" items - seems that those should be in the profile default view whenever logged in)...but those last two are already in the system so could simply be called from the sidebar etc...

    your plugin could be perhaps called "All Activity" and maybe over time a way to filter (this month, this week, this year, last year)

    user icondaveinboston on Monday, 05 March 2007, 20:01 UTC # |

  3. Hey Rolando;

    My folio wiki plug-in does almost the exact same thing.  It provides a unified place to view (a) stuff I've done, (b) comments on stuff I've done or commented on, (c) stuff my friends & community have done, and (d) everything.  You can also filter by type of thing, aka - files, blogs, comments, ...  Lastly, you can choose to view only summaries (aka, first 150 characters), the whole entry, or thru RSS.  This applies to all users, so I can look at Bob's Friends' Activities.  At least, those activities to which I have permissions.  The RSS also automatically appends your username & hashed pwd key to provide for authenticated feeds.  The 'Your Activity' button noted by Tom links to that page. 

    user iconNathan Garrett on Tuesday, 06 March 2007, 00:26 UTC # |

  4. Hi Rolando,

    Thanks for the activity plugin. . I will test on my site.  I still would LOVE to get the code for your wonderful home page!!!

    user iconTodd on Tuesday, 06 March 2007, 02:35 UTC # |

  5. When I add the required Rewriterule to .htaccess, I get an Internal Server error (500).  Not sure what is wrong with it:  elgg v.70 svn 992, php 4.4.4, mySQL:  4.1.21-standard log

     RewriteRule ^([A-Za-z0-9]+)\/activity\/([a-z]*)?/?([0-9]+)??$ mod/activity/activity_view.php?username=$1&type=$2&page=$3

    user iconTodd on Tuesday, 06 March 2007, 02:49 UTC # |

  6. rolando - i second what todd says abotu that home page, it looks amazing. would you be willing to share the layout code and explain what you did in the forums or the themes.templates section of elgg.org?

    user icondaveinboston on Tuesday, 06 March 2007, 04:30 UTC # |

  7. #5: that regexp looks a bit iffy anyway, but if you're using apache 1.x, its regexp support isn't as complete as apache 2.x's.

    user iconSven Edge on Tuesday, 06 March 2007, 10:29 UTC # |

  8. using apache 1.3.37 with the 500 error. . .

    user iconTodd on Tuesday, 06 March 2007, 12:56 UTC # |

  9. Todd, use this regexp :

     RewriteRule ^([A-Za-z0-9]+)\/activity\/([a-z]*)?/?$  mod/activity/activity_view.php?username=$1&type=$2

    RewriteRule ^([A-Za-z0-9]+)\/activity\/([a-z]*)/([0-9]+)?$ mod/activity/activity_view.php?username=$1&type=$2&page=$3

     

    user iconRolando Espinoza La Fuente on Tuesday, 06 March 2007, 14:40 UTC # |

  10. rolando - do you mean use those two lines instead of the original three? i'm having the same issue as todd...

    btw, todd, did this work for you?

    user icondaveinboston on Tuesday, 06 March 2007, 22:15 UTC # |

  11. Three?

    See the README 

    One line for apache2 and two for apache1.3, i've tested on both version on ubuntu edgy.

    user iconRolando Espinoza La Fuente on Tuesday, 06 March 2007, 23:29 UTC # |

  12. sorry, i was thinking of the 3 line piece for the subscription plugin....

    user icondaveinboston on Wednesday, 07 March 2007, 03:50 UTC # |

You must be logged in to post a comment.

Site supported by Curverider Ltd - powered by the awesome Elgg