PDA

View Full Version : How to add Justify Tag



Mazinger
Fri 4th May '07, 4:10am
Screenshots:





How to do:

Add New BB Code:



Admin CP -> Custom BB Codes -> Add New BB Code -> *and use the value below*
Title: justify
Tag: justify
Replacement: <div align="justify">{param}</div>
Example: justify
Description: justifyTemplates to edit: editor_toolbar_on

Search for:


<if condition="$stylevar['textdirection'] == 'ltr'">
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>


Below Add:


<td><div class="imagebutton" id="vB_Editor_001_cmd_wrap0_Justify"><img src="images/editor/justify.gif" alt="Wrap [JUSTIFY] tags around selected text" width="21" height="20" border="0" /></div></td>







And search for:


<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>


Below add:


<td><div class="imagebutton" id="vB_Editor_001_cmd_wrap0_Justify"><img src="images/editor/justify.gif" alt="Wrap [JUSTIFY] tags around selected text" width="21" height="20" border="0" /></div></td>

Files to upload:

Upload this images to your forum/images/editor Folder.