Hi,
I found a simple yet effective plugin that adds the ability to actually upload and insert images into "letters". The default function now is only embedding from an external URL.
What do you need? Dolphin 7.1 & JustBoil.me Images which you can download from http://justboil.me/
The instructions are simple, just extract the zip file and upload the jbimages folder to your boonex installation of Tiny_MCE:
plugins/tiny_mce/plugins
Decide where you want to store all the uploaded images, make the directory in your dolphin installation (I chose jbimages off the root of my install) and then edit and set your options in:
plugins/tiny_mce/plugins/jbimages/config.php
While you're in there, adjust any of the other options you want, they're described quite clearly.
After creating the folder I created an .htaccess file with the following in it so no one can browse the images:
Options -Indexes<FilesMatch "^.*.php|.*.php5$">ForceType application/x-httpd-php-source</FilesMatch>
Now, you just need to tell Dolphin you have a new plugin as well as button. This is done when Dolphine calls the tinyMCE.init function. To add the new plugin edit:
templates/base/scripts/BxBaseEditorTinyMCE.php
Look for this:
protected static $CONF_STANDARD = " plugins: 'autolink,lists,inlinepopups,jbimages,media,paste,fullscreen', width: '100%', height: '270', theme: 'advanced', theme_advanced_buttons1: 'bold,italic,underline,removeformat,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,|,undo,redo,|,blockquote,formatselect', theme_advanced_buttons2: 'hr,link,unlink,jbimages,media,|,fullscreen,cleanup,pastetext,code', theme_advanced_buttons3: '',
And this:
protected static $CONF_FULL = " plugins: 'autolink,lists,table,inlinepopups,jbimages,media,searchreplace,print,paste,fullscreen', width: '100%', height: '320', theme: 'advanced', theme_advanced_buttons1: 'bold,italic,underline,removeformat,|,sub,sup,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,undo,redo,|,outdent,indent,blockquote,formatselect,|,hr,link,unlink,jbimages,media', theme_advanced_buttons2: 'anchor,|,tablecontrols,|,visualaid,|,search,replace,|,print,|,fullscreen,cleanup,pastetext,code',
You'll probably already see "image" in there, I changed that to "jbimages" because I don't want to use the image embed but if you want both, just add in the jbimages plugin name just as the others are.
Clear your Dolphin & Browser caches and you should see the new button.
The default plugin has a link back to the author (in the upload dialog box) , but flip the dude a donation and you can remove the link, as I have.
Thanks to everyone who helps out around here!