Пожелания дополнений Event List
Добавлено: 18 окт 2014, 16:28
Код посмотреть можно?
phpBB Guru's phpBB 4.0-dev test board
https://anderson.phpbbguru.net/
Код: Выделить всё
if ($this->message_status == 'plain')
Код: Выделить всё
/**
* Event to modify the text after it is parsed
*
* @event core.modify_format_display_text_before
* @var string message The message text to parse
* @var bool allow_bbcode Do we allow bbcodes
* @var bool allow_magic_url Do we allow magic urls
* @var bool allow_smilies Do we allow smilies
* @var bool update_this_message Do we update the internal message
* with the parsed result
* @since 3.1.0-RC6
*/
$message = $this->message;
$vars = array('message', 'allow_bbcode', 'allow_magic_url', 'allow_smilies', 'update_this_message');
extract($phpbb_dispatcher->trigger_event('core.modify_format_display_text_before', compact($vars)));
$this->message = $message;
Код: Выделить всё
// Parse message
Код: Выделить всё
// Parse message
Код: Выделить всё
/**
* Event to modify the text after it is parsed
*
* @event core.modify_format_display_text_before
* @var string message The message text to parse
* @var array post_data Array with post data
* @since 3.1.0-RC6
*/
$message = $message_parser->message;
$vars = array('message', 'post_data');
extract($phpbb_dispatcher->trigger_event('core.posting_modify_parse_message_before', compact($vars)));
$message_parser->message = $message;
Код: Выделить всё
// Grab md5 'checksum' of new message
Код: Выделить всё
/**
* This event allows you to modify message text before parsing
*
* @event core.posting_modify_message_text
* @var array post_data Array with post data
* @var string mode What action to take if the form is submitted
* post|reply|quote|edit|delete|bump|smilies|popup
* @var int post_id ID of the post
* @var int topic_id ID of the topic
* @var int forum_id ID of the forum
* @var bool submit Whether or not the form has been submitted
* @var bool preview Whether or not the post is being previewed
* @var bool save Whether or not a draft is being saved
* @var bool load Whether or not a draft is being loaded
* @var bool delete Whether or not the post is being deleted
* @var bool cancel Whether or not to cancel the form (returns to
* viewtopic or viewforum depending on if the user
* is posting a new topic or editing a post)
* @var bool refresh Whether or not to retain previously submitted data
* @var object message_parser The message parser object
* @since 3.1.0-RC6
*/
$vars = array(
'post_data',
'mode',
'post_id',
'topic_id',
'forum_id',
'submit',
'preview',
'save',
'load',
'delete',
'cancel',
'refresh',
'message_parser',
);
extract($phpbb_dispatcher->trigger_event('core.posting_modify_message_text', compact($vars)));