[3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

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!
Suggested Hosts
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
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

[3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

Post by 3Di » Sat Feb 18, 2017 6:23 am

Author: 3Di
Extension Name: QAIP
Extension description:
  • Quotes and resize attached images and the images posted within [ IMG ] tags.
  • Attached images as links are quoted as images as well.
  • The thumbs originated from images posted within [ IMG ] tags are not yet clickable.
  • Use CSS to center quoted images selectable in ACP/Posting/post settings - Defaulted to No.
  • Quoted images are resized on the fly with CSS.
  • The measure of the thumbnail can be modified in the css. Shipped with a "max-height: 250px;"
  • Centers resized images attached (only for phpBB 3.1, yet).
  • Centers resized images posted within [ IMG ] tags.
  • No image's hard-manipulation, images are untouched, all of their attributes preserved.
  • Unlimited nested quotes compliant.
  • Works without ImageMagick but you can use it as well.
  • LightBox by VSE compatible.
  • Disabling the extension only removes resizing, posts will still show the images at the original size.
  • No bells and whistles, simple and effective.
Requirements:
  • phpBB >= 3.1.6
Extension Version: [BETA] 1.0.0-b3
Extension Download: Click!

Installation:
Copy the content of the uncompressed package into PHPBB_ROOT/ext/
So the result would be ./ext/threedi/qaip

Update from previous version:
1) disable - 2) delete data - 3) delete files - 4) upload the new ones - 5) enable it again.

Changes Log: See the package's content.

If you think this extension is worth using consider to Image

See posts below for Credits and further informations.
Last edited by 3Di on Sat Aug 12, 2017 5:00 am, edited 7 times in total.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][DEV] QAIP - Quote Attachments Img in Posts

Post by 3Di » Sat Feb 18, 2017 6:23 am

ToDo
  • Center attached images also for phpBB 3.2.x.
  • Make clickable the thumbs originated from images posted within [IMG] tags.
  • Fix the Poll's bug (see here) Done in Beta3.
Extras (WIP)
  • Use just on a per forum basis.
  • Watermark.
  • Auto Image Rotation for attachments.
Feature requests and bug-tracker
Last edited by 3Di on Fri Mar 24, 2017 4:00 am, edited 5 times in total.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][DEV] QAIP - Quote Attachments Img in Posts

Post by 3Di » Sat Feb 18, 2017 6:24 am

Credits
  • Some code, adapted and improved, inspired by Татьяна5's editor_of_attachments.
  • CSS resizer, improved, inspired by quotethumbnails of HiFiKabin.
  • ACP posting setting, adapted, inspired by Lightbox of VSE.
  • Beta testing: Puchahawa (Randy), profKroy, 3Di.
  • Contributor: profKroy, which expressly requested this extension.
Last edited by 3Di on Mon Feb 20, 2017 11:18 pm, edited 2 times in total.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][DEV] QAIP - Quote Attachments Img in Posts

Post by 3Di » Sat Feb 18, 2017 6:24 am

Styles support (CSS resizing)
  • The extension supports the prosilver style and those who inherit from it.
  • The extension supports the Anami custom style (phpBB 3.1.6)
  • If you have another style try copying the prosilver folder and rename it with your style name.
  • I could be not able to provide support for every style, basicly.
    • Language support
      • The extension supports the following languages, please avoid to create PRs on GitHUb for extra languages, those will be not merged. Create a fork of the language and share the link, instead.
      • en
      • en_us
    Last edited by 3Di on Mon Feb 20, 2017 11:17 pm, edited 3 times in total.
    Want to compensate me for my interest? Donate
    Please PM me only to request paid works. Thx.
    Extensions, Scripts, MOD porting, Update/Upgrades

    BerthaH
    Registered User
    Posts: 5
    Joined: Sun Feb 12, 2017 10:39 pm

    Re: [3.1][3.2][DEV] QAIP - Quote Attachments Img in Posts

    Post by BerthaH » Sat Feb 18, 2017 5:34 pm

    Have you a test-login for this extension?

    http://3di.space/32/viewtopic.php?f=10&t=26

    I dont see any quotes here :roll:

    User avatar
    HiFiKabin
    Community Team Member
    Community Team Member
    Posts: 2156
    Joined: Wed May 14, 2014 9:10 am
    Name: James
    Contact:

    Re: [3.1][3.2][DEV] QAIP - Quote Attachments Img in Posts

    Post by HiFiKabin » Sat Feb 18, 2017 5:46 pm

    Its something I have been thinking about/swearing about/trying to do for ages.

    Thanks Marco, it sounds like its an answer to many a prayer

    User avatar
    3Di
    Registered User
    Posts: 11719
    Joined: Mon Apr 04, 2005 11:09 pm
    Location: Milano - Frankfurt
    Name: Marco
    Contact:

    Re: [3.1][3.2][DEV] QAIP - Quote Attachments Img in Posts

    Post by 3Di » Sat Feb 18, 2017 9:00 pm

    HiFiKabin wrote:
    Sat Feb 18, 2017 5:46 pm
    Its something I have been thinking about/swearing about/trying to do for ages.

    Thanks Marco, it sounds like its an answer to many a prayer
    Thanks to you too. :)
    BerthaH wrote:
    Sat Feb 18, 2017 5:34 pm
    Have you a test-login for this extension?

    http://3di.space/32/viewtopic.php?f=10&t=26

    I dont see any quotes here :roll:
    No, I don't have any test account available at my board, I want to keep it as clean as possible.
    I sat my board for guests to see only the first post of a topic, enough to share links to free downloads (ie.: packaged extensions).

    Here's the screenshot of the quoted attachment as per the link you above posted
    http://prntscr.com/eagfud (phpBB 3.2.0)

    This one instead is from the development environment on phpBB 3.1.10
    http://prntscr.com/eahjxn (centered).
    Want to compensate me for my interest? Donate
    Please PM me only to request paid works. Thx.
    Extensions, Scripts, MOD porting, Update/Upgrades

    User avatar
    3Di
    Registered User
    Posts: 11719
    Joined: Mon Apr 04, 2005 11:09 pm
    Location: Milano - Frankfurt
    Name: Marco
    Contact:

    Re: [3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

    Post by 3Di » Mon Feb 20, 2017 11:23 pm

    First Public release available, see first post and following.
    Want to compensate me for my interest? Donate
    Please PM me only to request paid works. Thx.
    Extensions, Scripts, MOD porting, Update/Upgrades

    User avatar
    HiFiKabin
    Community Team Member
    Community Team Member
    Posts: 2156
    Joined: Wed May 14, 2014 9:10 am
    Name: James
    Contact:

    Re: [3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

    Post by HiFiKabin » Tue Feb 21, 2017 11:08 am

    Quick test and its BRILLIANT! One slight 'error'

    When quoting an attachment, as well as the image you get the attachment name

    Image

    phpBB 3.2.0 prosilver

    User avatar
    3Di
    Registered User
    Posts: 11719
    Joined: Mon Apr 04, 2005 11:09 pm
    Location: Milano - Frankfurt
    Name: Marco
    Contact:

    Re: [3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

    Post by 3Di » Wed Feb 22, 2017 1:10 am

    HiFiKabin wrote:
    Tue Feb 21, 2017 11:08 am
    Quick test and its BRILLIANT! One slight 'error'

    When quoting an attachment, as well as the image you get the attachment name

    ..snip..

    phpBB 3.2.0 prosilver
    Isn't an error nor a bug, that's a feature. :geek: :P :lol: (Already taken, uh?)

    That's intentional, this extension has been created on purpose for a Graphic's Online Courses website, I thought the Students and Teacher would benefit in having the filename on front of them while reading the quotes in the discussion. To add, that's the normal behaviour of phpBB without this ext, let's see how the attached images are quoted:

    Attachment IMG (regular) http://prntscr.com/ebsxnk
    (up side, underneath is the quoted attachment with QAIP)

    Attachment IMG (inline) http://prntscr.com/ebszu6 without QAIP

    Attachment as LINK http://prntscr.com/ebt1t2 without QAIP
    Attachment as LINK http://prntscr.com/ebtlu7 with QAIP (same attachment link quoted as image)

    As you can see then, the quoted images are appended (literally) to the event's message parser, before of the closing QUOTE tag being replaced (previously stripped) and the arrays merged and post data sent back to the event itself, preserving the native behaviour. At the end, and because the filename in the quoted post isn't necessary at all for the extension to work, you could delete it before to click on Submit.

    If you read the code you will see my code comment:
    * Put the quoted image on a new line after its real filename
    I didn't modify that behaviour from the adapted snippet for the reasons as per above. :)

    If you ask, yes, it could be possible to have a select box for that, like "Do you like the filename to be shown in the quoted message?". If you so wish, please open a feature request there on GitHub, I will take a look at this sooner or later.

    Thanks for feedback. :)
    Want to compensate me for my interest? Donate
    Please PM me only to request paid works. Thx.
    Extensions, Scripts, MOD porting, Update/Upgrades

    User avatar
    HiFiKabin
    Community Team Member
    Community Team Member
    Posts: 2156
    Joined: Wed May 14, 2014 9:10 am
    Name: James
    Contact:

    Re: [3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

    Post by HiFiKabin » Wed Feb 22, 2017 9:31 am

    Nope, theres no problem with the name being shown. I just didn't understand the whys and wherefores of it being there. (thats why I put 'error' in quotes )

    My users are loving it already

    User avatar
    pierredu
    Registered User
    Posts: 787
    Joined: Thu Nov 01, 2012 8:04 am
    Location: Paris (France)
    Name: Pierre Duhem

    Re: [3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

    Post by pierredu » Thu Feb 23, 2017 4:18 pm

    Indeed a fantastic extension !!

    User avatar
    John connor
    Registered User
    Posts: 1367
    Joined: Fri Nov 14, 2014 5:14 pm
    Location: U S Of A
    Contact:

    Re: [3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

    Post by John connor » Thu Mar 02, 2017 4:04 pm

    Thanks a million! It works like a charm and in fact it works with the AWS S3 extension too! I've requested this extension like two or three times and no one took interest. Finally! 8-)

    User avatar
    3Di
    Registered User
    Posts: 11719
    Joined: Mon Apr 04, 2005 11:09 pm
    Location: Milano - Frankfurt
    Name: Marco
    Contact:

    Re: [3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

    Post by 3Di » Fri Mar 03, 2017 1:00 am

    Thank you all for the positive feedback, guys.
    I am glad that you find it useful and are enjoying this extension. :)
    Want to compensate me for my interest? Donate
    Please PM me only to request paid works. Thx.
    Extensions, Scripts, MOD porting, Update/Upgrades

    User avatar
    3Di
    Registered User
    Posts: 11719
    Joined: Mon Apr 04, 2005 11:09 pm
    Location: Milano - Frankfurt
    Name: Marco
    Contact:

    Re: [3.1][3.2][BETA] QAIP - Quote Attachments Img in Posts

    Post by 3Di » Wed Mar 22, 2017 12:58 am

    Breaking news: a bug has been catched, If a user "quotes" a post that is in a poll, the bbcode break and the parsed message results in a mess.

    Here's a quick hack which prevents this issue, in the meantime I will provide a new version.

    Please note, with this hack the topics which are polls are not anymore under the supervision of QAIP, I mean the original features of phpBB are rolled back, within POLLs.
    (Quoted IMGs are not controlled by QAIP over there).

    Open the file /ext/threedi/qaip/event/main_listener.php and FIND this line

    Code: Select all

    if ($mode == 'quote' && !$submit && !$preview && !$refresh)
    REPLACE the above line with this one

    Code: Select all

    if ( $mode == 'quote' && !$submit && !$preview && !$refresh && (empty($post_data["poll_title"])) )
    SAVE the file back and use it, no need to disable the extension at all.

    A new version it is scheduled, with a concrete fix.

    Thanks.
    Want to compensate me for my interest? Donate
    Please PM me only to request paid works. Thx.
    Extensions, Scripts, MOD porting, Update/Upgrades

    Post Reply

    Return to “Extensions in Development”

    Who is online

    Users browsing this forum: darkobgd, Meis2M and 21 guests

    cron