BBCode::Internal_RebuildSmileys()
Description
Source
File: bp-forums/admin/parser.php
1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 | function Internal_RebuildSmileys() { $regex = Array( "/(?<![\\w])(" ); $first = true; foreach ( $this ->smileys as $code => $filename ) { if (! $first ) $regex [] = "|" ; $regex [] = preg_quote( "$code" , '/' ); $first = false; } $regex [] = ")(?![\\w])/" ; $this ->smiley_regex = implode( "" , $regex ); } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.