Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 50 users online :: 0 Registered, 0 Hidden and 50 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
FMD Shoutbox : Plugins
Page 1 of 1 • Share
This topic will be used to share plugins you've created with other members. If it gets too much to manage, a new forum will be created to share these plugins. Try to be detailed with your plugin when you post it ;
Tutorials
Installing plugins
For ease of use, I've added a "plugins" function to the config. This allows you to insert custom buttons, popups, etc.. into the shoutbox with ease. Simply copy the code you want to install and paste it inside plugins :
- What does it do ?
- Is there anything special that we should know ?
Tutorials
Installing plugins
For ease of use, I've added a "plugins" function to the config. This allows you to insert custom buttons, popups, etc.. into the shoutbox with ease. Simply copy the code you want to install and paste it inside plugins :
Upload a image into the shoutbox
ok first goto https://developers.filepicker.io/register/free and crate an account this will be used to upload the images to
after you create an account ..
click create app
name: your choice
Which Filepicker.io file SDK(s) are you planning to use? WEB
skip step 2(the logo upload step)
3rd step will give you a API Key copy it you will need it for the script below
replace
with the api key from filepicker
place it in your plugins
save/submit .. and your good to go
ok first goto https://developers.filepicker.io/register/free and crate an account this will be used to upload the images to
after you create an account ..
click create app
name: your choice
Which Filepicker.io file SDK(s) are you planning to use? WEB
skip step 2(the logo upload step)
3rd step will give you a API Key copy it you will need it for the script below
replace
- Code:
YOURAPIKEYHERE
with the api key from filepicker
- Code:
$(function(){
var script = document.createElement('script');
script.id="filepicker";
script.type="text/javascript";
script.src="//api.filepicker.io/v1/filepicker.js";
var body=$('body');
body.append(script);
$('.fmd_chat_button:last').after('<div class="fmd_chat_button" id="uploadImage" onclick="getPick();">Share Image</div>');
getPick = function(){
var textArea = $('#fmd_chat_message');
filepicker.setKey('YOURAPIKEYHERE');
filepicker.pick({
mimetypes: ['text/*','image/*','video/*'],
services:['COMPUTER','WEBCAM','VIDEO']
},function(FPFile) {
var docFile = FPFile.url;
var type= FPFile.mimetype;
var file = FPFile.url+'+'+FPFile.filename.replace(/\s/g,"");
if(/^.*text.*$/.test(type)) {
textArea.val(textArea.val()+'[url]'+file+'[/url]');
} else if(/^.*image.*$/.test(type)) {
textArea.val(textArea.val()+'[url='+file+'][img]'+file+'[/img][/url]');
}else {
textArea.val(textArea.val()+'[flash]'+file+'[/flash]');
}
$('#fmd_chat_send').click();
});
};
});
place it in your plugins
save/submit .. and your good to go
how about if i liked to use a image host service that dose not have API like my host service right now on
http://micsoft.22web.org/
any idea or a trick
and by the way
@_Twisted_Mods_
your idea is cool i might give it a test in a non forumotion site
i mean filepicker.io
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum