PDA

View Full Version : [SOLVED] Disable Smilies in Text


Snowhog
05-13-2016, 06:24 PM
When composing a new, or editing an existing post, clicking Go Advanced gives you the option under Additional Options | Miscellaneous Options: to check (enable) Disable smilies in text. By default, this option is unchecked (disabled). I want to change it so all posts, new or being edited, have this option checked (enabled) by default. I haven't found where in vBulletin this is controlled. Would appreciate some directions.

Thank you.

https://vborg.vbsupport.ru/external/2016/05/20.png

Lynne
05-13-2016, 06:57 PM
Have you tried editing the newpost_disablesmiliesoption template and adding - checked="checked" - into the <input> tag?

Snowhog
05-13-2016, 07:12 PM
This is the content of newpost_disablesmiliesoption template:
<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>
I've tried changing this template before, changing name="disablesmilies" value="1" to value="0", but it didn't change anything.

MarkFL
05-13-2016, 09:11 PM
This is the content of newpost_disablesmiliesoption template:
<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>
I've tried changing this template before, changing name="disablesmilies" value="1" to value="0", but it didn't change anything.

As Lynne mentioned, it is the "checked" attribute of the input element you want to change. Looking at the code you posted, I would say try replacing:

{vb:raw checked.disablesmilies}

with:

checked="checked"

Snowhog
05-13-2016, 10:44 PM
Thank you for the clarification MarkFL. That did it.

And thank you too Lynne.

Snowhog
07-26-2016, 09:50 PM
<u>Update</u>:
Okay, the information provided by MarkFL in post #4 does result in the Disable smilies text check box being checked, but, it doesn't prevent smilies from being included in posts; I have to uncheck/re-check it for that to occur. So, it's no different than the default setting where the checkbox is unchecked, and to prevent smiles in a post, you have to check it.

So, really, what I want still isn't obtained, and this issue really isn't SOLVED after all. Any other ideas/suggestions?

MarkFL
07-26-2016, 11:17 PM
Update:
Okay, the information provided by MarkFL in post #4 does result in the Disable smilies text check box being checked, but, it doesn't prevent smilies from being included in posts; I have to uncheck/re-check it for that to occur. So, it's no different than the default setting where the checkbox is unchecked, and to prevent smiles in a post, you have to check it.

So, really, what I want still isn't obtained, and this issue really isn't SOLVED after all. Any other ideas/suggestions?

I just tried the change I suggested in post #4, and it worked for me. Can you post your edited template in full?

Snowhog
07-27-2016, 12:11 AM
I'll post the full template later this evening. Thank you,

--------------- Added 1469648961 at 1469648961 ---------------

Here is the newpost_disablesmiliesoption template.
<li>
<label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" {vb:raw checked="checked"} tabindex="1" /> {vb:rawphrase disable_smilies_in_text}</label><p class="description">{vb:rawphrase disable_smilies_in_text_explain}</p>
</li>

Snowhog
07-31-2016, 04:00 PM
Here is the newpost_disablesmiliesoption template.
<li>
<label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" {vb:raw checked="checked"} tabindex="1" /> {vb:rawphrase disable_smilies_in_text}</label><p class="description">{vb:rawphrase disable_smilies_in_text_explain}</p>
</li>

MarkFL
07-31-2016, 04:08 PM
Here is the newpost_disablesmiliesoption template.
<li>
<label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" {vb:raw checked="checked"} tabindex="1" /> {vb:rawphrase disable_smilies_in_text}</label><p class="description">{vb:rawphrase disable_smilies_in_text_explain}</p>
</li>

Sorry I didn't see your updated post...unfortunately when a post is updated like that, it doesn't cause the post to become unread. Anyway, try changing the template to:

<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>

Snowhog
07-31-2016, 04:58 PM
Yeah, I figured that out, and posted a 'real' reply today.

Okay, I made the change to the template, cleared the system cache, and tested by creating a new post. This is what I typed in the new post Your Message window:
Smilies that shouldn't get displayed as such in this post:

:) ;) :p

Clicking on Preview Post these get displayed as smilies in the Your Message window, but are not converted to graphical smilies in the Preview window. I can live with that, unless you know why that occurs and how to prevent that as well.

MarkFL
07-31-2016, 05:28 PM
That seems to be an intrinsic behavior of the WYSIWYG editor. At present, I don't know how to disable it from parsing smilies on preview. :)

Snowhog
07-31-2016, 05:38 PM
I sorta figured that might be so, and as I stated, I can accept, and am happy with, the results with the change you had me make.

Again, thank you!