Disable Smilies in Posts
This modification is in the archives.
This small hack will give your users the option of disabling smilies in the user control panel. When they check the "Disable Smilies" box in their profile options, smilies in posts will no longer be parsed. (In other words, the text in colons won't be converted to images).
Create a new User Profile Field Go to your ACP --> User Profile Fields --> Add New User Profile Field Select "Multiple Selection Checkbox" Click "Continue" Fill in the following fields with this info (if it's not mentioned, leave default): Title = Disable Smilies Description = Click here to disable smilies in posts Limit Selection = 1 Boxes Per Line = 1 Options = Disable Filed Editable by user = Yes Field Hidden on Profile = Yes Field Searchable on Members List = No Show on Members List = No Which page displays this option? = Options: Thread Viewing Click "save" and take note of the field number of your new field! Next: Open /forum/includes/functions_bbcodeparse.php Find: PHP Code:
if ($dosmilies)
PHP Code:
if (($dosmilies) && $bbuserinfo['fieldXX'] == False)
Download No files for download. |