Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Execute query on setting change
#1
Not Solved
Hi,

For some reason I wonder if I am able to execute another query when a setting in a plugin I'm creating has been changed, or at least if the form is submitted.

Is this possible without adding another hook or anything?

Thanks in advance.
#2
Not Solved
This user has been denied support. This user has been denied support.
You need to add some hook in Settings page (if it exists, dont know)

Then check it with this condition:

if($mybb->request_method == post && isset($mybb->input['submit']))
{ //DO UPDATE QUERY }

and also, I am not sure if settings button name is SUBMIT. Smile
#3
Not Solved
This user has been denied support. This user has been denied support.
There is a hook 'admin_config_settings_change_commit'. Google SEO uses it to kill its URL cache when someone changes URL settings.
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)