http://your_board/viewtopic(forum).php?f=1&t=1
http://your_board/faq.php#(num)
http://your_board/rules/?#rule(num)
http://wiki.wikiurl.com/Main_Page
в ссылки вида
Код: Выделить всё
[url=[i]http://your_board/viewtopic(forum).php?f=1&t=1[/i]]Топик (Форум)[/url]
[url=http://your_board/faq.php#(num)]FAQ num[/url]
[url=http://your_board/rules/?#rule(num)]Правила Пункт num[/url]
[url=http://wiki.wikiurl.com/Wiki_page]Wiki page[/url]
Для работы мода требуется произвести правку файла posting.php (скоро событие будет в ядре)
Найти
Код: Выделить всё
// 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)));
https://github.com/phpbb/phpbb/pull/3043
Ссылка на репозиторий: https://github.com/HAMMER663/ConvertLocalUrlToLinkName