Question about settings field of plugin
#1
Possible create field setting reserved to plugin?
Explain better, setting of plugin that user can't edit, only script of plugin.
Has several optionscode (text, yesno, radio etc) but not has something like hide.
How made what i trying made?
Reply
#2
Well, I don't really understand your need.
If a setting hasn't to be edited, you can just use a variable in the plugin.
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#3
(2015-06-01, 10:39 AM)Crazycat Wrote: Well, I don't really understand your need.
If a setting hasn't to be edited, you can just use a variable in the plugin.

i need store token information from node server.
i want store this information in settings of plugin but i don't want that user edit this field in ACP settings. Read Only or hide.
Reply
#4
How will you get (and store) this information ? And when ?
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#5
(2015-06-01, 01:13 PM)Crazycat Wrote: How will you get (and store) this information ? And when ?

using curl and will store in database. in registration in shoutbox, and when some one post new post and new thread. I trying avoid server need get token every event,
Reply
#6
You'll need to put it in a new table. Default settings aren't meant to be hidden.
Reply
#7
If it's a single setting, you can write (and overwrite) in a file (in cache directory ?)
You can get the content each time with file_get_contents and (over)write it with file_put_contents
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#8
Or, if you don't mind the possibility of it disappearing, just stick it in the cache itself.
Reply
#9
thanks... i will try cache...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)