Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2013 at 11:47 UTC
Updated:
31 Aug 2013 at 16:24 UTC
Make the site into black-white-gray style for some unfortunately reasons.
Used for Drupal 7.x
Project page: http://drupal.org/sandbox/spiritfelix/1975496
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/spiritfelix/1975496.git gray
pareview: http://ventral.org/pareview/httpgitdrupalorgsandboxspiritfelix1975496git
Comments
Comment #1
sreynen commentedComment #1.0
sreynen commentedchange the git address to http://git.drupal.org/sandbox/spiritfelix/1975496.git
Comment #2
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and 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
zterry95 commentedadd t function for #description, #title. in gray.admin.inc
Comment #4
spiritfelix commentedoh, forgot it, thank you
Comment #5
zterry95 commentedmake a gray.install file, in this file, implement
Or simplely write it in gray.module.
Comment #6
zterry95 commentedchange the menu path from
admin/config/gray
to
admin/config/user-interface/gray
this is more reasonable, and easily for user to find and understand.
Comment #7
spiritfelix commentedThank you, zterry95
All of these has done, now.
Comment #8
a.milkovskyPlease consieder reviewing of coding standarts
Test your module at http://ventral.org/pareview/httpgitdrupalorgsandboxspiritfelix1975496git
Comment #9
spiritfelix commenteda.milkovsky
Thank you!
Fixed!
And also reviewed at http://ventral.org/pareview/httpgitdrupalorgsandboxspiritfelix1975496git
Comment #10
thomas_rendleman commentedhook_preprocess_HOOK() is great to use.
I just used it in my module "World Flag Logo".
It didn't effect all the websites because it is preprocessed.
You need to add hook_process_HOOK also with the same function.
The reason is some themes modify theme variable names, like marinelli. This will help you cover the majority of themes.
Currently I can't get any themes to work with this. That maybe your problem. Try to do a fresh install with your module and see what happens. I'm sure you can make it work. I would add a variable that is being saved into the database also (.install). If you need some help there are a lot of great tutorials "BUILD A MODULE.COM" or "DRUPALIZE.ME".
Comment #11
spiritfelix commentedthomas_rendleman
thank you,
Add this to make the background white instead of other color or image:
background: #ffffff !important;because different theme has different way to make the html, and there is not a way to make the background gray, so I define a background color instead.
reviewed by: http://ventral.org/pareview/httpgitdrupalorgsandboxspiritfelix1975496git
Comment #12
thomas_rendleman commentedUninstalled your module.
Reinstalled your module.
Changed theme to Bartik.
Configured all background colors to be #ffffff
Configured your option to make it gray in admin/config/user-interface/gray.
Went back to home page in Bartik.
Nothing changed, didn't work.
Comment #13
spiritfelix commentedHi, thomas_rendleman
Thank you for test, maybe I know the point now, it works in my Chrome, but not work in Firefox, I will continue working on this, thank you!
Comment #14
thomas_rendleman commentedWow you are right. Went to Chrome with the module still active. Chrome did if fact show the gray color. Firefox still didn't work. Try to process and preprocess. I had to do both to get my logo module to work.
Comment #15
thomas_rendleman commentedBy the way don't give up on this. I know I would have a use. You see when an employee is looking all day long at a screen colors can be anoying. This would be great if you could have in configured per role. Say you have a secretary who is entering data all day, this would save her eyes. It is a great idea.
Comment #16
spiritfelix commentedGood Idea!
I will keep on this, first of all, make it work on Firefox and others, and then maybe add more, thank you for your idea!
Comment #17
thomas_rendleman commentedNo problem.
Also if it would be good for some websites that has tutorials. Maybe like a button "Easy Eye Mode" that would turn it on and off. I would love that.
Comment #18
pagolo commentedHi spiritfelix,
your module works fine, however it seems to be too short (less than 120 lines of code).
Automated review: it's all ok.
Manual review:
configure = admin/config/user-interface/grayComment #19
spiritfelix commentedThanks pagolo,
I have added, and also make it works in Firefox already.
I am in Ubutnu now, Can anybody help me to check this in windows, and alse IE(maybe 8 and 9?)?
Comment #20
pagolo commentedI can test IE and Chrome, if you wish...
Comment #21
spiritfelix commentedthank you, pagolo,
I have tested in Windows and IE, I found it works in both Chrome and Firefox, but not work well in IE...
Comment #22
spiritfelix commentedAdd a setting to make it auto-disable by cron.
Comment #23
spiritfelix commentedsorry, wrong input about tags.
Comment #24
thmnhat commentedHi spiritfelix,
My manual review:
In gray.admin.inc:
- You should use t() function for the description of the second element.
In gray.install
- You should support non url-rewriting websites by changing the link
to
In gray,module, function gray_help()
- The the <a> tag, you should use ! instead @, because your link doesn't contain any special characters, so we don't have to run the check_plain(). And also (just my point of view) you should use double quotes instead of quote in the attribute.
My correction
Just one more thing, what happens if my cron runs once per day or later than one day? hmmmm
Comment #25
spiritfelix commentedyey, thmnhat,
thank you very much!
Comment #26
spiritfelix commentedto thmnhat,
if you enable the gray style and setup the date, it will be gray and come back to "not gray" after cron run when over the date.
Comment #27
spiritfelix commentedto thmnhat,
and about the "@" in the hook_help, the same as it is in the blog module "blog_help()", so I will not change, any way, thank you!
Comment #28
spiritfelix commentedOthers Fixed
Comment #29
kscheirerThis is a great module? All your text descriptions are so negative, but the comments here are overwhelmingly positive! It's a clean module and certainly unique. It may not be quite up the typical word count, but that's ok with me. Usually too-short modules are just a single hook implementation of something basic, but this is not.
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #30
spiritfelix commentedI wanna to know what shall I do next to make this sandbox project into a module.
THX
Comment #31
stborchertWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and we will take a look at your project right away.
There are some serious issues with this project you need to fix:
Comment #32
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #32.0
PA robot commentedAdd pareview link