inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Jul 31, 2019 14:26:13 GMT -8
Cbox Notifications v1.0.1 Live Preview A plugin that hides a Cbox behind a dialog, and shows a notification when a new message has been posted. To test that the notification is working correctly: duplicate your browser tab, open the dialog from one tab, and send a message. You should see the notification appear over the trigger button in the other tab. Installation- Download the cbox-notifications.pbp file and save it somewhere easily accessible, such as your Desktop or Downloads folder
- Go to your forum's Admin Panel
- Click on Plugins > Manage
- Click the "Import Plugin" button
- Click the "Choose Plugin File" button
- Navigate to and select the cbox-notifications.pbp file
- Once the plugin has been imported, click the "Finished" button near the bottom right of the modal dialog window
NoteRequires a unique Cbox URL. Navigate to cbox.ws, log in to your Cbox account, and under the "Publish" page, find the URL within the iframe "src" attribute. Changelogv1.0.1- Changed _buildButton to only append a CSS positioning class if the user hasn't placed the trigger button manually - Updated CSS positioning classes to work with the above - Updated try...catch argument from e to err since parent already uses e- Simplified function that appends notification
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Aug 9, 2019 9:04:56 GMT -8
Updated to v1.0.1. See Changelog in OP or on GitHub for details.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Aug 9, 2019 12:36:39 GMT -8
elli , first of all, thanks for making this editable. While I don't yet have the knowledge to understand much of what you're doing in the components, I learn a bit here and there just by examining these things. You can observe a lot by watching. -- Yogi Berra I don't use the shoutbox or a chatbox on my home forum, because they tend to clutter. This seems like a good way to have the benefits without the clutter. The trigger button is stationary in the viewport even when the page is scrolled, that's a good thing. The popup is glued to the page so it moves as the page is scrolled. Imo, that's not such a good thing. Until the popup is dismissed, all other links on the page are inoperative. Alone, that's not too much of a problem. But if the popup is triggered, then the user scrolls up or down the page such that the popup is off the screen, they must scroll back so the x is visible. Only then can they navigate away. If the popup was stationary in the viewport, this would not be a problem. And/or the trigger could be made to toggle the popup in an on/off fashion rather than on-only.
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Aug 9, 2019 14:44:14 GMT -8
The trigger button is stationary in the viewport even when the page is scrolled, that's a good thing. The popup is glued to the page so it moves as the page is scrolled. Imo, that's not such a good thing. Until the popup is dismissed, all other links on the page are inoperative. Alone, that's not too much of a problem. But if the popup is triggered, then the user scrolls up or down the page such that the popup is off the screen, they must scroll back so the x is visible. Only then can they navigate away. If the popup was stationary in the viewport, this would not be a problem. And/or the trigger could be made to toggle the popup in an on/off fashion rather than on-only. The positioning of the dialog is default ProBoards behavior (try triggering any of the others, like "Add Attachment"). The difference is that I've enabled the modal option, which creates a darkened overlay behind the dialog that prevents users from interacting with the rest of the page. This is a personal preference for important dialogs because it keeps that content in focus. I've considered making this an optional setting, but since this plugin is unique in that it creates a notification when a new message has been posted, the user should just close the dialog when they're done reading. Instead, I'll probably disable scrolling on the page to keep the dialog in view as long as it's open.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Aug 10, 2019 0:51:12 GMT -8
You could also make the dialog fixed by adding the following to the CSS component of the plugin (overrides the default position:absolute; for this particular dialog)
.ui-dialog[aria-labelledby="ui-dialog-title-js-cbox-notifications-dialog"] { position: fixed; }
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Aug 10, 2019 9:23:08 GMT -8
Chris Yeah, I'll change positioning if I disable scrolling. I haven't come to a conclusion yet. Either make the plugin less opinionated and turn off the modal, or go all the way. Dialogs are... not great. And not just these jQuery UI/ProBoards dialogs — I mean the concept itself. They're ugly on small screens, they're very difficult to make accessible to screen readers, and if they aren't handled correctly, they're bad UX. In my day job (UI dev), we spent months building a good, accessible dialog component. And even now, we have specific restrictions on how it should be used (confirmations only). Basically, if I PR'd this plugin at work, it would be wholly rejected. But these are forums and the plugin was for fun and practice so ¯\_(ツ)_/¯ What do you guys think? More opinionated with scrolling disabled and fixed position? Or less opinionated with no modal?
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Aug 10, 2019 10:17:25 GMT -8
I think the most important part is not being able to swim away from the hole in the ice. Fixed position and/or disabling scrolling will get you there. modal, true or false seems a matter of preference. One thing I noticed when I went to responsive design mode on my browser and selecting a narrow screen (iPhone) and Desktop mode, is the right side of the dialog is completely off the screen. Adding max-width:90%; to the CSS addition Chris suggested took care of that. I reckon it would be more intuitive if you used modal:true; and disabled scrolling.
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Dec 11, 2019 9:06:32 GMT -8
How i can make an account, you made that nesecessary to make the plugin enable elli
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Dec 11, 2019 9:15:39 GMT -8
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Dec 11, 2019 9:19:14 GMT -8
Thank You. I'll tell you if i got some troubles.
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Dec 11, 2019 9:51:52 GMT -8
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Dec 11, 2019 12:32:19 GMT -8
CrazyBoy Instructions are in the original post, as well as in the plugin setup. Requires a unique Cbox URL. Navigate to cbox.ws, log in to your Cbox account, and under the "Publish" page, find the URL within the iframe "src" attribute.
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Dec 12, 2019 2:38:58 GMT -8
elli when i use the second URL it does work as well, but with the first which is like the example it'll show an error family-house.proboards.com/
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Dec 12, 2019 2:44:14 GMT -8
elli,it worked, i wrote the boxtag wrong I wrote t The true is r
|
|
inherit
195082
0
Mar 20, 2022 7:33:21 GMT -8
PF
1,089
June 2013
weedster
|
Post by PF on Mar 17, 2021 17:03:32 GMT -8
Hi elli, Is there a way to make the button inaccessible to guests or after members log out of the forum?
|
|