Please upgrade here. These earlier versions are no longer being updated and have security issues.

Modify ButtonBar to include Image Upload?

This discussion is related to the ImageUpload addon.

Any one ever modified the ButtonBar add in to include the upload image option?

Comments

  • peregrineperegrine MVP
    edited July 2014

    I believe lincoln did, at one time, but not via this plugin,

    in this link he mentions something about new editor, which may have the feature you want.

    vanillaforums.org/discussion/26518/vanillla-2-1-beta-3/p1

    as far as adding buttons to the buttonbar, this may give you some insights on how buttons can be added to buttonbar and you can adapt or modify to meet your own needs for your_ flavor_ of vanilla. The way to approach it might be different depending on your flavor.

    vanillaforums.org/discussion/25726/to-add-this-to-you-buttonbar

    vanillaforums.org/discussion/27192/tutorial-how-to-add-a-mathjax-option-to-your-buttonbar

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • peregrineperegrine MVP
    edited July 2014

    I am not sure of the reason why anyone would want to though or what value it might add, since the existing image upload plugin works perfectly adding an icon to the button bar area, and seamlessly.

    the following would require changes in both plugins.

    but yes I tried it as an experiment and it worked for me with my flavor of plugins and vanilla.
    should you desire to experiment this is what worked for me. It may or may not work for you.
    it is purely an idea on how you might experiment and go about the change. you may find a better way.

    1

    just add the info from upload_button.php

    2

    put it in a span with class="ImageUploadWrapper">
    and insert it within the div of buttonbar.php properly.

    3

    then comment out the echo $Sender->FetchView for upload_button.php in the image upload plugin and remove the float left in the css.

    that said, if the above hints work for you great. if not, perhaps someone else can provide a way, but as the 2 plugins exist today, it just requires more changes without a true added value. Since one would have added no functional difference, per se, but just swapped around the deck chairs.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.