vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   [SOLVED] Disable Smilies in Text (https://vborg.vbsupport.ru/showthread.php?t=322630)

Snowhog 05-13-2016 06:24 PM

[SOLVED] Disable Smilies in Text
 
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:
Code:

<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

Quote:

Originally Posted by Snowhog (Post 2570720)
This is the content of newpost_disablesmiliesoption template:
Code:

<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

Quote:

Originally Posted by Snowhog (Post 2574003)
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 [DATE]1469648961[/DATE] at [TIME]1469648961[/TIME] ---------------

Here is the newpost_disablesmiliesoption template.
Code:

<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.
Code:

<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

Quote:

Originally Posted by Snowhog (Post 2574173)
Here is the newpost_disablesmiliesoption template.
Code:

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

Code:

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



All times are GMT. The time now is 05:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01059 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete