I'd like to get rid of some intermediate screens (those who do the extra redirection) when editing posts. I'm a bit lost ATM and would seek some guidance. I'd like to do this changes:
Editing my message -> clicking cancel : it shows that the messages has been dismissed and a link. Here I'd like to change: remove this screen at all and directly go the my message I came from. Currently I'm thrown back to the list view of the forum where I posted
Editing my message -> saving changes : it shows that the message has been saved and redirects me to the message. I'd like to remove this screen as well and have the user directly land at this edited post
IMO there is currently no hook to do this.
They would need to be right at the end of action_post.php action_cancel.php.
Maybe you could check $PHORUM["DATA"]["OKMSG"] for a given messages (to check the action done) in start_output and do a redirect there?