Posted by robertDouglass on October 25, 2006 at 6:13pm
In the buddylist.info file I put the buddylist.module into the "Social networking" package. Is this a good classification of it, and what other modules would fit into the same package?
From buddylist.info:
package = Social networkingInvite and FOAF would definitely fall into this group. How about OG?

Comments
don't think so
package != category. package is meant to group modules which work closely together and their configuration should be done in the same mindset. so, IMO i would leave buddylist without a package. social networking is a good category for drupal.org though ... i would like to see a Recommended: keyword in .info where you put modules that work nicely with buddylist. There I would mention privatemsg (once that integration is complete) and some ajax chat thing.
Oh, that's exactly what I meant
Thanks for clarifying that and suggesting the exact solution that I was seeking for. Is anybody working on your suggestion?
don't think so
i don't think anyone is. i mentioned it on IRC and everyone nodded but thats about it.
The grouping on the admin page
The main reason I'd even care about Package or Recommended is the visual grouping on the admin page. I'd definitely want Invite and Privatemsg to be visually grouped with Buddylist.
package = Social networking
package = Social networking should include:
buddylist.module (friends)
og.module (user groups like facebook)
guestbook.module (can be integrated with user_profile.tpl.php to show comments like MySpace)
privatemsg.module (essential for networking sites)
blog.module (all networking sites today have personal blog/notes features)
profile.module (customizing with user_profile.tpl.php)
mybloglog.module
Perhaps this is off topic, but I've added a module to simplify mybloglog integration: http://drupal.org/project/mybloglog
4.7 only at present, but I'll be working on a 5.0 version ASAP.
Does that qualify as a "social networking" module? ('package' usage issues notwithstanding - per other comments in this thread.)
Michael Curry
Exodus Development | Drupal and other developer info
Michael Curry
Drupal and Windows Tips
Is there any work being done
Is there any work being done on integrating buddylist with the ACL module? It's something we're looking at over here, as it's a pretty key part of an intranet. But the ability to use members from a buddylist as a starting place for allowing users to create access lists to nodes seems like functionality that would be pretty useful in a drupal-based social networking site.
FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education
Write a Story for an specific buddy using ACL
Hi, I wrote a small piece of code which object is to write a Story for an specific buddy in my buddylist using ACL. So, that buddy can only view/write a comment in my Story.
I based the code taking as example Forum Access.
Hope it helps.
A.
http://nadaenespecial.com.ar
RE: Hope it helps.
Hope it helps? Man, this is awesome! We'll be testing this over the next few days, and posting back here.
Seriously. This is sweet!
Cheers,
Bill
FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education
hook_init
Hello Agustín,
Thank you very much for this code. I am trying to get it working on my development site and running across some problems. The first one, I think, may be due to the storyacl_init function. I have saved your code as storyacl.module, and am running on Drupal 5.x. The hook_init() function, as described here: http://api.drupal.org/api/5/function/hook_init does not take any parameters and is called during bootstrap.
I will try to chase down what is going on, but I was really wondering if you have some updated code that you might like to post?
Thanks again,
Marc
http://www.funnymonkey.com
Tools for Teachers
hook_init
I'm using Drupal 5.0 and is this code I wrote is a research I did but it is not implemented on an system yet. I tested it with 3 or 4 contacts and it works fine.
Yes, the hook_init() definition has not parameters, but I (hacked) am using $node in order to check if the node type is story and if you have permissions to view it.
Maybe what I did is not standard but it's the first time I write a module.
Thanks for you comment.
A.
hook_init II
I installed a new "sandbox" with Drupal 5.1
Yes, I've found some errors and I'm fixing the code.
In case I solve it I'll write again, sorry that the code didn't work correctly.
greetings
A.
Rewrote code
There's a lot of code I re-wrote... :-\
There was a typing error in the ACL module with acl_add_user($acl_id, $uid) so the patch is here: http://drupal.org/node/124070
Now, that I re-wrote the code again I used acl_remove_user($acl_id, $uid) and it has the same typing error. Waiting for a new patch.
It is still a draft, but you can see a progress.
- Now it writes/deletes the records in ACL tables (acl, acl_node, acl_user) correctly.
- In "Create Story", it draws buddies' checkboxes correctly.
- Story can be read by the owner and assigned buddies. So it doesn't allow anonymous users (and not assigned users) to read created stories.
Problems not solved yet: :-(
- If I delete the story owner, that corresponding story is not deleted and that story's owner changes to anonymous. (I'm working with MySQL).
Modules involved:
- ACL
- Buddylist
I included my module and a fixed ACL module.
http://www.esnips.com/doc/8deb52dc-dc36-450c-9afc-39314e533976/acl-and-s...
I'll be working on the module during the week, so if you found another error send me a message please!
Greetings
A.