Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#24 | simplelogin.zip | 17.88 KB | ThirstySix |
Comment | File | Size | Author |
---|---|---|---|
#24 | simplelogin.zip | 17.88 KB | ThirstySix |
Comments
Comment #2
ThirstySix CreditAttribution: ThirstySix commentedComment #3
ThirstySix CreditAttribution: ThirstySix commentedComment #4
PA robot CreditAttribution: PA robot commentedGit clone command for the sandbox is missing in the issue summary, please add it.
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 #5
ThirstySix CreditAttribution: ThirstySix commentedGit Clone Page: http://git.drupal.org/sandbox/satheeshkumarr/2640316.git simplelogin
Git Clone: git clone --branch 7.x-1.x satheeshkumarr@git.drupal.org:sandbox/satheeshkumarr/2640316.git simplelogin
Git Files Page: http://cgit.drupalcode.org/sandbox-satheeshkumarr-2640316/tree/
Project Page: https://www.drupal.org/sandbox/satheeshkumarr/2640316
Comment #6
ThirstySix CreditAttribution: ThirstySix commentedComment #7
atul4drupal CreditAttribution: atul4drupal commentedHello satheeshkumar.six,
I ran your code against auto code sniffer at 'http://pareview.sh'. It gave 2 errors of which I think you should resolve the following :
File - css/simplelogin.css
error - 231 | ERROR | [ ] Style definitions must end with a semicolon
Comment #8
ThirstySix CreditAttribution: ThirstySix commentedFixed issues as per the suggestions from pareview.
Pareview results:
http://pareview.sh/pareview/httpgitdrupalorgsandboxsatheeshkumarr2640316git
Comment #9
jaffaralia CreditAttribution: jaffaralia commentedFix the below issues:
Comment #10
lhuria94 CreditAttribution: lhuria94 commentedHi @satheeshkumar.six
There needs to be a validation message for Image upload if the uploaded extension is wrong.
For example: The selected file "apache2.conf" cannot be uploaded. Only files with the following extensions are allowed: png, gif, jpg, jpeg.
Currently it always seems to display the success message.
And @jaffaralia Regarding changing folder name, Is not it all sandbox modules behave like this?
Thanks
Comment #11
ThirstySix CreditAttribution: ThirstySix commentedHi,
@jaffaralia .install file created for variable_del('simplelogin_fid') on hook_uninstall function.
and @lhuria94 currently it displays only "The configuration options have been saved.". The Image is not a mandatory field on the configuration field.
Comment #12
lhuria94 CreditAttribution: lhuria94 commented@satheeshkumar.six,
Even not mandatory, its good to have a message for wrong extensions.
See attached for reference.
Thanks
Comment #13
ThirstySix CreditAttribution: ThirstySix as a volunteer commentedHi @Ihuria94,
Goto "admin/config/simplelogin/loginbg". It's working fine & also not showing the wrong extension's message.
Check my module page: http://cgit.drupalcode.org/sandbox-satheeshkumarr-2640316/tree/simplelog... in simplelogin_background_form(). I mentioned title named as "Background Image". but your screenshot shows title is named as "Image" and File must be less than 256MB, description text. I didn't restrict the file size and all. Get the latest files from the sandbox.
Thanks,
Comment #14
lhuria94 CreditAttribution: lhuria94 commented@satheeshkumar.six,
I just added a standard way of using file upload validation. That was not a screenshot of your module. I am asking you to implement like that if someone try to upload wrong extension.
For example: If someone tried to upload doc file, then it gives a error message that the file is of wrong extension.
Let me know if you need any clarity in this.
Thanks
Comment #15
Rahul Seth CreditAttribution: Rahul Seth commentedAutomated Review
I ran your code against auto code sniffer at 'http://pareview.sh/pareview/httpgitdrupalorgsandboxsatheeshkumarr2640316git'.
Review of the 7.x-1.x branch (commit 8894019):
Coder Sniffer has found some issues with your code (please check the Drupal coding standards).
FILE: /var/www/drupal-7-pareview/pareview_temp/simplelogin.install
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
6 | ERROR | [ ] There must be no blank lines after the function comment
10 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
Time: 170ms; Memory: 7.75Mb
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.
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
Comment #16
Rahul Seth CreditAttribution: Rahul Seth commentedComment #17
klausiminor coding standard errors are surely not application blockers, please do a real manual review.
Comment #18
Rahul Seth CreditAttribution: Rahul Seth commented@satheeshkumar.six,
Module seems to quite good. Just recommendation, it would be good if you mention more about module in README file.
Comment #19
ThirstySix CreditAttribution: ThirstySix commentedFixed issues as per the suggestions from pareview.
http://pareview.sh/pareview/httpgitdrupalorgsandboxsatheeshkumarr2640316git
Comment #20
Arkener CreditAttribution: Arkener commentedThe URL /admin/config/simplelogin currently returns a whitepage and the error "Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'system_admin_menu_block_page' not found or invalid function name in menu_execute_active_handler()". Change the menu item to also include the required file like this:
simplelogin.module
Line 66: Place Login to Account inside a t()
Line 134: Place Uploading inside a t()
templates/page--simplelogin.tpl.php
Line 17: Rename Login-In to Login
Line 34: Place Forgot password? inside a t()
You might also want to move the background image css logic from your template file to the hook_preprocess_page, which is already present inside your module file.
Comment #21
ThirstySix CreditAttribution: ThirstySix as a volunteer commented@Arkener,
Thanks for your review. Latest changes are commited based on your review.
@lhuria94,
Thanks for your review. I need clarity for your "wrong extension validations".
Comment #22
lhuria94 CreditAttribution: lhuria94 commentedHi @satheeshkumar.six,
Scenario: If someone tries to upload doc file, then it should give a error message that the file is of wrong extension like in the attached screenshot. Its good to have.
Let me know if you need any more clarity.
Comment #23
mdryanAutomated Review
Looks good. No test cases, but not an application blocker and not really essential for a simple module such as this.
Manual Review
Generally shows a good understanding of the Drupal API and coding standards.
This review uses the Project Application Review Template.
Happy to set to RTBC. Let's hope the backlog of these get a final quick review and approval by a git administrator soon...
Comment #24
ThirstySix CreditAttribution: ThirstySix as a volunteer commentedHi @mdryan,
Thanks for your valuable review. I made some changes as per your recommendation.
Comment #25
mdryanChanges look good to me.
Comment #26
klausiRemoving review bonus tag, you have not listed any manual reviews in the issue summary? Make sure to read https://www.drupal.org/node/1975228 again.
Comment #27
anbarasan.r CreditAttribution: anbarasan.r commentedseems variable_get and drupal_get_path_alias function callback made on the tpl file, so try to avoid those on the tpl and instead have those as a variable on the module using theme preprocessor hook and use it on the tpl file.
Comment #28
xaiwant CreditAttribution: xaiwant as a volunteer and at Valuebound commented@satheeshkumar.six
Location
/simplelogin/simplelogin.module
Problem synopsis
Missing 'break' statement (at line 72)
just want to know that this module does not have help & permission hook. Do you want or you don’t want.
if not than why.?
Comment #29
ThirstySix CreditAttribution: ThirstySix as a volunteer commented@xaiwant,
We don't need the help & a permission hook for this module and break statement is not mandatory because user_login & user_pass both have placeholder as same as the title value.
Comment #30
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commentedHi satheeshkumar.six ,
Module looks good. Some suggestion are :
1: Please update the path
admin/build/modules
toadmin/modules
in README.txt2: Use a blank line just after
<?php
in simplelogin.inc and simplelogin.moduleto
Comment #31
naveenvalecha@visabhishek: Above are not blockers. Please change the status. Is this now RTBC after your review or are there other application blockers left?
Comment #32
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commented@naveenvalecha : No i have never find other blockers. Now we can mark it as RTBC.
Comment #33
ThirstySix CreditAttribution: ThirstySix as a volunteer commentedHi @visabhishek & @naveenvalecha,
Thanks for your valuable review. I made some changes as per your recommendation.
Comment #34
mlncn CreditAttribution: mlncn at Agaric commentedThanks for your contribution! Congratulations, you are now a vetted Git user. You can promote this to a full project.
When you create new projects (typically as a sandbox to start) you can then promote them to 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.
Comment #35
ThirstySix CreditAttribution: ThirstySix as a volunteer commentedThank you Reviewers, supporters and mlncn.