Skip to content

Korchy/phpbb_imgur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpbb_imgur

Interface for phpbb forums to upload images on imgur

License:

Under license: CC-BY-SA

Author:

Nikita Akimov korchiy@yandex.ru

Usage

  1. Create folder "imgur" in your forum directory (For example .../forum/imgur). Copy files to this folder.
  2. Register on imgur.com
  3. Create new application. Select "OAuth 2 autorization with a callback url", callback url set to imgurredirect.php. Get Client Id and Client secret.
  4. Modify imgur.js, set clientId and clientSecret.
  5. Modify forum files (for prosilver2 theme):

.../forum/styles/prosilver.mod2/template/posting_buttons.html

after:

<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>

add:

<link href="{ROOT_PATH}imgur/imgur.css" type=text/css rel=stylesheet> <script type="text/javascript" src="{ROOT_PATH}imgur/imgur.js"></script>

after:

<button type="button" accesskey="y" onclick="insert_listitem()" title="{L_BBCODE_LISTITEM_HELP}">[*]</button>

add:

<button type="button" onclick="UploadToImgurWindow(event)" title="{L_BBCODE_P_HELP}">Imgur</button>

Now you hav "imgur" button to upload images to imgur.com from your phpbb forum.

About

Interface for phpbb forums to upload images on imgur

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published