![]() |
Fix for smilie display problem
As many of you know, the parsing of vB smilies is rather odd and can be a huge headache when it comes to multiple codes not parsing correctly
ie: :puke: and :p as you can see, the smilies are parsed by display order so Code:
:p Code:
:puke: BEFORE ATTEMPTING THIS - MAKE BACKUP COPIES OF: /includes/adminfunctions.php /includes/functions_bbcodeparse.php Whenever you are changing files you should always have a proper backup! open /includes/adminfunctions.php and goto line 2192 you will see this line Code:
$items = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "$table ORDER BY imagecategoryid, displayorder"); Code:
if ($table == 'smilie') you will see this line Code:
SELECT smilietext, smiliepath, smilieid FROM " . TABLE_PREFIX . "smilie Code:
SELECT smilietext, smiliepath, smilieid FROM " . TABLE_PREFIX . "smilie ORDER BY LENGTH(smilietext) DESC Enjoy proper smilies ! :D Let me know how it works for ya! :D |
that's great work although theirs a mistake
PHP Code:
PHP Code:
|
will this also fix the :lol:) problem?
|
Very usefull. Thanks!
|
fixed this in the original post. I don't know how the | got in there as I copied it directly from my code ? weird. Oh well, fixed now :D
Quote:
|
Quote:
(:lol:) displays perfectly fine on my forum :) |
Can you please post this in a text file also for easier downloading and saving? ;)
|
Sure thing. i'll post one up tommorow :)
|
thanks, i was wondering when Iw as going to find some time to clean this mess up LOL and youve saved me the trouble!
*clicks install* |
Fantastic! :) Tnx.
|
All times are GMT. The time now is 08:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|