I think I just found a bug because of the way we have this set up now.
Many of my users always use a default color in there posts.
So for many the user tagging is not working because it does not recognise there name, most likely because it is reading the bbcode that is being added. so it thinks:
@username
I am guessing the system thinks the username is: @username[/COLOR]
So I suppose a work around is for the system to look for multiple different types of characters that are regarded as okay to close the name off. eg. [
I see you have this planned for the next update, so having it in the admincp with something like this:
Opening tag character (put a space between each one): @ # !
Closing tag character (put a space between each one): ; : [ ,
Tick the box if you would like a space to be included as a closing tag (read the warning here first). []
But is there any quick fix for myself? Would it be something like this?
PHP:
$find_start = '@';
$find_end = ' ', '[';
and
PHP:
$message = preg_replace('/\[\/MENTION\]/i', ' ', '[', $message);
and
PHP:
no idea with this one lol
or am I way off
Edit: I found another problem with having the space feature. People are entering instead of spacing -.- so I need the system to now also recognise the enter
![Big grin :D :D](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f600.png)