Posts: 8,510
Threads: 386
Joined: Feb 2011
Reputation:
279
2012-01-18, 05:35 PM
(This post was last modified: 2012-01-18, 05:39 PM by Paul H..)
[Wiki: MyBB_Plugin_Hooks] (Broken link, head over to docs.mybb.com instead)
admin_page_output_header might work for ya.
EDIT: Actually it probably wont....
You could try flash_message()
http://www.mybb.com/sourcedocs/nav.html?...e.html#l79
-Paul H.
Cogisne lingua latina?
Posts: 4,846
Threads: 180
Joined: May 2007
Reputation:
254
looks like you can't without a core edit to the output_header function since there are no templates to modify. since there is no plugin at the end of the output_header function to modify the header content, you can't update that way either.
the flash message will work if you hook into admin_load and then run flash_message, but it will only work when you have no other messages being entered. Its not an array of data, its only one item, so any action will update the flash_message contents overwriting your info then.
Lost interest, sold my sites, will browse here once in a while. It's been fun.
Posts: 138
Threads: 59
Joined: Jan 2012
Reputation:
0
flash_message() is for admin, what is for end user.
if i want to show message to user and want to redirect him in some page, what method will be used??
With Regards and many thanks.
------------------------------------------