Skip to content

Bbcode User

1 сообщение · 816 просмотров

Сообщения
casanova
To make bbcode for user profile :
in Bbcode.php search
public function notags($var = '')
and add
'[usr]' => '',
'[/usr]' => '',

and search
protected function replacements()
and add
'usr'    =>[
'from' => '#\[user=(.*?)](.*?)\[/user\]#is',
'to'   => '<a href="/profile/?user=$1">$2</a>',
				],
Чтобы ответить в теме, войдите на сайт. Авторизоваться