[ABD] [3.2][3.3][DEV] [ABD] Horizontal Attachments

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
Sniper_E
Registered User
Posts: 1207
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

[ABD] [3.2][3.3][DEV] [ABD] Horizontal Attachments

Post by Sniper_E »

Extension Name: Horizontal Attachments
Author: Sniper_E - Version: 1.0.3
Discription: Horizontal Inline Attachments

Screenshot
horizontal_1.0.2.png
Preview: Horizontal Attachments Preview
Download: horizontal_1.0.3.zip

Horizontal Attachments Changelog
  • 1.0.0 - 2024-01-13 - Initial release
  • 1.0.1 - 2024-01-17 - Changed css back to display: inline-block
  • 1.0.2 - 2024-03-24 - Moved attachments into tables
  • 1.0.3 - 2024-03-31 - Added img frame and default attachments (not placed inline)
Install:
  • Copy the horizontal/ folder into server root/ext/sniper/ directory.
  • Navigate to ACP -> Customise -> Disabled Extensions -> Horizontal Attachments and click Enable
Uninstall:
  • Navigate to ACP -> Customise -> Enabled Extensions / Horizontal Attachments and click Disable
  • To permanently uninstall, click Delete Data and then delete the folder /ext/sniper/horizontal
Enjoy! :D
You do not have the required permissions to view the files attached to this post.
Last edited by Sniper_E on Thu Feb 06, 2025 11:18 am, edited 20 times in total.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
SpIdErPiGgY
Registered User
Posts: 330
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by SpIdErPiGgY »

"view log" is missing. And text that should be under the attachment, is now next to it.

Screenshot 2024-01-14.png
You do not have the required permissions to view the files attached to this post.
Image
User avatar
Sniper_E
Registered User
Posts: 1207
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by Sniper_E »

Yes that looks normal. :roll:
To make attachments sit side by side, in the css you have to use display: inline-block; or float: left; . I'm using the lateral.

You know how in a post if you use an image and float it left? All the text will be to the right of that image for several lines before text wraps under it.
In my download topic on my site for horizontal attachments I had to Enter several lines to get the 3 image attachments on a seperate line.

Code: Select all

[attachment=0]horizontal_1.0.0.zip[/attachment]







[attachment=3]hannah1.jpg[/attachment][attachment=2]hannah2.jpg[/attachment][attachment=1]hannah3.jpg[/attachment]
Now if you wanted text to be under an image attachment the size of mine then you would have to Enter 27 lines or so to get past that tall image.
That is how float: left; works with an image in a topic... and how it works with these horizontal file attachments.

As far as your view log not showing, it want show in post preview like in your image.
Last edited by Sniper_E on Tue Jan 16, 2024 1:46 am, edited 1 time in total.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
SpIdErPiGgY
Registered User
Posts: 330
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by SpIdErPiGgY »

Okay Thanks for the explaination 😁

In the downloadlog extension, there is a clickable link to open a popup window. "view log"
Screenshot_20240115_034103_Firefox Beta.jpg
You do not have the required permissions to view the files attached to this post.
Image
User avatar
RomaamoR
Registered User
Posts: 313
Joined: Tue Feb 24, 2015 4:45 pm
Location: Ukraine
Name: Roman

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by RomaamoR »

If I have two attachments, and one of them is an image, then it looks like this -
Image
User avatar
Sniper_E
Registered User
Posts: 1207
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by Sniper_E »

That image does not look like an inline attachment. Where is the image name, image size and how many times it's viewed?
That download layout looks like it's from file downloadlog extension.

But none of that matters.

It looks like you don't have enough space between the attachments for them to be on their own line.
Please read my above post about float: left; It looks like you need to add space after that download attachment.
Or is that image placed before the download in your post? If so you will need more space after the image in the post.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 1207
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by Sniper_E »

SpIdErPiGgY wrote: Mon Jan 15, 2024 2:44 am In the downloadlog extension, there is a clickable link to open a popup window. "view log"
Yes it dose show, for the admin. But it leaves an extra space under the download count for everyone else. Like in RomaamoR's image.
In dmzx/downloadlog/styles/prosilver/template/event/attachment_file_prepend.html
<dd>{% if (U_MCP or U_ACP) %} ... {% endif %}</dd> should be written as {% if (U_MCP or U_ACP) %}<dd> ... </dd>{% endif %}

But that's a different extension discussion. Now back to our previous scheduled discussion. How is this extension working out for everyone?
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 1207
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by Sniper_E »

Because of using the float: left; and having to enter a bunch of lines to get the attached download below an attached image...

I'm changing the css back to display: inline-block;
You will not have to edit all of your previous inline attachment posts to get them to line up.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 1207
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by Sniper_E »

Update Version 1.0.1

Replaced float: left; with display: inline-block; and adjusted css for alignment.
Sorry about that first release, it was all wrong. But I guess that's what development is all about.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
SpIdErPiGgY
Registered User
Posts: 330
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by SpIdErPiGgY »

Thank you. It looks better now.. Also thx for the css edits @dmzx his board... 😁
Image
User avatar
RomaamoR
Registered User
Posts: 313
Joined: Tue Feb 24, 2015 4:45 pm
Location: Ukraine
Name: Roman

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by RomaamoR »

Conflict with dmzx extension File Download. It must be turned off because a double appears.
Monosnap Бесплатные IPTV плейлисты кино каналов - .png
You do not have the required permissions to view the files attached to this post.
User avatar
Sniper_E
Registered User
Posts: 1207
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by Sniper_E »

Yes I have seen that double attachments issue with downloadlog ext but yet file download ext has the same css.

Dowloadlog and file download css loads first... then horizontal attachments and that inline attachment ext loads later.
Both of these attachment exts have display: block; which over rides dm's display: none;

Dmxz's exts should have !important added to the 2 lines of display: none;

Code: Select all

div.inline-attachment dl.file {
	display: none !important;
}

dl.file {
	display: none !important;
}
While you're in there... the downloglog/styles/prosilver/template/event/attachment_file_prepend.html has another issue.
viewtopic.php?p=15993787#p15993787 I might need to update dm's 2 exts for him.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
-neo-
Registered User
Posts: 14
Joined: Fri Aug 07, 2020 2:54 pm

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by -neo- »

Hi,

Thanks for the great extension, on my forum I have to add a blank line before the inline image attachment and 2 blank lines after or the text slightly overlaps the image, hope that makes sense :shock: . i have about 1000 picture attachments in many posts so can't really edit each post manually.

maybe the extension can add extra spaces/padding ?

the test pictures don't really show the wording overlapping the last picture tho
no spaces.jpg
no spaces
1 space above 1 below.jpg
1 space above and 1 below
1 space above 2 spaces below.jpg
1 space above and 2 below

forgive the spelling/grammar in the test pictures ,was in a rush :oops:
You do not have the required permissions to view the files attached to this post.
User avatar
Sniper_E
Registered User
Posts: 1207
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by Sniper_E »

Hi Neo, even before horizontal attachments I normally entered in extra lines above or below to space everything out to look good.
I'm not sure a space can be added before or after a inline attachment in this extension.
If it was, each image posted would have those spaces which would loose the horizontal attachment.

Looks like you marked your images wrong. The second image is 1 space above and 2 below. The third image is 1 space above and 1 below.
If you disabled horizontal attachments how would those images layout in your test post with using those three different spaces in the post?
I'll play around with it but I think you are going to have to have those extra lines before and after those inline images to lay out right.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
-neo-
Registered User
Posts: 14
Joined: Fri Aug 07, 2020 2:54 pm

Re: [3.2][3.3][DEV] Horizontal Attachments

Post by -neo- »

Thanks for the quick reply
post 1.jpg
gives this result
post 2.jpg
changed it to this -
post 3.jpg
gives this result
post 4.jpg
Will have a little play around over the weekend and see.

if i disable this extension the images display vertically.

This is from a holiday, same forum, there is no space before the first image but a space after the last image, see how the text overlaps the last image, should say - in one of the shops
holiday.jpg
You do not have the required permissions to view the files attached to this post.

Return to “Abandoned Extensions”