Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2014, 11:17 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I disable smilies in text by default?

vBulletin 4.2.2

Where do I change the setting for "Disable smilies in text" which is unchecked by default when creating/replying to a post? (Additional Options | Miscellaneous Options I'd prefer that it was enabled by default.

When you start or reply, scroll down and there are three Additional Options:

Show your signature
If enabled, your signature will be displayed below the message.

Automatically parse links in text
Will turn www.example.com into http://www.example.com.

Disable smilies in text
If selected, will not be replaced with

The first two are checked (enabled) by default. The third, 'Disable smilies in text' is unchecked by default. This is what I want to change. The Posting Phrases Containing 'Disable smilies in text' is disable_smilies_in_text. The template this phrase is in is newpost_disablesmiliesoption:
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'd assume that value="1" needs to be changed, and I tried that (to "0"), but it didn't have any effect. When I looked at the two other options, both contained the same value="1" as does this option, and those two are checked by default. The code to set this has to be somewhere.
Reply With Quote
  #2  
Old 09-08-2014, 03:01 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know what that value of "1" does. The way you set a checkbox to checked by default is with checked="checked"

Code:
<input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" tabindex="1" checked="checked">

Actually I think checked ="duckies_and_bunnies" will work too. Any value at all sets it to true
Reply With Quote
  #3  
Old 09-08-2014, 05:32 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The default value of 1 is what is sent to the underlying php code if the box is checked. In a binary/boolean sense: yes/no, 0/1, checked/unchecked.
Reply With Quote
  #4  
Old 09-11-2014, 03:49 AM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the section of code from the newthread template that I assume causes the check boxes to be checked by default for "Show your signature" and "Automatically parse links in text", and causes the check box for "Disable smilies in text" to be unchecked by default:
Code:
			<vb:if condition="$show['misc_options']">
			<div class="blockrow">
				<label>{vb:rawphrase miscellaneous_options}:</label>
				<ul class="checkradio group rightcol">
					<vb:if condition="$show['signaturecheckbox']">
					<li>
						<label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" {vb:raw checked.signature} /> {vb:rawphrase show_your_signature}</label><p class="description">{vb:rawphrase show_your_signature_explain}</p>
					</li>
					</vb:if>
					<vb:if condition="$show['parseurl']">
					<li>
						<label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" {vb:raw checked.parseurl} /> {vb:rawphrase automatically_parse_links_in_text}</label><p class="description">{vb:rawphrase automatically_parse_links_description}</p>
					</li>
					</vb:if>
					{vb:raw disablesmiliesoption}
				</ul>
			</div>
			</vb:if>
My assumption is that much is missing from {vb:raw disablesmiliesoption}, but I don't know what the label, input type name, and id are for disablesmiliesoption.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 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.03669 seconds
  • Memory Usage 2,188KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete