Some Suggested Updates
-
I needed something like what your plugin does but I wanted a little more control. So, I made some updates to your code and thought you might be interested in incorporating them into your released code. I’ve copied the file to a txt file so it will be returned rather than run as PHP and you an find it here (for a little while). Let me know when you have it and I’ll remove that file.
https://www.henryhartley.com/wp-content/plugins/notification-popup/notification-popup-new.txt
The changes I made are as follows (this is listed in the file itself, as well):
- Added four options:
- bgbase => Lets the user select a black or a white fill for the background (behind the popup). Default: white
- bgtrans => Sets the opacity of bgbase. 0 is fully transparent, 1 is fully opaque. Default: 0.80
- onetime => Adds a checkbox to specify that the popup should only be shown once per session. A session cookie is created when the popup is displayed. If that cookie exists, then the popup is not shown again.
- expire => A valid date/time in this text field will cause the popup to stop showing up at the specified date/time. Might be nice to have a “start date/time” as well, but didn’t add that.
- Changed the name that appears in the WordPress Admin menu from “Notification Popup” to “Notification” (because it fits better).
- Made the textarea field for the Popup Content shorter (8 rows). Also, realigned the title for that field.
- Changed the border on the popup box to 2px, black and added a 10px radius to the corners. Also changed overflow-y to auto so that the scroll bar only shows up when needed.
If you don’t want to incorporate the changes, I completely understand. It is your plugin, after all. Just thought I’d share.
- The topic ‘Some Suggested Updates’ is closed to new replies.