FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

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

Recent Tutorials
Top posting users this month

Who is online?
In total there are 34 users online :: 0 Registered, 0 Hidden and 34 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

FMD Shoutbox : Plugins

View previous topic View next topic Go down

Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 19 Feb 2015, 17:54

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 ;

  • 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 :

FMD Shoutbox : Plugins Captu103
_Twisted_Mods_
_Twisted_Mods_

Gender : Male
Age : 37
Posts : 36
Points : 3538
Reputation : 20
Location : USA
Language : code
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
http://liquidcode.forumotion.com/

Post_Twisted_Mods_ Thu 19 Feb 2015, 19:15

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
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
Michael_vx
Michael_vx

Gender : Male
Age : 32
Posts : 302
Points : 4096
Reputation : 76
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
http://miccsoft.net https://www.facebook.com/Michaelvx2008

PostMichael_vx Fri 20 Feb 2015, 02:26

reflect 
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 Very Happy
i mean filepicker.io
_Twisted_Mods_
_Twisted_Mods_

Gender : Male
Age : 37
Posts : 36
Points : 3538
Reputation : 20
Location : USA
Language : code
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
http://liquidcode.forumotion.com/

Post_Twisted_Mods_ Fri 20 Feb 2015, 04:44

well theirs not many image uploads sites with developer tools so probably not
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum