[CDB] Imgur

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

[CDB] Imgur

Post by AbaddonOrmuz » Tue May 09, 2017 2:52 am

Extension Name: Imgur
Author: Alfredo Ramos (Abaddon Ormuz)
Extension Description:

Add a posting button to upload images to Imgur and automatically add the [img] BBCode to the post, private message or signature content.

Note: The same Imgur account will be used to upload all the all images.

Extension Version: 1.0.3

Requirements:
  • PHP 5.6 or greater
  • phpBB 3.2 or greater
  • Imgur API data (client_id and client_secret)
Features:
  • Upload images to your site's Imgur account.
  • Set an album to upload all the images there.
Screenshots:

(Click to see in full size)

Image Image

Image

Installation:
  • Download the latest release below
  • Decompress the *.zip, *.tar.gz or *.tar.bz2 file
  • Copy the alfredoramos directory inside {PHPBB_ROOT}/ext/
  • Go to your Administration Control Panel > Customize > Manage extensions
  • Click on Enable and confirm
Configuration:
  • Register an Imgur application at https://api.imgur.com/oauth2/addclient
  • Type an application name
  • Select OAuth 2 authorization without a callback URL
  • Type your email and a short description
  • After clicking Submit you should get a client_id and client_secret
  • Go to your Administration Control Panel > Extensions > Imgur settings
  • Set your client_id and client_secret
  • Optionally set an album ID
  • Click on Submit
  • Click on the link to authorize your Imgur application and allow the application
  • Paste the PIN
  • Click on Submit
Uninstallation:
  • Go to your Administration Control Panel > Customize > Manage extensions
  • Click on Disable and confirm
  • Go back to Manage extensions > Imgur > Delete data and confirm
Upgrade:
  • Uninstall the extension
  • Delete the imgur directory inside {PHPBB_ROOT}/alfredoramos/
  • Download the new version
  • Install the extension
Demo URL: http://mysticknight.x10.mx/viewforum.php?f=4
Demo Username: testaccount
Demo Password: 567c32387e15b531cbba0c73ba5e5c

Extension Download: zip | tar.gz | tar.bz2
GitHub Repository: AlfredoRamos/phpbb-ext-imgur
Last edited by AbaddonOrmuz on Thu Jun 01, 2017 10:10 pm, edited 9 times in total.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Imgur

Post by AbaddonOrmuz » Tue May 09, 2017 2:52 am

ChangeLog:
  • 1.0.3 - 2017-05-23
    • Avoid libraries conflict
    • Avoid variable names conflict
    • Load translations only when needed
    • Show more descriptive errors
    • Improve AJAX error handling
  • 1.0.2 - 2017-05-15
    • Fix controller
    • Fix Imgur service name
  • 1.0.1 - 2017-05-14
    • Fix route name
  • 1.0.0 - 2017-05-13
    • Add loading indicator when uploading an image
    • Add Spanish translations
  • 0.1.1-beta - 2017-05-11 [YANKED]
    • ACP improvements
  • 0.1.0-alpha - 2017-05-11 [YANKED]
    • First alpha release, for testing
Last edited by AbaddonOrmuz on Tue May 23, 2017 3:03 pm, edited 5 times in total.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8355
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: [3.2][DEV] Imgur

Post by _Vinny_ » Tue May 09, 2017 4:01 am

Great work.

AbaddonOrmuz wrote:
Tue May 09, 2017 2:52 am
GitHub Repository: AlfredoRamos/phpbb-ext-auto-lock-topics
Wrong repository.

User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][DEV] Imgur

Post by AbaddonOrmuz » Tue May 09, 2017 4:28 am

_Vinny_ wrote:
Tue May 09, 2017 4:01 am
Wrong repository.
Ops :? fixed.

Thanks 8-)
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][DEV] Imgur

Post by AbaddonOrmuz » Tue May 09, 2017 8:04 pm

Screenshots added.

EDIT* Download links and demo board added.
Last edited by AbaddonOrmuz on Fri May 12, 2017 7:51 pm, edited 1 time in total.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][BETA] Imgur

Post by AbaddonOrmuz » Thu May 11, 2017 9:19 pm

Beta version released
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Imgur

Post by AbaddonOrmuz » Sat May 13, 2017 11:57 pm

First stable version released.

It has been sent for validation.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
Daveo16
Registered User
Posts: 11
Joined: Tue Mar 07, 2017 3:01 pm
Location: United Kingdom
Name: Dave Bateman
Contact:

Re: [3.2][RC] Imgur

Post by Daveo16 » Sun May 14, 2017 2:58 pm

On a client's forum I host for him. He has added this extension, but doesn't get the 'File Upload' button in posting screen.

Any ideas?

User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Imgur

Post by AbaddonOrmuz » Sun May 14, 2017 3:04 pm

Daveo16 wrote:
Sun May 14, 2017 2:58 pm
On a client's forum I host for him. He has added this extension, but doesn't get the 'File Upload' button in posting screen.

Any ideas?
Which style is he using? can you provide the URL to check?
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
Daveo16
Registered User
Posts: 11
Joined: Tue Mar 07, 2017 3:01 pm
Location: United Kingdom
Name: Dave Bateman
Contact:

Re: [3.2][RC] Imgur

Post by Daveo16 » Sun May 14, 2017 3:08 pm

He using the Cynthia style, which is based on & inherits from prosilver.
Last edited by Daveo16 on Sun May 14, 2017 5:50 pm, edited 1 time in total.

User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Imgur

Post by AbaddonOrmuz » Sun May 14, 2017 3:22 pm

Daveo16 wrote:
Sun May 14, 2017 3:08 pm
He using the Cynthia style, which is based on & inherits from prosilver.

Forum URL: http://fml.daves-hosting.co.uk

You'll need to register to be able to post.

Post in: Community Forums > Introduce Yourself Here
I see, the extension abbc3 replaced the standard BBCode buttons, everything else in this extension is working fine.

I'll see how to add a button in that extension.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
Daveo16
Registered User
Posts: 11
Joined: Tue Mar 07, 2017 3:01 pm
Location: United Kingdom
Name: Dave Bateman
Contact:

Re: [3.2][RC] Imgur

Post by Daveo16 » Sun May 14, 2017 3:24 pm

Think I would have to add it in BBcodes in AdminCP ?

User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Imgur

Post by AbaddonOrmuz » Sun May 14, 2017 3:31 pm

No, because in fact this extension does not need a BBCode, it just uses the style event to add the button.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
Daveo16
Registered User
Posts: 11
Joined: Tue Mar 07, 2017 3:01 pm
Location: United Kingdom
Name: Dave Bateman
Contact:

Re: [3.2][RC] Imgur

Post by Daveo16 » Sun May 14, 2017 3:33 pm

OK.

User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Imgur

Post by AbaddonOrmuz » Sun May 14, 2017 4:11 pm

Daveo16 wrote:
Sun May 14, 2017 3:33 pm
OK.
Even though I was able to add the button in the ABBC3 template* something in its JavaScript is blocking my jQuery code, so for now it's not compatible with ABBC3.

___
* vse_abbc3_posting_editor_buttons_custom_tags_append
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

Locked

Return to “Extensions in Development”