View Single Post
  #8  
Old 21 Jul 2014, 19:06
tbworld tbworld is offline
 
Join Date: Oct 2008
Originally Posted by aminp30 View Post
hi guys

i need to add justify bbcode, but not as a custom bbcode.
I found the code in class_bbcode.php --> line 3542. and added this code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

it works great by typing but I can't add button for it next to left align button. what should i do?

1.) In "bbcode.php" remove your 'justify' tag or rename it to 'justifyold'. This is hindering you, more then you know.

2.) Create a 'justify' bbcode using your HTML and include an icon.
- Make sure it has been added it to the CKEDITOR before proceeding. -- Yes, I know it is in the wrong position, please continue.
- Note: There is no justify icon in the sprite, thus the need to add one.

3.) In '/vb/ckeditor.php':

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Replace:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(You can also do this in the php hook "editor_toolbar_set". It is just a bit more envolved.)

4.) Create a plugin at hook "editor_custom_toolbar_loop":


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Make sure your bbcode name is correct in all locations.

Last edited by tbworld; 21 Jul 2014 at 21:18.
Reply With Quote