Simple Machines Community Forum

General Community => Scripting Help => Topic started by: Jailer on October 14, 2017, 12:45:29 PM

Title: Need a little help with some custom scripting for Chevereto plugin.
Post by: Jailer on October 14, 2017, 12:45:29 PM
I have a Chevereto pic upload site integrated with my forum. It works as expected except for one thing. I can't figure out how to get the upload button to show up for a private message.

See my previous reply on another thread (https://www.simplemachines.org/community/index.php?topic=556300.msg3942730#msg3942730) on how to insert the code to get it working for an idea of what I'm talking about. This inserts a button below the quick reply and reply boxes and looks like the screenshot below. 

(https://pic.mlcnfriends.com/images/2017/09/18/quickreply.jpg)

Another option is adding it to the editor as seen below. Either way would work but I can't figure out how to do it.

(https://pic.mlcnfriends.com/images/2017/10/14/button.jpg)

Where should I be adding the code to make the either button show up for a PM?

Title: Re: Need a little help with some custom scripting for Chevereto plugin.
Post by: Dzonny on October 15, 2017, 11:35:11 AM
File that should be edited in order to add button as on your first image would be Themes/default/PersonalMessage.template.php. Find a comment:
// Send, Preview, spellcheck buttons.
And add code somewhere under that. That should do the trick although I haven't tried.
Title: Re: Need a little help with some custom scripting for Chevereto plugin.
Post by: Jailer on October 15, 2017, 12:35:41 PM
That worked, thanks Dzonny!
Title: Re: Need a little help with some custom scripting for Chevereto plugin.
Post by: crimpson on March 29, 2018, 06:16:46 PM
OMG I was just getting ready and thinking "How am I going to integrate Chevereto fully". you're awesome man. Right now Chevereto is just its own page. This will be so cool. Thanks!