Features
1. Load content without reloading the page using ajax
- replace content;
- replace title;
- attach js events to replacing content
2. Show progressbar on top of the page and change oppacity of content while page loading
3. Drush command to download and install the NProgress plugin in sites/all/libraries
Installation
- Download and install the module as usual.
- Download the jQuery nprogress plugin (http://ricostacruz.com/nprogress/) and install at library folder (sites/all/libraries), drush users can use the command "drush nprogress-plugin".
- Settings module here admin/config/user-interface/ajax-page-load
Git
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/Alons/2155421.git ajax_page_load
Page project
https://drupal.org/sandbox/alons/2155421
Comments
Comment #1
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxAlons2155421git
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 #2
Alons CreditAttribution: Alons commentedComment #3
Alons CreditAttribution: Alons commentedComment #4
webmorozov CreditAttribution: webmorozov commentedWhile giving GIT clone command, provide the non-maintainer command : "git clone --branch 7.x-1.x http://git.drupal.org/sandbox/Alons/2155421.git ajax_page_load_with_progress_bar"
PAReview Passed:
http://pareview.sh/pareview/httpgitdrupalorgsandboxAlons2155421git
Manual Review:
1. I didn't see progress bar on top of the page. Maybe because page loaded fast
2. It will be great if we can configure other settings like speed, opacity in the future
3. Better use standard drupal_set_message here and display that message immediately after installation of the module.
Also are you sure that we should use t() for t('http://ricostacruz.com/nprogress/') ?
Comment #5
michel_v CreditAttribution: michel_v commentedHi
Further to the above comments, I've also reviewed your module, followed the instructions to install the nprogress library, then tested it worked by
1. setting selector to ul.main-menu on the administration page.
2. Create some content and add them to the main menu
3. Change from one page to another page in the main menu
I did see the progress spinner at the top of the page, as well as the progress bar, but it seemed to show them mostly after the content had already been replaced.
Either way, only issue I could see was something mentioned in the Tips for ensuring a smooth review (https://drupal.org/node/1187664#issues), your module doesn't remove the Drupal variables it defines.
Thanks
Comment #6
ram4nd CreditAttribution: ram4nd commentedComment #7
ram4nd CreditAttribution: ram4nd commentedComment #8
Alons CreditAttribution: Alons commentedComment #9
Alons CreditAttribution: Alons commentedNow it will be seen
I added setting opacity
done, thanks
You are right. Fixed
You are right. Fixed. Thanks
like now?
fixed, thanks
Comment #10
Alons CreditAttribution: Alons commentedComment #11
fusionx1 CreditAttribution: fusionx1 commentedHi,
Here are my reviews after installing the module:
1.
Theres nothing wrong with the above codes, but i would like to recommend that instead of using the author's website url why not use the github link since its in that site where we will be downloading the plugin .
2. I think its standard to have a separate folder for your css file
3. When i tested a link from my main menu ajax page loads ok, but if it loads my timeline page(using jquery plugin timeliner) it breaks it. You can check it from here: demo.fourmindstech.com
Comment #12
anil614sagar CreditAttribution: anil614sagar commentedComment #13
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #14
Alons CreditAttribution: Alons commentedComment #15
Alons CreditAttribution: Alons commentedComment #16
klausiThis application is not fixed since you don't have the git vetted user role yet? See the workflow: https://www.drupal.org/node/532400
Comment #17
robbertv CreditAttribution: robbertv commentedCode looks pretty good. I see you have a css directory with a css file in it. You have the same css file in the root of your project and the code references the file in the root. You should either update your code to reference the css file in the css directory or delete the css directory.
One stylistic change I would suggest is adding a @return and @parameter information to the function documentation.
A nice to have is for this project to add the required ngprogress library upon installation or activation of the module.
Comment #18
robbertv CreditAttribution: robbertv commentedForgot to change the status.
Comment #19
rikki_iki CreditAttribution: rikki_iki commentedI like this module! PAReview is showing some new issues though - http://pareview.sh/pareview/httpgitdrupalorgsandboxalons2155421git
Definitely need to remove the duplicate CSS file, I'd get rid of the one in the root directory and keep the css directory, so it matches the js setup.
My main issue though is with the opacity animations - it's fading out and then in again on the original page, then the new page loads. Should really only fade out on the original page and fade in on the new page, which can be achieved by changing:
to:
I also think the opacity reference on body.load in the css file is redundant. It seems to cause a flicker. Setting the opacity in the JS is enough.
Comment #20
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #21
Alons CreditAttribution: Alons commentedThank you robbertv. It's fixed
was changed
Sorry, but I think that with the addition of a library when you install the module may be a problem with the permissions on the directory.
Comment #22
dstorozhukComment #23
dstorozhukComment #24
dstorozhukPlease update the description of this article with instructions to install nprogress.js.
Review template.
Automated Review
Found some minor warnings http://pareview.sh/pareview/httpgitdrupalorgsandboxalons2155421git , but they can be avoided.
Manual Review
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.
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 #25
Alons CreditAttribution: Alons commentedComment #26
Alons CreditAttribution: Alons commentedThank you dstorozhuk for your review
I changed README.txt/README.md
Also was remove from .info js, css
Comment #27
Alons CreditAttribution: Alons commentedComment #28
Devaraj johnson CreditAttribution: Devaraj johnson commentedAutomated Review
Go through the issue mentioned in the below url http://pareview.sh/pareview/httpgitdrupalorgsandboxAlons2155421git
Manual Review
Individual user account
Yes: Follows
No duplication
Yes: Does not cause.
Master Branch
Yes: Follows. No Master Branch.
Licensing
Yes: Follows.
3rd party assets/code
Yes: Follows, no 3rd party code.
README.txt/README.md
No: Not follows the template https://www.drupal.org/node/2181737
Secure code
[Yes: Meets the security requirements. / No: List of security issues identified.]
Coding style & Drupal API usage
1. Just a recommendation
It good if you implement hook_install() It is recommended to always implement hook_install(). Here you can find an example.
Also implement hook_help() its good to implement for a professional developer.
Comment #29
dstorozhuk@Devaraj johnson
I saw recommendations like this in several other modules reviews. Looks like you are not investigated this module code clearly. It doesn't need hook_install() implementation.
Please avoid giving unreasonable recommendations, or describe a reason or provide a link with description.
Also, as I see, README.txt was fixed before your comment.
(Katherine committed on 7/23/15 at 3:05pm, and your comment (Devaraj johnson) dated 7/23/2015 at 11:28pm).
So, either provide a reasons why you think README.txt doesn't match with template, or remove your negative comment about README.txt.
Comment #30
Alons CreditAttribution: Alons commentedThank you Devaraj johnson for you review
@Devaraj johnson
Fixed all pareview issues.
@Devaraj johnson
ok. Added
@Devaraj johnson
Please check I changed file README.txt before you comment. As dstorozhuk wrote above also.
Sorry, but my module don't need hook_install.
Comment #31
Alons CreditAttribution: Alons commentedComment #32
Alons CreditAttribution: Alons commentedComment #33
Alons CreditAttribution: Alons commentedComment #34
smakisog CreditAttribution: smakisog commentedAutomated Review
No errors found: http://pareview.sh/pareview/httpgitdrupalorgsandboxalons2155421git
Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.
Manual Review
ajax_page_load.module line 63 - Place title into t()
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.
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 #35
dstorozhuk@smakisog, No need to wrap menu items title in t(), since Drupal do this for you.
Comment #36
Alons CreditAttribution: Alons commentedThank you @smakisog for your review
Thanks @dstorozhuk, you are right
"title callback": Function to generate the title; defaults to t(). (https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...)
What I should do to getting status "Reviewed & tested by community"?
Comment #37
dstorozhukModule looks good for after second review, but one thing need to be done before release:
active
class.Currently, when I click on some link in menu, module shows me the content of requested page but previous link keep staying active. This may confuse a user.
Check the attached file as starting point.
Feature requests:
Fix (*) and I think module could be marked as RTBC.
Comment #38
Alons CreditAttribution: Alons commentedThank you dstorozhuk for your review
Done some changes to module:
- was setted class active to clicked link and removed class from old link
- added drush and make commands
- also added more additional settings for plugin
Comment #39
Alons CreditAttribution: Alons commentedComment #40
monojnath CreditAttribution: monojnath at TATA Consultancy Services commentedHi
I've also reviewed your module.
I have followed the instructions to install the nprogress library and then tested it.
But I did not see the progress spinner at the top of the page, as well as the progress bar. :(
May be my contents are a bit less and the page is loading ast, but as a suggestion you may provivide some descrriptive text in the help sections instead of mentiong the same configuration links.
Also it seems that your module doesn't remove the Drupal variables it defines.
So, you may have a look on that too.
And I have seen some new issues logged by "http://pareview.sh/pareview/httpgitdrupalorgsandboxalons2155421git".
So, please fix these issues and good luck :).
Comment #41
monojnath CreditAttribution: monojnath at TATA Consultancy Services commentedComment #42
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.