Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Feature request: Image Upload button on Edit Post form

This discussion is related to the ImageUpload addon.

When you edit a comment, it doesn't get the image upload button. This would be very helpful!

Comments

  • and in private message form too

  • chuck911 hasn't been online here for a few months, so reporting it on github would make more sense:
    https://github.com/vanilla-china/ImageUpload

    However, the last time I tried to add these features to the plugin myself, Vanilla 2.1 was missing the Hooks to do it cleanly.

    My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations

    • Vanilla APP » Learn more «
    • iOS & Android App for Vanilla - White label app for your forum
  • ProsperProsper ✭✭
    edited November 2014

    I am interested on this "ImageUpload" plugin feature too.

  • My rather suboptimal solution to this:

    Change line 31 of class.imageupload.plugin.php to:

        if(!in_array(get_class($Sender), array('PostController','DiscussionController', 'MessagesController')))
    

    add these hooks:

    public function MessagesController_BeforeMessageAdd_Handler($Sender){
        echo $Sender->FetchView($this->GetView('upload_button.php'));
    }
    
    public function MessagesController_BeforeMessageForm_Handler($Sender){
        echo $Sender->FetchView($this->GetView('upload_button.php'));
    }
    

    and to imageupload.js

    $('#Form_Body').before($('.ImageUploadWrapper').detach());
    

    My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations

    • Vanilla APP » Learn more «
    • iOS & Android App for Vanilla - White label app for your forum
    peregrine
Sign In or Register to comment.