vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   Adding New Buttons to the Editor Toolbar (https://vborg.vbsupport.ru/showthread.php?t=97295)

ArchAngelz 06-19-2010 02:25 AM

Any update of this for vb4?

RobDog888 07-31-2010 05:13 PM

Im looking to add my bbcode button to the quick reply and quick edit but nothing found yet.

jackaninny 04-17-2011 09:13 PM

Love to see this updated for VB4

VBIran 07-29-2011 12:15 AM

Update this to vbulletin 4..

Ludens 08-25-2011 08:58 AM

Create a BBCODE and name it "justify"


Templates to edit: editor_toolbar_on

look for:
Code:

<vb:if condition="$stylevar['textdirection'] == 'ltr'">

there you will have:
Code:

<img src="{vb:stylevar imgdir_editor}/justifyleft.png" class="imagebutton" id="{vb:raw editorid}_cmd_justifyleft" width="20" height="20" alt="{vb:rawphrase align_left}" />

<img src="{vb:stylevar imgdir_editor}/justifycenter.png" class="imagebutton" id="{vb:raw editorid}_cmd_justifycenter" width="20" height="20" alt="{vb:rawphrase align_center}" />

<img src="{vb:stylevar imgdir_editor}/justifyright.png" class="imagebutton" id="{vb:raw editorid}_cmd_justifyright" width="20" height="20" alt="{vb:rawphrase align_right}" />

just add this behind:
Code:

<img src="{vb:stylevar imgdir_editor}/justify.png" class="imagebutton" id="{vb:raw editorid}_cmd_wrap0_justify" width="20" height="20" alt="Wrap [JUSTIFY] tags around selected text" />
repeat step for "else" part of the same "if" condition


just note that name of BBCODE and id of an image are same id="{vb:raw editorid}_cmd_wrap0_justify

fly 08-28-2011 06:42 PM

^That template isn't available on 4.15^

Assuming you were posting that as a solution for vB4...

emperatour 10-02-2011 04:19 PM

It appears like the new editor no longer uses "editor_toolbar_on" template.... :(

cowcowcow 11-24-2011 08:01 AM

Using VB3.8

Ive got 20 extra bbcode buttons and the layout just extends horizontally forever, anyone know where to put a linebreak between? Where exactly would i put it?

Alternatively i could center my interface if i knew how to

https://vborg.vbsupport.ru/[/URL] Uploaded with ImageShack.us[/IMG]

thanks!

bigs15 02-17-2013 02:49 AM

Having error after editing the template

Code:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in
/includes/adminfunctions_template.php(3941) : eval()'d code on line 154


Digital Jedi 02-17-2013 05:34 PM

Quote:

Originally Posted by cowcowcow (Post 2271432)
Using VB3.8

Ive got 20 extra bbcode buttons and the layout just extends horizontally forever, anyone know where to put a linebreak between? Where exactly would i put it?

Alternatively i could center my interface if i knew how to

[IMG]http://img841.imageshack.us/img841/8752/editorhelp.png Uploaded with ImageShack.us[/IMG]

thanks!

You're adding cells to a table when adding them to the editor. So what you need to do is start a new table row, rather than a line break.

HTML Code:

<table>
                <!-- TR starts a new table row -->
      <tr>
            <td>Table Cell Contents</td>
            <td>Table Cell Contents</td>
      </tr>
                <!-- TR starts a new table row -->
      <tr>
            <td>Table Cell Contents</td>
            <td>Table Cell Contents</td>
      </tr>
</table>

There need to be an equal number of table cells on each row, or your table will be lopsided. Even if the cells are empty, just a <td></td> will work.

Also, looks to me like you or a modification have made additional edits to your editor template. So you would need to make certain the HTML is correct here before attempting to try and center anything.


Quote:

Originally Posted by bigs15 (Post 2404719)
Having error after editing the template

Code:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in
/includes/adminfunctions_template.php(3941) : eval()'d code on line 154


You're code is constructed improperly. You've left out something like a ] that PHP was expecting to be there. You need to double check your work closely, or revert the template and start over all the custom edits from scratch.


All times are GMT. The time now is 07:49 AM.

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.02120 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete