This module provides a simple popup block like that of sumo.me.
Sometimes we need to display popup blocks that interacts with the user.
Example, Get a Quote, Newsletter subscription forms. Using this module,
the user can and their webforms to a block which is a popup and style it as well.
After this, the user can specify when to display the popup to the user.
Example, 5 seconds after the user is on the page, when the user scrolls to 50% of the page, and so on.
The user can also add custom styles to the block.
Working demo
https://abh.ai/blog/new-drupal-89-module-dopup
Project link
https://www.drupal.org/project/dopup
Git instructions
git clone --branch 1.0.x https://git.drupalcode.org/project/dopup.git
Comments
Comment #5
avpadernoThank you for applying! Remember to change status as, in this issue queue, the Active status means the project is not yet ready to be reviewed.
I am crediting the users who participated in the previous application.
Comment #6
avpadernoComment #7
abh.ai commentedComment #8
abh.ai commented@kiamlaluno, I have changed to needs review. This version is as is. All work is done.
Comment #9
avpadernoComment #10
drupal-ramesh commentedHi
Kindly fix the below errors.
FILE: /var/www/pareviewd/pareview_temp/yxbgyjus/dopup.info.yml
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
7 | WARNING | All dependencies must be prefixed with the project name,
| | for example "drupal:"
--------------------------------------------------------------------------
Time: 109ms; Memory: 6MB
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.
FILE: ...areview_temp/yxbgyjus/src/Controller/DopupAutoCompleteController.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
63 | ERROR | Type hint "array" missing for $webform
64 | ERROR | If the line declaring an array spans longer than 80
| | characters, each element should be broken into its own line
--------------------------------------------------------------------------
FILE: ...www/pareviewd/pareview_temp/yxbgyjus/src/Plugin/Block/DopupBlock.php
--------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------
26 | ERROR | [ ] Missing short description in doc comment
31 | ERROR | [ ] Missing short description in doc comment
36 | ERROR | [ ] Missing short description in doc comment
41 | ERROR | [ ] Missing short description in doc comment
206 | ERROR | [x] Concat operator must be surrounded by a single space
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: /var/www/pareviewd/pareview_temp/yxbgyjus/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------
16 | WARNING | Line exceeds 80 characters; contains 81 characters
19 | WARNING | Line exceeds 80 characters; contains 97 characters
27 | WARNING | Line exceeds 80 characters; contains 98 characters
29 | WARNING | Line exceeds 80 characters; contains 117 characters
----------------------------------------------------------------------
FILE: /var/www/pareviewd/pareview_temp/yxbgyjus/dopup.module
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
8 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 277ms; Memory: 10MB
Comment #11
avpadernoComment #12
avpadernoI changed the issue priority as described on Review process for security advisory coverage: What to expect / Application Review Timelines.
Comment #13
avpadernoI am closing this application since there have been replies in the past 5 months.
Comment #14
abh.ai commentedRe-opening this issue.
I have addressed all the issues with the previous comments in version 1.0.4.
Module is now also compatible with Drupal 10.
Comment #15
abh.ai commentedComment #16
damienmckennaReviewing the code, the module seems to be pretty well written. While it does output a raw string in the template, that string is controlled from a settings page that has a protected permission behind it.
While I can nitpick a few things that need to be corrected (incorrect param argument in DopupAutoCompleteController::mapValueLabel(), missing comment on hook_theme, it uses jquery.cookie.js instead of core's js.cookie.min.js, update the README.md following the new guidelines), these could all be done as follow-ups in the issue queue.
Comment #17
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the Slack #contribute channel. So, come hang out and stay involved.
Thank you, 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.
I thank all the reviewers.
Comment #18
abh.ai commentedThanks DamienMcKenna. I'll jump right on the issues you mentioned in the comments.
Thank you for the resources apaderno.
<3
Comment #19
abh.ai commentedThank you everyone for this. Closing this as this is now done.
Comment #20
avpaderno