CVS edit link for rgeorgy

My project (Views Infinite Scroll) provides a views pager plugin[1] that enables views infinite scrolling ( autopaging, depaging, endless pages ...you name it) by using jquery.autopager plugin[2]. using this module with views page display, that will load another page whenever as user reach bottom of the page.

• requirements
∘ views 6.x-3.0-alpha2 (http://drupal.org/node/695302) or more.
∘ copy jquery autopager plugin[3] to module's views_infinite_scroll/js directory

• Important notes:
∘ This module is not compatible with views ajax

• there is a module that provides similar functionality (http://drupal.org/project/endless_page), but here are the reasons why I made this module:
∘ Endless page module is already orphaned (http://drupal.org/node/581952)
∘ The module does not work with views 3.x
∘ While Endless Page module utilizes views style plugin, this module utilize the newly introduced *pager* plugin, In order not to override a whole style just for the pager :)

[1] http://drupal.org/node/586668
[2] http://lagoscript.org/jquery/autopager/
[3] http://lagoscript.org/files/jquery/autopager/jquery.autopager-1.0.0.js

Comments

Remon’s picture

StatusFileSize
new2.05 KB

Please kindly find my contribution attached.

Remon’s picture

Status: Postponed (maintainer needs more info) » Needs review
avpaderno’s picture

Status: Needs review » Needs work

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 there is already another module with the same purpose, why didn't you open a feature request for it? There is also the option to take over that project.
As reported in http://drupal.org/cvs-application/requirements, the proposed module must not duplicate the work done in an already existing project.

Remon’s picture

Hi Alberto, I mentioned before why I decided to duplicate the work done;
∘ Endless page module is already orphaned (http://drupal.org/node/581952) as the maintainer is not replying to issues no more.
∘ The module does not work with views 3.x.
∘ While Endless Page module utilizes views style plugin, this module utilize the newly introduced *pager* plugin, In order not to override a whole style just for the pager :).
And actually, I don't like maintaining that module because the approach of scrolling used here are very different.

thank you

avpaderno’s picture

Endless page module is already orphaned (http://drupal.org/node/581952) as the maintainer is not replying to issues no more.

In that case you should follow what reported in http://drupal.org/node/251466 (Dealing with abandoned projects).

Remon’s picture

Seems that I should not mark the two modules as similar from the beginning :D, ok, both are used to infinite scrolling. but they have two different approaches. so I don't think that taking over endless_page module is a good idea.
sorry for inconvenience.

avpaderno’s picture

Status: Needs work » Needs review

While Endless Page module utilizes views style plugin, this module utilize the newly introduced *pager* plugin, In order not to override a whole style just for the pager.

It makes more sense to implement a pager plugin than to implement a style plugin.
Thanks for replying to the questions.

avpaderno’s picture

I moved #581952: Endless Page seems abandoned to the Drupal.org webmasters' queue to mark the module as abandoned.

Remon’s picture

thanks

Remon’s picture

@kiam, when should I consider this issue as fixed? :)

Remon’s picture

Well, it's been more than two weeks and it is not moving forward :), could I move it to fixed?

Remon’s picture

@kiam, may you please tell me what will happen with this issue, since it's been there for ages now.

avpaderno’s picture

Assigned: Unassigned » avpaderno

I will review the code tomorrow, or the day after.

avpaderno’s picture

Status: Needs review » Needs work
  1. function views_infinite_scroll_theme() {
      $path = drupal_get_path('module', 'views_infinite_scroll');
      require_once "./$path/theme/views_infinite_scroll_theme.inc";
    

    There is no reason to include the file containing the theme function in hook_theme(), which just lists the theme functions implemented by the module; there is a way to say to Drupal which file contains those function, and Drupal will load it automatically.

  2. The implementation of hook_init() is empty; it should be removed.
  3. The implementation of hooks should have a comment like Implements hook_menu()..
Remon’s picture

StatusFileSize
new2.06 KB

Thanks for review. all comments are applied.

avpaderno’s picture

Status: Needs work » Needs review

Remember to change status, when you upload new code, or I could not notice you fixed the code. :-)

avpaderno’s picture

Status: Needs review » Fixed

It's good to go.

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.

Remon’s picture

@kaimlaluno, thanks for your effort in bringing this to light :)

Status: Fixed » Closed (fixed)

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

avpaderno’s picture

Component: Miscellaneous » new project application
Issue summary: View changes