Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2012, 02:53 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Possible to prevent conversion to smilie

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.
Reply With Quote
  #2  
Old 09-28-2012, 04:01 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
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?
Reply With Quote
  #3  
Old 09-28-2012, 07:48 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'?
Reply With Quote
  #4  
Old 09-28-2012, 08:18 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
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:reRegister(). Maybe there's some difference in the specific smilies between versions or the ones here have been modified.


Quote:
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".
Reply With Quote
  #5  
Old 09-28-2012, 08:33 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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:
Quote:
<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?
Reply With Quote
  #6  
Old 09-28-2012, 08:34 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you do this:

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>
Then the disable smilies checkbox should always be checked.
Reply With Quote
  #7  
Old 09-28-2012, 08:58 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 09-28-2012, 09:17 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
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.
Reply With Quote
  #9  
Old 09-28-2012, 09:24 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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.
Reply With Quote
  #10  
Old 09-28-2012, 09:44 PM
Stefan118 Stefan118 is offline
 
Join Date: Dec 2010
Location: Vaassen (Netherlands)
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Snowhog
Reply

Thread Tools
Display Modes

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 07:15 PM.


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.04344 seconds
  • Memory Usage 2,261KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete