Hello,
Module name: Views Show More (https://www.drupal.org/sandbox/saniyat/2330609)
This is a very unique pager plugins for view.
It support different item count in 1st page and others pages. Like, you have set 6 items per page. But want to set 12 items initially in 1st page. This module can it.
mainly, I have develop this module to implement ajax based show more functionality. That show specific number of item each show more link click. But need to show others item count in initially.
This module,
1) Works both views ajax and no-ajax mode (developed mainly for the ajax mode).
2) Option for result display method. Can choose Append or Replace method.
3) Option to override 1st page or initial item count than others page.
4) Basic and advance animation system for result impression for ajax mode.
5) Ability to define custom animation timing.
6) Advance settings for content area and pager area selector. If default html markup override using the theme tpls.
Project sandbox link: https://www.drupal.org/sandbox/saniyat/2330609
Git clone:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/Saniyat/2330609.git views_show_more
cd views_show_more
Review List:
2nd Review List:
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | Views_more_XSS.jpg | 57.58 KB | pushpinderchauhan |
| #16 | show_more3.png | 62.53 KB | mccrodp |
| #16 | show_more2.png | 49.38 KB | mccrodp |
| #16 | show_more1.png | 36.74 KB | mccrodp |
| #16 | show_more_settings.png | 62.35 KB | mccrodp |
Comments
Comment #1
saniyat commentedComment #2
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxSaniyat2330609git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
saniyat commentedAll reported errors are solved by the PAreview, expect the views class extend functions override.
Comment #4
saniyat commentedComment #5
rajesh.vishwakarma commentedAutomated Review
As I checked on pareview.sh there are still some issues, that need to be fixed.
Manual Review
Comment #6
saniyat commented1. According to pareview.sh some error fixed. But in this
views_plugin_pager_show_more.incfile these lines are not possible to fixed. Cause those lines are override function of the parent class.Like, option_definition is a function of views pager class. When we create a custom pager then we extend this function to meet our criteria. So, If we need to validate this function then views 1st need to fix the function naming conversion. reference: http://cgit.drupalcode.org/views/tree/plugins/views_plugin_pager_full.in....
So, these issues are false positive.
Also, readme.md file added with content.
Thanks.
Comment #7
saniyat commentedComment #8
saniyat commentedComment #9
saniyat commentedComment #10
saniyat commentedComment #11
pushpinderchauhan commentedRemoving review bonus tag, you have not done any manual review, you just copied the empty review template in two reviews and in one review just reported about pareview.sh. Make sure to read through the source code of the other projects, as requested on the review bonus page.
Comment #12
saniyat commentedComment #13
saniyat commentedComment #14
saniyat commentedComment #15
benjaminarthurtAutomated Review
pareview.sh still showing issues.
If those issues can not be corrected as they are extending another function
// @codingStandardsIgnoreFilecan be added to a file to make it pass the Coding Standards checks. This should only ever be used as a last resort in cases where the code is correct or can not be corrected to pass the automated coding review checks.Manual Review
I'd like to see a bit more info on the Project Page.
Side note: I'm looking forward to a full release version of this as it will be perfect for a site I've been working on.
Comment #16
mccrodp commentedOverall this module seems to be well written and is easy to configure. There are some items that Need Work and some that require further documentation and discussion.
Automated Review
Review of the 7.x-1.x branch (commit d491864):
Coder Sniffer has found some issues with your code (please check the Drupal coding standards).
FILE: ...ar/www/drupal-7-pareview/pareview_temp/views_plugin_pager_show_more.inc
Time: 146ms; Memory: 7Mb
No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.
Manual Review
Views Infinite Scroll
At the moment we can see in the screenshots attached my settings. When I click "Show More" the list expands rather than being replaced. When I click "Show More" again, this happens until no more entries and the "Show More" link disappears when there is no more.
If this works as designed, the differences between AJAX and no-AJAX mode should be described on the project page / README.txt.
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
This review uses the Project Application Review Template.
Comment #17
mccrodp commentedChanging to Needs Work.
Comment #18
saniyat commentedThanks a lot benjaminarthurt and mccrodp for your review.
I have fixed and updated codes according to your report. Details are bellow:
1) I have fixed the errors according to PAReview.
2) Why my module difference from others are mention on the README.md file.
3) Spelling problem and readme file updated fully with all necessary information.
About mccrodp issue,
You are right about my module functionality. I have added some bit more functionality and updated the readme file with proper explanation about ajax and no-ajax mode.
Comment #19
pingwin4egThis is what I get all the time when I choose this plugin or try to configure it in Views UI:
You should provide all defaults in option_definition() method.
Comment #20
saniyat commentedNotice bug fixed. Also, all codes checked for error and validated.
Comment #21
mpdonadioAutomated Review
Review of the 7.x-1.x branch (commit 47ea7aa):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Manual Review
ViewsShowMorePlugin::summary_title(), why the string concatenation? Just use a single format_plural.
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
Not seeing anything major. Assigning to @er.pushpinderrana for a second look if he has time.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #22
saniyat commentedHello mpdonadio,
Thanks a lot for your review.
I have fixed the spelling error at line 82 of ViewsShowMorePlugin.
I have showing summary like "Initial 1 item, Per click 5 items" or "Initial 3 items, Per click 5 items" or "Initial 4 items, Per click 1 item". So, my module have different summary based on the Initial item and per click item count. Thats why i need to use 2 format_plural and concatenate it to one string.
Comment #23
pushpinderchauhan commentedAutomated Review
Best practice issues identified by pareview.sh / drupalcs / coder. None
Review of the 7.x-1.x branch (commit daabc85):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Manual Review
theme_pager_show_more(): This is vulnerable to XSS exploits. If I enter
<script>alert("XSS Show more pager link text when empty")</script>inShow more pager link text when emptyfield under pager option form, every time on last page of pagination, get a nasty javascript popup. You need to sanitize this before rendering, make sure to read https://www.drupal.org/node/28984 again. User provided input should always be sanitize before printing on screen.The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
Please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #24
saniyat commented1. XSS bug fixed.
2. Js is not possible to attached with views output. Because in output there is no form element and I need to check the views ajax enabled or not. So, that I need the views object for checking, why views_show_more_views_pre_render() used to add the js file.
3. As @mpdonadio recommendation I have updated the project page that have the module comparisons.
Comment #25
nomorecaptcha commentedAutomated Review
I reviewed the Project on Pareview.sh, It’s still showing some issues.
Manual Review
Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation as mentioned in README in reference to ‘Views Infinite Scroll’ and ‘Views Load More Modules’.
Master Branch
Yes: Follows the guidelines for master branch. The guidelines are taken under consideration.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
n/a.
README.txt/README.md
Yes: Follows the guidelines for in-project documentation and the README Template.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity. Code is Complex enough for a review, though some of previously mentioned issues have been fixed.
Coder ReviewI reviewed views_show_more (active) with Coder Module, There is one normal warning.
The module will be good addition to Drupal Community, Looking forward for full released with fixed issues mentioned above.
Comment #26
saniyat commentedComment #27
saniyat commentedComment #28
saniyat commentedComment #29
saniyat commentedComment #30
saniyat commentedComment #31
pushpinderchauhan commentedAutomated Review
Review of the 7.x-1.x branch (commit d37b712):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Source: http://pareview.sh/ - PAReview.sh online service
Manual Review
views_show_more_views_ajax_data_alter():
is_ais deprecated, better to use the instanceof operator. See https://www.drupal.org/node/1793894But that are not critical application blockers, otherwise I think this is RTBC.
Also blocking issues from #23 have been addressed. Been sitting at RTBC for a while now, so...
Comment #32
pushpinderchauhan commentedThanks for your contribution, saniyat!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, 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.
Thanks to the dedicated reviewer(s) as well.
Comment #33
saniyat commentedThanks a lot er.pushpinderrana for your review.
I will follow the recommendation that you mentation in #31.