CVS edit link for mikedance

I have several modules that I would like to contribute to the Drupal community:

- A jquery meerkat module (http://www.jarodtaylor.com/meerkat/) Code is available here:

http://github.com/mdance/meerkat

- A jquery coda views style plugin (http://www.ndoherty.biz/demos/coda-slider/2.0/)
- I have also built a series of modules to integrate with the Manifold GIS system that I may contribute as well (http://www.manifold.net/index.shtml)

CommentFileSizeAuthor
#2 viewscoda.zip22.6 KBmikedance
#1 meerkat.zip16.33 KBmikedance

Comments

mikedance’s picture

StatusFileSize
new16.33 KB

Attached is the jquery meerkat module

mikedance’s picture

StatusFileSize
new22.6 KB

Attached is the views_coda module hosted at:

http://github.com/mdance/viewscoda

I am also looking for a themer to provide some better default styling for this module, as currently it uses the jquery styling.

There is also a bug in the jquery plugin which does not calculate the width properly for the Dynamic Tabs. It is pretty minor and can be fixed manually by setting a width in CSS, but I have sent a request to the jquery plugin author for help addressing this issue.

avpaderno’s picture

We just review a module / theme per applicant. Please choose the ne you want reviewed and let us know.

mikedance’s picture

Please review the meerkat module

avpaderno’s picture

Status: Postponed (maintainer needs more info) » Needs work
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.

As per http://drupal.org/cvs-application/requirements, the motivation message should be expanded to contain more details about the features of the proposed module, and it should include also a comparison with the existing solutions.

mikedance’s picture

Thanks Kiamlaluno...

The meerkat module acts as a wrapper around the jquery meerkat plugin by providing the ability to create defaults, and then configure the meerkat functionality for nodes, it also provides an API so the meerkat functionality can be applied anywhere php can be included. The meerkat functionality is an improved "suckerfish" popup useful to emphasizing important notifications like sales, system notices, etc.

The views coda module is a views 2 style plugin to act as a wrapper around the jquery coda plugin. The jquery coda plugin provides functionality similar to the views slideshow module, with paging, navigation, animation, etc.

I would also about to release a twitter wall module which will provide functionality similar to:

http://fixoutlook.org

avpaderno’s picture

Status: Needs work » Needs review
avpaderno’s picture

Assigned: Unassigned » avpaderno

I will review the code tomorrow morning.

avpaderno’s picture

Status: Needs review » Needs work
  1.   $sql = "DELETE FROM {variable} WHERE name LIKE 'meerkat_%'";
    
      db_query($sql);
    

    The code could delete variables used by a module whose name starts with meerkat_ (there is no rules that blocks somebody from creating a module named meerkat_addons, in example).

  2. /**
     * Implementation of hook_enable().
     */
    function meerkat_enable() {
      drupal_set_message(t('The meerkat module has been enabled.'));
    }
    
    /**
     * Implementation of hook_disable().
     */
    function meerkat_disable() {
      drupal_set_message(t('The meerkat module has been disabled.'));
    }
    

    I would rather remove those messages; they simply report to who disabled the module (or enabled it) that the module has been disabled (or enabled). Those messages would make more sense if they would report, in example, that the node permissions must be rebuild.

  3. Strings used in the user interface should be in sentence case.
  4.   $result = db_query($sql, $input);
    
      if ( $result ) {
        while ( $row = db_fetch_array($result) ) {
          $row['data'] = unserialize($row['data']);
    
          return $row;
        }
      }
    

    Such code is not used from any Drupal core modules, which don't check first the result returned by db_query(); db_fetch_array() (as well as db_fetch_object()) is able to handle the case the passed parameter the boolean FALSE.

  5.     $link = l(t('Please click here to add a new default.'), 'admin/settings/meerkat/defaults/add');
    
        $output = t('There are no defaults at this time. !link', array('!link' => $link));
    
    

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

  6.   if ( $result ) {
        while ( $row = db_fetch_array($result) ) {
          $output[$row['id']] = $row['name'];
        }
      }
    

    The code is not formatted as it should; the space after the opening parenthesis, or before the closing parenthesis in the control statements are not required.

I checked only the merkat.module code.

avpaderno’s picture

Status: Needs work » Closed (won't fix)

There have not been replies in the past week. I am marking this application as won't fix.

avpaderno’s picture

Component: Miscellaneous » new project application
Assigned: avpaderno » Unassigned
Issue summary: View changes
Status: Closed (won't fix) » Closed (duplicate)
Related issues: +#2434289: [D7] Bitpay Currency Converter