Upload images to Imgur.com MyBB - Printable Version +- Come And Feel the Difference (https://www.gookil.com/x2) +-- Forum: Office (https://www.gookil.com/x2/forum-1.html) +--- Forum: Tester Area (https://www.gookil.com/x2/forum-38.html) +--- Thread: Upload images to Imgur.com MyBB (/thread-506.html) |
Upload images to Imgur.com MyBB - Terzier - 06-03-2013 1 - Take the imgur api key: https://imgur.com/register/api_anon 2 - Create imgur.php in root PHP Code: <html> 2.1 - Replace your key in the key file just created imgur.php (taken offline key above) 3 - Copy images in folder imgur.png loader.gif and images of MyBB 4 - Copy the image imgurbut.png JScripts / editor_themes / default / images / and jscripts/editor_themes/office2007/images / 5 - Open JScripts / editor.js 5.1 - Search: 3 - Copy and imgur.png loader.gif image in the images folder MyBB 4 - Copy the image imgurbut.png JScripts / editor_themes / default / images / and jscripts/editor_themes/office2007/images / 5 - Open JScripts / editor.js 5.1 - Search for: PHP Code: {type: 'button', name: 'img', sprite: 'image', insert: 'image', extra: 1, title: this.options.lang.title_image}, 5.2 - Add the following: PHP Code: {type: 'button', name: 'imgur', insert: 'imgur', image: 'imgurbut.png', title: 'Upload to Imgur'}, 5.3 - Find more: PHP Code: insertIMG: function() 5.4 - more below: PHP Code: insertImgur: function() 5.5 - Find more: PHP Code: case "image": 5.6 - Add the following: PHP Code: case "imgur": |