CVS edit link for berliner

Hi,

I'm working as a freelance drupal developer for one and a half year now and I would be glad to get more involved. Recently I started to write a first simple module I would like to share with the drupal community. It brings sticky notes to drupal sites. The code is stable now and I think it is ready for a first commit. I created a topic in the drupal showcase forum to get some feedback concerning usability and functionality: http://drupal.org/node/725892.
Right now there are two versions, one that builds upon Popups API and another one that builds on Modal Frame API. You can find a demo that uses the latter one here: http://berliner.reflectlife.org

The module allows to attach sticky notes to individual pages, all pages or a type of page like node/% in order to leave messages for others. The idea behind this was that I was looking for an easy way to share information between people who are working on the same project, say a website developer, a client and a project lead. With sticky notes any of those can leave messages concerning the project directly on the spot where they belong. This was my use case, but I think that it is easy to find other ones. Though the project is still in development it

Since I owe a lot to the community I would like to give something back. Right now the project is hosted on http://github.com/berliner/sticky_notes, but I would like to see it on drupal.org to speed up development and bug tracking.

I want to actively maintain this project and I hope that the revision process will provide me with more ideas on how to improve the module.

Some links to websites build with drupal and all kinds of contributed modules where I was heavily involved:
http://www.youpodia.de
http://www.nya.de
http://www.gesundheitkompakt.de
http://www.speedpoints.de
http://www.wuensch-dir-mahl.de

CommentFileSizeAuthor
#6 sticky_notes.zip403.99 KBberliner
#3 sticky_notes.zip403.08 KBberliner
#1 sticky_notes.zip381.31 KBberliner

Comments

berliner’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new381.31 KB
avpaderno’s picture

Issue tags: +Module review

Hello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.

berliner’s picture

StatusFileSize
new403.08 KB

I fixed a wrong function call in the sticky_notes.install file. Also I was wondering what principles are generally applied to a modules uninstall routine. Since this is a node module I initially thought it might be useful to delete all nodes of type sticky_notes on uninstall because they will not be of any value without the module being there. But now I'm not sure about this. I commented the concerning line out for now.

New version is attached.

avpaderno’s picture

Also I was wondering what principles are generally applied to a modules uninstall routine. Since this is a node module I initially thought it might be useful to delete all nodes of type sticky_notes on uninstall because they will not be of any value without the module being there.

Modules are not supposed to remove the node of the content type they define.

avpaderno’s picture

Status: Needs review » Needs work
  1. I would reformat the code contained in the installation file to avoid code lines with more than 80 characters.
  2.   require_once drupal_get_path('module', 'node') . '/node.pages.inc';
    

    There is a Drupal function for that purpose.

  3.     if (user_access('administer sticky notes')) {
          return t('The access to the default node forms for sticky notes has been disabled on the !preferences.', array('!preferences' => l(t('Settings page'), 'admin/settings/sticky_notes')));
        }
    

    l() should not be used together t(); see the documentation for t(), which report such code as wrong code.

  4.   while ($row = db_fetch_object($result)) {
        $node = node_load($row->nid);
        $node->position_z = $zIndex++;
        $nodes[] = $node;
      }
    

    The code doesn't seem to filter out the unpublished nodes; this could be a security issue.

  5.         'current_pattern' => urlencode($menu_item['path']),
            'current_path' => urlencode($menu_item['href']),
    

    The code should use the Drupal function.

  6. There are some functions that don't have the correct name.
berliner’s picture

StatusFileSize
new403.99 KB

Thank you for your feedback.
1. changed
2. changed, but I'd suggest to update the coding standards page: http://drupal.org/coding-standards#includes
3. fixed, I changed that in the install file as well
4. fixed, added a join to the query and required status = 1
5. changed
6. I suppose you mean the functions in sticky_notes.callbacks.inc. I changed that as well.

I attach the updated module.

berliner’s picture

Status: Needs work » Needs review

Oh, I suppose I have to change the status to needs review.

avpaderno’s picture

Status: Needs review » Fixed

Remember to remove the file license.txt; there is a script that doesn't allow to commit a file with that name.

Thank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

Status: Fixed » Closed (fixed)
Issue tags: -Module review

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

avpaderno’s picture

Component: Miscellaneous » new project application
Assigned: Unassigned » avpaderno
Issue summary: View changes