Removing The Wrap PHP Tags Option In The WYSIWYG?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MARTYB2K
    Member
    • Jan 2005
    • 85

    Removing The Wrap PHP Tags Option In The WYSIWYG?

    How do i remove this option?

    Thx...Martin.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    The [PHP] tag already doesn't wrap its contents. For example:

    PHP Code:
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 

    Comment

    • Jake Bunce
      Senior Member
      • Dec 2000
      • 46598
      • 3.6.x

      #3
      Oh, I see what you meant. You can disable the CODE tag in your:

      Admin CP -> vBulletin Options -> BB Code Settings -> Enabled Built-in BB Codes

      Or you can remove the button from the templates by editing this template:

      Admin CP -> Styles & Templates -> Style Manager -> « » -> Editor Templates -> editor_toolbar_wysiwyg

      Find and remove this code:

      Code:
      			<if condition="$show['code_bbcode']">
      			<td><div class="imagebutton" id="cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" alt="$vbphrase[wrap_code_tags]" width="21" height="20" /></div></td>
      			</if>

      Comment

      • RobbieZ
        Senior Member
        • Jun 2008
        • 137

        #4
        Originally posted by Jake Bunce

        Or you can remove the button from the templates by editing this template:

        Admin CP -> Styles & Templates -> Style Manager -> « » -> Editor Templates -> editor_toolbar_wysiwyg

        Find and remove this code:

        Code:
                    <if condition="$show['code_bbcode']">
                    <td><div class="imagebutton" id="cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" alt="$vbphrase[wrap_code_tags]" width="21" height="20" /></div></td>
                    </if>
        Will this just remove the image? Or disable the use of the code too?

        Plus I would comment it out, but that just me
        Last edited by RobbieZ; Tue 4 May '10, 2:46pm.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...