Ok I tried it and it works...
In the "User profile fields" area of admin panel, I added something that looks like this:
"
Always "Disable smilies in text" Single-Selection Radio Buttons Editable, Hidden field5 "
In the "Options" box, I entered
Then the user can select this setting in the profile fields. It will be null (No) by default.
Then in both newthread.php file, find the lines that says:
if ($_REQUEST['do'] == 'newthread')
{
And add
$vbulletin->GPC['disablesmilies'] = ($vbulletin->userinfo['field5'] == 'Yes' ? 1 : 0);
just below the opening brace.
The same goes for newreply.php. Find the lines saying:
if ($_REQUEST['do'] == 'newreply')
{
And add
$vbulletin->GPC['disablesmilies'] = ($vbulletin->userinfo['field5'] == 'Yes' ? 1 : 0);
just after the opening brace again.
Note that the "field5" should be the same as is given in the Admin panel for this profile field. The number can be different, so double check that.