Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2013 at 21:08 UTC
Updated:
11 Aug 2013 at 23:01 UTC
The module allows to display popup after a certain delay after a page load. This fills a gap in popup modules family (Popups, Popup), which are designed to show popups only after click on an HTML element, or to implement a complex behavior like modal dialog forms.
If you want to just display a popup after a page load, the Popup Advertisements module possibly fits your needs. It does some very simple things:
The module depends on following modules:
...and uses Colorbox library.
Drupal version: 7.x
Sandbox URL: http://drupal.org/sandbox/d.novikov/1940872
Git link: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/d.novikov/1940872.git popupad
Comments
Comment #1
Seppe Magiels commentedAutomated review
The automated review revealed several issues, please fix these issues.
Manual review
I took a glance at the code and noticed two things:
1) The hook below isn't defined anyware. And preferably these definitions should be placed in an .api.php file.
2) The classes in the .module file should be placed in seperate files. (http://drupal.org/node/608152)
That's all for now, once the errors indicated by the automated review are resolved I will check the code more deeply.
Greetings!
Comment #2
d.novikov commentedThank you very much, Seppe.
I fixed automated review errors except of some "Line exceeds 80 characters" warnings, and added popupad.api.php file with hooks description.
Also I removed the master branch.
Comment #3
PA robot commentedWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and put yourself on the PAReview: review bonus high priority list. Then I'll take a look at your project right away :-)
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
tinker commented@d.novikov, Tried the module but it did not do anything.
- Downloaded module from git
- Enabled module
- Had Libraries 2.x + already
- Downloaded ColorBox using 'drush colorbox-plugin' which installed 'colorbox' folder into sites/all/libraries
- Configure PopupAd module to Random, delay 1000ms, cookie lifetime 7, rest default
- Created 2 popup entities.
Browsed various non-admin pages and nothing happened. Logged out and tried again.
Do not see popupad.js in source code
Looked at the code format and everything looks good. Good structure, hooks. doc tags.
As reported previously you should truncate the 80 char + lines in the README.txt. I think the CamelCase class names are OK since EntityAPI uses them.
BTW using
Drupal 7.21
Libraries 7.x-2.1
Tried latest Colorbox and 1.x version https://github.com/jackmoore/colorbox/archive/1.x.zip
Comment #5
d.novikov commented@tinker,
Have you tried to check for the "popupad_time" cookie in the browser? It could be set earlier for some reasons, before you installed colorbox library or something. This cookie stops popup from displaying to the same user multiple times. After cookie expiration period a popup will be displayed once again, but you can manually remove the cookie and see what happens.
Comment #6
d.novikov commentedComment #7
tinker commented@d.novikov, Yep that was it. Cookie had been set before Colorbox was installed. I think that identifies an issue.
Comment #8
d.novikov commented@tinker, I finally found time to add fixes according to your comments.
Thank you for all your help. All recent changes are pushed to the repo.
Comment #9
tinker commented@d.novikov I will be busy for the next 5 days so will not be able to review until end of next week. Good going on the changes and I look forward to testing them out.
Comment #10
pagolo commentedI apologize, but if I try to clone your module, I'm asked for a password...
Can you help me?
Thanks in advance
Paolo
Comment #11
d.novikov commented@pagolo, it happens because you need to setup your Drupal git account first. Possibly these tutorials can help: http://drupal.org/node/1047190, http://drupal.org/node/1027094. Also try to use your own username, not mine (d.novikov).
Comment #12
tinker commented@pagolo use the public link:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/d.novikov/1940872.git popup_advertisements@d.novikov perhaps you should update the git link in #1.
Comment #13
d.novikov commentedThank you, I've updated the link.
But the module is called popupad. For better understanding I have left long project name (popup_advertisements) on Drupal.org.
Comment #14
pagolo commentedThank you!
Paolo
Comment #15
erez111 commentedHi, check
http://ventral.org/pareview/httpgitdrupalorgsandboxdnovikov1940872git
and solve all errors/warnings.
Comment #16
d.novikov commentedI fixed all warnings except of
Camel caps format is allowed by entities coding standards.
Comment #17
kscheirerPerhaps I missed something, but aside from the name and your documentation I don't see where the "Ads" part comes in. I assume that's what you're using this module to do, but it could be used for many other purposes. Consider a more descriptive name that describes what the module itself does, maybe "Popups Everywhere" or "Popup by Path".
The code seems pretty good though, thanks!
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #18
d.novikov commentedGuys, sorry for delays, I'm literally sunk into my current work.
@kscheirer,
Do you think renaming should also consider module machine name and namespace ("popupad_" to something more relevant) change, or its enough to change a human-readable name? In the first case, I also thought about the "Popup A.D." name, which is a bit exotic, but allows to preserve module machine name as is.
Comment #19
d.novikov commentedComment #20
tinker commented@d.novikov If you want to want to change the human readable module name then you should probably change the machine name if it is substantially different. Much easier and better to do this whilst in sandbox.
BTW I don't think module naming is a reason to remove RTBC status but I commend you for doing so. Good work on the module. I have left it 'Needs review' just because you set it there.
Comment #21
d.novikov commentedThank you, @tinker!
I will change then the machine name then too. Hope "popup_onload" will reflect the actual purpose better.
Comment #22
kscheirerComment #23
kscheirerWell, the code still looks decent. The name hasn't changed yet, but that's up to you.
Thanks for your contribution, d.novikov!
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.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #24.0
(not verified) commentedUpdated git link to be public.