View Single Post
Old 2008.01.03, 10:37 PM   #4
Jonny
Senior Member
 
Jonny's Avatar
 
Join Date: Apr 2005
Location: 小平事変
Posts: 1,538
Jonny puts considerable thought into their posts
Default

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
No
Yes
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' 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' 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.
Jonny is offline   Reply With Quote