I cannot find out how to add the the file upload to candy. I have seen it done, and I have the plugin for httpupload, but how do i get the icon on my candy installation and make if functional?
Anyone done this?
I cannot find out how to add the the file upload to candy. I have seen it done, and I have the plugin for httpupload, but how do i get the icon on my candy installation and make if functional?
Anyone done this?
I have not tried this myself yet, but if I read Dele’s post correctly, you need two plugins:
Yes I have it working by adding these lines to my index.html (as well as the supporting files):
<script type="text/javascript" src="candyshop/colors/candy.js"></script>
<link rel="stylesheet" type="text/css" href="candyshop/colors/candy.css" />
<script type="text/javascript" src="candyshop/upload/candy.js"></script>
<link rel="stylesheet" type="text/css" href="candyshop/upload/candy.css" />
And the inits:
CandyShop.Colors.init();
CandyShop.Upload.init();
I added the colors also, because, why not?
Excellent.
I just wanted to be more explicit for others trying to add this plugin to their installs…
I use Ubuntu so my instructions will be for this, for Windows, it will be much easier.
Copy the contents of this file into the one you just made.
Save the file candy.css
nano candy.js
Copy the contents of this file into the one you just made.
Save the file candy.js
cd /usr/share/openfire/plugins/candy/classes
sudo chown -R www-data:www-data candyshop
nano index.html
Add these two lines of code:
<script>
$( document ).ready( function()
{
var config = {};
$.getJSON( 'config.json', function ( config )
{
Candy.init( config.endpoint, config);
CandyShop.Upload.init();
Candy.Core.connect();
});
});
</script>