- Joined
- Jun 8, 2013
- Messages
- 888
Found this in wcf\lib\system\bbcode\messageparser.php
Code:/** * Parses smiley codes. * * @param string $text * @return string text */ protected function parseSmilies($text, $enableHtml = false) { foreach ($this->smilies as $code => $html) { //$text = preg_replace('~(?<!&\w{2}|&\w{3}|&\w{4}|&\w{5}|&\w{6}|&#\d{2}|&#\d{3}|&#\d{4}|&#\d{5})'.preg_quote((!$enableHtml ? StringUtil::encodeHTML($code) : $code), '~').'(?![^<]*>)~', $html, $text); $text = preg_replace('~(?<=^|\s|<li>)'.preg_quote((!$enableHtml ? StringUtil::encodeHTML($code) : $code), '~').'(?=$|\s|</li>'.(!$enableHtml ? '|<br />' : '').')~', $html, $text); } return $text; }
Is this the piece of code that makes smilies parse? I'm just trying to understand how it works.
You cant just edit code with Woltlab like you do vbulletin.
You need to learn how to make a plugin or find someone who has done it already or willing to do it for you.
With the bot, you use it for a lot of things but I use it to replace the welcome message and PM that was available in vBulletin when you first register.