Hi

I am working in integrate some features of flag friend with panels, currently I have two finished and I don't know if I will need more, but I think they are situable to be tested in the -dev version.
I've created a content type for exposing flag_friend links (add/remove/cancel) in panels (under Miscellaneous tab, not sure if will be good to create a Flag Friend tab) and another one for exposing the number of friends of the user being accessed.

I am attaching a patch for panels support and a function for calculating the number of friends of an user for flag_friend.module and a zip with the folder structure plugins/content_types with the two content types described above.

CommentFileSizeAuthor
plugins.zip3.02 KBpcambra
flag_friend_panels.patch1.15 KBpcambra

Comments

sirkitree’s picture

Just getting to this now. My thanks to you for providing such a clean patch.

The count function is very useful and I'm all about integrating with Panels3. I'm not very savvy on ctools yet, so I'm wondering, does this plugin directory need to be part of my module or do we request these be added to the Panels project? Knowing how well Earl thinks ahead I assume they are just added to my own module, but just wanted clarification.

pcambra’s picture

I am not sure either, but there are modules, like advanced profile, author pane or content profile that include its own panel content types or relationships. I think ctools only include core elements for Panels, like node, user, taxonomy... anyways it would be good to know what Earl thinks about this.

Let me know if you need some modifications on this patch, I will be happy to help.

sirkitree’s picture

I talked Earl and he said that yes, as long as hook_ctools_plugin_directory() is implemented properly, it should be no problem at all. I'll give your patch a test tonight and report back. Thanks again.

sirkitree’s picture

Status: Active » Fixed

Tested and working. Thank you pcambra!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.