View Full Version : Possible to prevent conversion to smilie
Snowhog
09-28-2012, 02:53 PM
How do we prevent vBulletin from converting typed text into a smilie?
When the number 8 is immediately followed by the ) symbol, it gets converted to a smilie.
Example: Version (2.00138)
In our vBulletin 4.2 forum, the above gets rendered as:
Version (2.0013:)
As is indicated here in Additional Options > Miscellaneous Options, we also have Disable smilies in text unchecked.
What do I need to look for to 'fix' this?
Thank you.
As is indicated here in Additional Options > Miscellaneous Options, we also have Disable smilies in text unchecked.
I'm not sure I follow - if you have "Disable Smilies" unchecked, then smilies are enabled and it's working as it should. Or are you looking for a way to have that box checked by default?
Snowhog
09-28-2012, 07:48 PM
Geez. Never proof your own writing!
Okay, you are correct. If I check mark Disable smilies in text, no conversion occurs.
Why then, here, in this forum, where Disable smilies in text is not checked, is there no conversion? Just a difference between this forums version (3.6.12) and our version 4.2?
I can't find anywhere in the users profile settings where this can be set by default (checked so that conversion does not occur), nor can I find a setting for it in the AdminCP. How do I enable this 'globally'?
Why then, here, in this forum, where Disable smilies in text is not checked, is there no conversion? Just a difference between this forums version (3.6.12) and our version 4.2?
I'm not sure. I know there is some smilie conversion here, like whenever I try to tell someone about the vB_Template::preRegister() function it comes out vB_Template::preRegister(). Maybe there's some difference in the specific smilies between versions or the ones here have been modified.
I can't find anywhere in the users profile settings where this can be set by default (checked so that conversion does not occur), nor can I find a setting for it in the AdminCP. How do I enable this 'globally'?
It doesn't look like there is any setting for having that checked by default. Probably the easiest thing to do would be to edit the newpost_disablesmilie template and change {vb:raw checked.disablesmilies} to checked="checked".
Snowhog
09-28-2012, 08:33 PM
Probably the easiest thing to do would be to edit the newpost_disablesmilie template and change {vb:raw checked.disablesmilies} to checked="checked".
In Search in Templates, searching for newpost_disablesmilie, I find newpost_disablesmiliesoption which has:
<li>
<label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" {vb:raw checked.disablesmilies} tabindex="1" /> {vb:rawphrase disable_smilies_in_text}</label><p class="description">{vb:rawphrase disable_smilies_in_text_explain}</p>
</li>
Exactly what would I change?
If you do this:
<li>
<label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" checked="checked" tabindex="1" /> {vb:rawphrase disable_smilies_in_text}</label><p class="description">{vb:rawphrase disable_smilies_in_text_explain}</p>
</li>
Then the disable smilies checkbox should always be checked.
Snowhog
09-28-2012, 08:58 PM
Well, that does result in the option being checked by default, but it doesn't affect the behavior here. Text is still being converted to smilies. Also, even though you can uncheck the option, it isn't remembered.
This isn't a real big deal, so i set the code back to the default. Even in this configuration, when I create a post/reply, and click on Go Advanced and check Disable smilies in text, conversion still happens.
Well, that does result in the option being checked by default, but it doesn't affect the behavior here. Text is still being converted to smilies. Also, even though you can uncheck the option, it isn't remembered.
I don't think that checkbox has any memory even with the default code.
Snowhog
09-28-2012, 09:24 PM
I don't think that checkbox has any memory even with the default code.
That makes sense, being that it's a global (template) configured setting.
Stefan118
09-28-2012, 09:44 PM
You can change the smilie code in the admincp.
ACP --> smilies --> smilie manager
search for the smilie and click view.
here you can edit the code that displays the smilie.
Snowhog
09-28-2012, 09:54 PM
You can change the smilie code in the admincp.
ACP --> smilies --> smilie manager
search for the smilie and click view.
here you can edit the code that displays the smilie.
Thank you! That is something I can work with.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.