inherit
222558
0
Nov 27, 2024 0:10:05 GMT -8
Willow
This font!
835
June 2015
willowelf
|
Post by Willow on Aug 27, 2024 19:22:40 GMT -8
I am curious. Is there a way to freeze or lock the shout box? In other words to keep people from posting, but still have it show in the forum?
Thanks!
|
|
inherit
257284
0
Nov 13, 2024 10:37:51 GMT -8
Eton Bones
70
December 2018
etonbones
|
Post by Eton Bones on Aug 27, 2024 20:02:52 GMT -8
I am curious. Is there a way to freeze or lock the shout box? In other words to keep people from posting, but still have it show in the forum? Thanks!
Try adding this to your global Header <script>$(()=>proboards.shoutbox.add_shoutbox=$.noop)</script>
|
|
inherit
222558
0
Nov 27, 2024 0:10:05 GMT -8
Willow
This font!
835
June 2015
willowelf
|
Post by Willow on Aug 28, 2024 12:29:35 GMT -8
I am curious. Is there a way to freeze or lock the shout box? In other words to keep people from posting, but still have it show in the forum? Thanks!
Try adding this to your global Header <script>$(()=>proboards.shoutbox.add_shoutbox=$.noop)</script>
Thank you this does indeed work. I am wondering what would be the easier way to remark this out as I don't want to have to add/remove it every time I need to pause the shout box?
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Aug 28, 2024 12:43:11 GMT -8
Willow - I put Eton Bones 's code in a plugin. You can just enable/disable the plugin as needed. Would this work for you? Shoutbox Freeze.pbp (254 B) (P.S. Remember to remove the code from the global header if installing plugin)
|
|
inherit
257284
0
Nov 13, 2024 10:37:51 GMT -8
Eton Bones
70
December 2018
etonbones
|
Post by Eton Bones on Aug 28, 2024 12:47:15 GMT -8
You could, for example, add something at the end of add_shoutbox to render it inert.
$(()=>proboards.shoutbox.add_shoutbox1=$.noop)
The function add_shoutbox is used by the shoutbox to retrieve what was typed and send it into the cloud The code works by overwriting that function with a function that does nothing (No Operation)
You could also request a plugin that does the same thing but offers some UI interface, such as a checkbox to turn it on and off.
|
|
inherit
222558
0
Nov 27, 2024 0:10:05 GMT -8
Willow
This font!
835
June 2015
willowelf
|
Post by Willow on Aug 28, 2024 14:02:54 GMT -8
Willow - I put Eton Bones 's code in a plugin. You can just enable/disable the plugin as needed. Would this work for you? View Attachment(P.S. Remember to remove the code from the global header if installing plugin) Thank you Scott I will try this later and let you know!
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Aug 28, 2024 14:25:49 GMT -8
Willow - was giving this some more thought... Here's an updated version that hides the form input text area (and buttons) when the Shoutbox is frozen - if you want that as well. Shoutbox Freeze v11.pbp (394 B) Also to make the on/off easier, move the plugin to the top of your plugin list. Then in Admin > Settings > Forum Settings > Navigation, add a new entry for: Name: SB (or whatever you want to call it)URL: /admin/plugins/manage#manage-container-tab Edit the permission so the "who can view this button" is set to Custom. (Allows only the Admin to see the button. Or add group(s) as desired.)
This allows a simple 2-click on/off for the plugin. One to bring up the plugin list and one to enable/disable the plugin. I'm sure there's a code guru that might take on the challenge of adding a on/off checkbox, but this was simple, quick way. (BTW the plugin has an open build.)
|
|
inherit
257284
0
Nov 13, 2024 10:37:51 GMT -8
Eton Bones
70
December 2018
etonbones
|
Post by Eton Bones on Sept 2, 2024 15:50:20 GMT -8
|
|