Upload images to Imgur from Mybb

Discussion in 'Products & Tools' started by DeepWebUser, Dec 8, 2013.

  1. #1
    Note since ver 3 of api the old tutorial won't work anymore

    1 Create your own API on

    api.imgur.com/oauth2/addclient

    2 Upload the files in the root of your MyBB forum

    3 Open jscripts / editor.js and find:

    4

    
    {type: 'button', name: 'img', sprite: 'image', insert: 'image', extra: 1, title: this.options.lang.title_image},
    
    PHP:
    5 Add after

    
    {type: 'button', name: 'imgur', insert: 'imgur', image: 'imgurbut.png', title: 'Upload to Imgur'}, 
    
    PHP:
    6 Find

    This step you will find inside the archive as the site won't permit that php code

    7 Add after

    
    insertImgur: function()    {        MyBB.popupWindow('imgur.php', 'imgur', 240, 200);    }, 
    
    PHP:
    8 Find

    
    case "image":                this.insertIMG();                break; 
    
    PHP:
    Add after

    
    case "imgur":                this.insertImgur();                break; 
    
    PHP:

    Download the atached files and upload them on root


    Don't forget to add your Client ID key on imgur.php on line 43


    Download from here

    https://copy.com/HBbKWP4WPHBU
     

    Attached Files:

    DeepWebUser, Dec 8, 2013 IP