MyBB Community Forums

Full Version: Hook to change $message value on quick edit...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well first at all, i read some messages after post.

I use the editpost_action_start hook and on full edit it works fine, but not on quick edit.

Then i read something like xhtml hooks, but none works, i read to use datahandler, but i try some hooks and the task it won't work.


Well i try to change some value on text. Because if i have:

Forum Support for example, i wan´t to change this value to another, if i do this with Full Edit, it changes the value, but on quick edit the value do not change.

Some ideas .,.,. ??
I would assume that you would use
datahandler_post_update

it takes the parameter $this you could easily print_r the value of $this to find out what is in there and therefore perform any edits that are required.

You would likely need the same for datahandler_post_update_thread

It doesnt look like it uses "$message" so you would need to find the values first.

An alternate method would be to update the data before it is displayed in the post bit.

I will do some digging in the code for quick edit and see if there are any specific plugin calls

A few other possibilities may be

editpost_do_editpost_start
editpost_start

It looks like the results of the quick edit are sent to

xmlhttp.php?action=edit_post&do=update_post&pid='+pid+"&my_post_key="+my_post_key

sooooo that means we are looking for a hook for update_post or edit_post

or even simply xmlhttp

Hope this helps

Actually it is XMLhttp the data is sent to there from the quick edit and saved via there, you should be able to use the xmlhttp hook to make any changes to the post data
thanks 4 all, i work on it Big Grin.