vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Hide smilies panel in WYSIWYG editor (https://vborg.vbsupport.ru/showthread.php?t=95330)

Biker_GA 08-30-2005 03:53 PM

Hide smilies panel in WYSIWYG editor
 
I have a LOT of members who post from work and would like the ability to turn off the smilie panel in the WYSIWYG editor as a user option.

Cyricx 08-30-2005 05:18 PM

I think you can create a new profile field, make it a single selection radio with the options being

Yes
No

write down the profile field number and then I "think" you will head to the

editor_toolbar_on template and find this code

Code:

                        <if condition="$show['wysiwygsmilies']">
                                <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                                <td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
                                                <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                                        </tr>
                                        </table>
                                </div></td>
                        </if>

and incase it in this conditional

Code:

<if condition="$bbuserinfo['fieldxx'] == Yes">

code above

</if>

changing xx to the number for the field

This is all hypothetical and I haven't tested it, so it could be MILES off from what you would need to do. But that's where I would start on trying to do it :)

Biker_GA 08-31-2005 01:17 PM

It looked good! LOL Unfortunately, it didn't. No errors, tho. But the smilie panel still shows in the WYSIWYG editor.

Cyricx 08-31-2005 05:27 PM

Hehe crap.

it's the thought that counts ;)

Will be quite awhile before I can look into this further, hopefully one of the coders with more time will fiddle it out. It should just be a new field and template edit, just a matter of finding where in the template(s) that need to be encased in the conditional.

Wayne Luke 08-31-2005 06:20 PM

Yes has to be in quotes and is case sensitive since it is a string. Also make sure to change the XX in fieldxx to the appropriate field id number.

Biker_GA 08-31-2005 08:49 PM

Code:

<if condition="$bbuserinfo['field12'] == 'Yes'">
Like that?

Adrian Schneider 08-31-2005 08:50 PM

yes sir

Biker_GA 08-31-2005 08:54 PM

:( Didn't work.


All times are GMT. The time now is 10:06 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.01035 seconds
  • Memory Usage 1,721KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete