Custom BBcode on Wysiwyg Menu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stitch
    Senior Member
    • May 2004
    • 184
    • 3.0.9

    Custom BBcode on Wysiwyg Menu

    Hello All,

    Every time we add a new custom bbocode with the a new button, this button is automatically added to the wysiwyg menu. It keeps going to the right and eventually mess up the bar.

    Is there a way that we can start those addons onto a new line?

    Thanks
    Family means No One Gets Left Behind
    or.. Forgotten
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Edit this template:

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

    Find this code, remove the red code, add the blue code:

    Code:
    			<if condition="$show['php_bbcode']">
    			<td><div class="imagebutton" id="cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" alt="$vbphrase[wrap_php_tags]" width="21" height="20" /></div></td>
    			</if>
    		
    			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
    			<td><div class="imagebutton" id="cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" width="21" height="20" /></div></td>
    			[color=red]$vBeditTemplate[extrabuttons][/color]
    		
    		</tr>
    		</table>
    	</div>
    	<!-- / second control row -->
    
    	[color=blue]<if condition="$vBeditTemplate[extrabuttons]">
    	<!-- third control row -->	
    	<div class="controlholder">
    		<table cellpadding="0" cellspacing="0" border="0">
    		<tr>
    			$vBeditTemplate[extrabuttons]
    		</tr>
    		</table>
    	</div>
    	<!-- / third control row -->
    	</if>[/color]
    	
    <!-- end control bar --></div><!-- / end control bar -->
    
    	
    	
    	</td>
    </tr>
    <tr valign="top">
    	<td class="controlbar">
    That should do it.

    Comment

    • stitch
      Senior Member
      • May 2004
      • 184
      • 3.0.9

      #3
      Thanks Jake

      It works like a charm.
      Family means No One Gets Left Behind
      or.. Forgotten

      Comment

      • RedHacker7
        Senior Member
        • Jan 2009
        • 350
        • 3.8.x

        #4
        When BBCODE gone right. How to put in second line without BBCODE to right gone down. I put new BBCODES down (Second Line)

        Comment

        • RedHacker7
          Senior Member
          • Jan 2009
          • 350
          • 3.8.x

          #5
          Do you know anyone....?

          Comment

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