View Full Version : not case sensitive smilies
Webmasta XT
05-13-2002, 06:55 PM
can someone find out how i do this
example:
:classic: works, and
:ClAsSiC: doesnt work
Logician
05-14-2002, 07:25 AM
In admin/functions.php:
If you find:
$bbcode=str_replace(trim($smilie[smilietext]),"<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\">",$bbcode);
and replace it as:
$bbcode=str_replace(strtolower(trim($smilie[smilietext])),"<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\">",$bbcode);
$bbcode=str_replace(strtoupper(trim($smilie[smilietext])),"<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\">",$bbcode);
Then smilie text both written all lowercase or all uppercase will be converted. (Not tested but should work).
However this is still not a cure for :ClAsSiC:
Webmasta XT
05-14-2002, 08:28 AM
Thanks for the help logician
Webmasta XT
05-14-2002, 08:35 AM
Ok i tested it!, it works perfectly *thumbs up*
thank you :)
MonkYZ
02-02-2010, 03:22 AM
Hi ! Sorry for "reviving" this old thread... but does anybody know if there is some fix like this for vBulletin 3.8.x ? I can't seem to find that string anywhere. Thank you in advance !
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.