The Logo Doodle module allows site administrators to have variations of the site
logo for special occasions.
This module allows you to upload a different logo along with a time-frame during
which it will be shown on the site.
There is also an integration with the Birthdays.module to allow site
administrators to show a special birthday logo on the site on the site users
birthday.
Usage:
- Enable the module as usual.
- To schedule a doodle for a particular, create a new node of type
'logo doodle', upload the logo and set the start and end dates.
- To configure a doodle to be shown on a site user's birthday, enable the
Birthdays module, attach a birthday field to the user and configure the
doodle at admin/config/system/logo_doodle
Link to project page: https://drupal.org/sandbox/alansaviolobo/2100283
Direct link to git repository: git clone --branch 7.x-1.x git@git.drupal.org:sandbox/alansaviolobo/2100283.git logo_doodle
Reviews of other projects
Simple Comment Rate: https://drupal.org/node/1437082#comment-6269442
Email PDFs: https://drupal.org/node/1447120#comment-6269264
Election: https://drupal.org/node/1679472#comment-6272422
Comments
Comment #1
PA robot commentedWe 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 #1.0
PA robot commentedadding links to project and repo
Comment #2
alansaviolobo commentedComment #3
thelmer commentedHi Alan
1) please update the direct git link to ( alansaviolobo -> git , logo_doodles -> logo_doodle ) :
git clone --branch 7.x-1.x git@git.drupal.org:sandbox/alansaviolobo/2100283.git logo_doodle
2) If I edit a "Logo Doodle" node and don't change the date I get an error : "There are currently 1 doodle(s) that have an overlapping duration"
The validate function finds the node we are trying to update and see this as a duplicate..
add nid to $input_values and add "->entityCondition('entity_id', $input_values['nid'], '!=')"
3) The two conditions :
->fieldCondition('field_logo_doodle_duration', 'value', array($input_values['value'], $input_values['value2']), 'BETWEEN')
->fieldCondition('field_logo_doodle_duration', 'value2', array($input_values['value'], $input_values['value2']), 'BETWEEN')
.. are AND'et, thus overlapping doodles are only found if both dates are within other doodle ranges.
The query should OR these two conditions, see http://www.phase2technology.com/blog/or-queries-with-entityfieldquery/
4) Date's are saved in timezone UTC, but when you check the dates in logo_doodle_get_site_active_doodle() you use "date()"
which return a localized timestamp ( http://www.php.net/manual/en/function.date.php )
Use gmdate() instead ( http://www.php.net/manual/en/function.gmdate.php )
.. maybe you have the same issue with birthdays..
5) Your content_type defines an interval of 15 minutes. On a fresh install with only the dependant "date" module installed as
configured in the .info file there is no way the user can see why the dates are changed to 0/15/30/45 when saved.
Comment #3.0
thelmer commentedadded links to manual reviews of other modules
Comment #4
alansaviolobo commentedHi Tom,
Thank you very much for your comments. I have made the appropriate changes.
Comment #5
alansaviolobo commentedComment #6
jojototh commentedHello,
I tried the module, and I have some feedback for it. It looks fine. But I am missing some image preset functionality. Also when there is no birthday field i got this warning:
When the field is there and set up everything seem to work ok. But there is still possibility to remove the field, which will cause the same behavior with warning.
Maybe consider to make the birthday functionality as submodule with dependency to birthday module, which would also help to install the module using drush, which is able to download all missing modules from dependency.
But the module seems to work.
Comment #7
alansaviolobo commentedHi Jozef,
I was just wondering whether creating a submodule for the birthdays functionality would be a good idea considering that there are hardly 2-3 functions that would go into it.
Am open to suggestions. I will take care of the warning. thanks.
Comment #8
alansaviolobo commentedHi Jozef,
I have fixed the warning.
Also, what did you mean by "But I am missing some image preset functionality. "?
Comment #9
thelmer commentedMy guess is he means image styles. I actually thought the same, as this module open up for having a range of site logos. Normally the logo is very static and it's not a problem to scale it manually. So I will also suggest you add a image style to the image and make the w/h configurable.
Comment #10
jojototh commentedThelmer is right, this would be really nice feature. And the part with submodule is not necessary to implement, that was just for consideration. If you think the module would be too small you can leave it in one module. Confirming that the notice is fixed.
Comment #11
willyk commentedI ran this through Coder module again and it noted the following:
Pretty minor, but just though I mention it in case you have a chance to fix.
I've installed the module and configured it. Will provide some feedback after testing it a bit.
Comment #12
klausimanual review:
But otherwise looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to cweagans as he might have time to take a final look at this.
Comment #13
alansaviolobo commentedTom, Jozef,
I have added the image styles integration. You can create a new image style and configure the logo to use it.
William,
I have removed the offending white-space.
Klaus,
1. I have removed the offending comment. Actually, the url that the menu function was creating was the new functionality itself. but it is incorrect now.
2. I have changed the permission to 'administer site configuration' which i felt was appropriate.
3. I am able to identify the logo because of a quirky behaviour of the hook. it returns blank when the logo url is being modified.
Comment #14
klausino objections for more than a week, so ...
Thanks for your contribution, alansaviolobo!
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 #15
alansaviolobo commentedHi Klaus,
Thanks for the review. The project is now hosted at https://drupal.org/project/logo_doodle
Comment #16.0
(not verified) commentedupdated the direct checkout link