Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2012 at 21:33 UTC
Updated:
31 Aug 2018 at 18:12 UTC
Jump to comment: Most recent
Comments
Comment #1
svenaas commentedThe latest commit message indicates that this project has already been run through PAReview, which gives it a clean bill of health. I went through the code and can't find anything to complain about. My only suggestion right now is to clean up the minor formatting issues (some erroneously breaking lines) in the project page.
Comment #2
theodorosploumisThanks for the quich response. Project page html is fixed now.
Please see if there is something else I should do with the html in project page.
Thanks again for the fast response.
Comment #3
NBZ4live commentedJust installed the module on fresh D7.
Module works like it should.
But you need to make a fix for the hook_menu() implementation.
The callback for the path admin/config/scrollbar is working, but it is not displayed on the admin/config page. You must choose a category.
For example: admin/config/user-interface/scrollbar
See https://drupal.org/node/549094#configuration for more informations.
All the other code looks fine.
And one suggestion for hook_uninstall():
For deleting so many variables I would prefer to use one call of:
instead of variable_del()
Then you achieve the deletion of all your variables with only 1 MySQL query instead of 26 separate queries (one for each variable). It's better for the performance.
Comment #4
theodorosploumisTasks from http://drupal.org/node/1444652#comment-5620420 are done. Thanks for the coding tip.
Comment #5
NBZ4live commentedYou have an PHP syntax error in the scrollbar.install file.
You forgot the
();on end of the line 46.please fix this last issue.
Comment #6
theodorosploumisError fixed.
Also, I would like to add the js code not inline but in a js file. I allready have the
function scrollbar_inlineJS() in the scrollbar.module file. I need this to be printed in a js file with Drupal.behaviors.
I did not find a documentation for doing this.
Comment #7
NBZ4live commentedOk. Now everything is working like it should.
Testet again on a fresh D7.
About the JS improvements:
I would do it a complete different way. (here an example)
You should add all the settings to Drupal's global JS settings (Drupal.settings).
You can do it by refractor your scrollbar_inlineJS() function.
You can add the settings this way:
After that the settings are accessible in the JS as Drupal.settings.jScrollPane
You simply can pass this object to the jScrollPane() function.
Although I wouldn't use a select field for TRUE || FALSE settings. Checkbox is better.
I would recommend to read this article http://drupal.org/node/751744 and sub articles.
Comment #8
theodorosploumisThanks, better wait for me to make these changes and then publish it.
It must work the Drupal way!
Comment #9
theodorosploumisI think we can publish the module the way it is now (print script on page) and I will make a release later with the js codes in seperate file.
Comment #10
theodorosploumisHi
is there any thought for this module to get live soon. It has already been tested andhas no issues pending.
Many people ask me about it's release.
Thanks
Comment #11
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #12
theodorosploumisHi again, I am back.
Very important changes happend to this module.
1) Add js in external js file with Drupal.settings()
2) Better documentation
3) Better names for files that use libraries module
4) Validation for values on configuration page
5) A new github created to host all the required files (js and css) and make the download proccess easier.
6) Add images in the project page.
You can test it and if it is OK we can publish it this time.
Thanks
Comment #13
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #14
theodorosploumisOK, will do this the sooner. Thanks
(I can review any project right? Or you will send me the links of the projects to be reviewed?)
Comment #15
acbramley commentedHey,
First off, PAReview is complaining about there still being a master branch. Please follow http://drupal.org/node/1659588 to set the default branch, then follow steps 6 and 7 in http://drupal.org/node/1127732 to delete the master branch.
There are also some minor spelling mistakes in the README.txt (line 64 and line 17 are the ones I've spotted).
Manual review of code looks all good.
Comment #16
acbramley commentedAs per http://drupal.org/node/1410826 there are no major flaws so setting to RTBC
Comment #17
theodorosploumisFinished with the fixes http://ventral.org/pareview/httpgitdrupalorgsandboxtplcom1442972git.
I also fixed the typo errors in both module files and drupal module page.
What about #14?
Comment #18
acbramley commented@TheodrorosPloumis you can review any project :)
Comment #19
theodorosploumisHi again. I came back with a lot of work. I reviewed 3 modules. It took me a lot of time but I must confess I learned a lot of things!
I will continue following these project applications of course. And I think I will do this proccess more times, without being 'obligated'.
Comment #20
klausiDon't forget to add the "PAReview: review bonus" tag as indicated in #1410826: [META] Review bonus, otherwise you won't show up on my high priority list.
Comment #21
jthorson commentedA few comments.
See http://drupal.org/node/322774 for the preferred way to include links in a translated string.
This has a high likelyhood of colliding with other module namespaces ... if you know the name of all variables, please use variable_del() on each variable explictly. Variable_del() also takes care of the cache and removing the variables from the global $conf array. (Also, I believe '_' is an SQL wildcard character, so this could also match 'scrollbars123' in addition to 'scrollbars_123'.)
These lines should split up into multiple individual t() calls, one per sentence or
<p>block, to help translators. Again, see http://drupal.org/node/322774 for details.Typo on 'Advanced'.
Typo on 'Repeat'.
The second sentence here is repeated multiple times in the subsequent elements. To simplify translations, it should be broken out into its own t() call in all of these elements, so that translators only have to translate it once. Also,
<br />is considered a block-level element, so it generally should not be included in the t() strings.Break out the block and link elements from your $missing1 and $missing2 messages, as per the above translations link. The "Lorem Ipsum Demo Content" text (label only) on the $lorem_ipsum message should be run through t().
This function is run on every page ... at a bare minimum, I would place the requirements checks at the top of the function and not include the settings drupal_add_js() until you know that the required libraries exist.
None of the above are show-stoppers, though I highly recommend the t() changes.
Thanks for your contribution, TheodorosPloumis!
I updated your account to let you 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 get 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 #22
theodorosploumisHi jthorson.
You are right about the variable_del() function. I have to use scrollbar\_% to get only the scrollbar_{ANYTEXT} variables (mysql manual matching characters).
The correct code for variable_del() will be:
I 've made all the recommended changes. Can you check them please? Especially the t() improvements, as I did not find a proper way to split the large chunks when I have a form item array (see line 19 of scrollbar.admin.inc). Is my code correct?
Comment #23
jthorson commented- For the uninstall routine, the 'right' way would be to use variable_del() and list each of the variables individually. Don't use a db_delete() function at all, unless you can't know what the complete list of variables are (which is the case for modules that dynamically create variables for each content type, for example).
- No need to translate the Lorem Ipsum text.
- For the download link in scrollbar_help() (copied from http://drupal.org/node/322744):
Hope this helps!
Comment #24.0
(not verified) commentedRemove "live demo" url because it is no longer active...
Comment #25
avpaderno