HomeHome  
  • WelcomeWelcome  
  • PublicationsPublications  
  • FAQFAQ  
  • SearchSearch  
  • MemberlistMemberlist  
  • UsergroupsUsergroups  
  • RegisterRegister  
  • Log inLog in  
  • You are not connected. Please login or register


    Replacing Servimg with Photobucket for image uploads

    avatar
    • Administrator

        Reputation : 312
        Registered on : 2012-02-22
        Posts : 2315
        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

      avatar
      • ****


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

        avatar
        • **


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

          avatar
          • ****


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

            avatar
            • **


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

              avatar
              • **


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

                avatar
                • I'm a new member :)


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

                  avatar
                  • ***


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


                    YOUR BANNER HERE
                    728x90
                    DMCA.com Protection Status
                    © PunBB | Contact | Report an abuse