Niko
  • Administrator

      Reputation : 317
      Registered on : 2012-02-22
      Posts : 2366
      School of codes courses: coming soon
    Replacing Servimg with Photobucket for image uploads


     

    Description

    With this tutorial you will be able to add a button in your editor to upload images with photobucket

    Note: You must create an account on PhotoBucket


    Demo



    Code

    You have to reply to this topic to see the code (avoid Flood)


    General Informations

    Code creator: Ange Tuteur
    Code tested on:  Recent browsers -  All forum versions
    Checked by: Niko
    Extra infos: There are some settings at the top which let you customize it :
    Code:
       var settings = {
            image : 'http://i56.servimg.com/u/f56/18/21/60/73/icon10.png', // button image
            upload : 'http://photobucket.com/upload', // i-frame upload url
            height : '250px', // i-frame height
            width : '500px' // i-frame width
        };

    They're marked with comments so they should be self explanatory, just make sure that your content is always between the single quotes to prevent bugs.

    Ooh if you want to hide the old upload button, just add this to your Stylesheet :
    Code:
    .sceditor-button-servimg { display:none !important; }

    Codes last updated on 1st June 2014 by Niko

    DooGy00
    • ****


        Reputation : 1
        Registered on : 2013-07-29
        Posts : 56
      thnks dude

      Kané Dendou
      • **


          Reputation : 0
          Registered on : 2014-10-13
          Posts : 19
          Love Fmcodes
        Okay. Sure.

        Alex Sasan
        • ****


            Reputation : 1
            Registered on : 2014-10-28
            Posts : 56
            Love Fmcodes
          thanks

          Hidebody
          • **


              Reputation : 0
              Registered on : 2015-05-02
              Posts : 10
              Love Fmcodes
            That Good Upload I Want try it thx ^^

            shady010
            • **


                Reputation : 0
                Registered on : 2015-06-12
                Posts : 23
                Love Fmcodes
              thanks bro

              Tester
              • I'm a new member :)


                  Reputation : 0
                  Registered on : 2015-07-19
                  Posts : 7
                  Love Fmcodes
                nice one

                error404
                • ***


                    Reputation : 0
                    Registered on : 2014-03-02
                    Posts : 35
                    great!
                  want to try