How to construct plugin settings like this
#1
Hi.

The setting for "Board Online / Offline" has this nice function that only shows the message text field, when the offline message has been enabled.
How can I set this up for plugin settings?

Please see attachment for example images of this.


Attached Files Thumbnail(s)
       
Reply
#2
This is done with javascript in the settings module. These are called "peekers" within MyBB. See this line for the list of them within MyBB core.

Not entirely sure of the process of constructing new peekers, but there is a hook in there to allow them to be easily added into the array.
Reply
#3
(2021-02-08, 01:31 PM)Darth Apple Wrote: This is done with javascript in the settings module. These are called "peekers" within MyBB. See this line for the list of them within MyBB core.

Not entirely sure of the process of constructing new peekers, but there is a hook in there to allow them to be easily added into the array.

Thank you, I will use the hook to trigger these new peekers. Thanks man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)