Lightbox

Thumbs are in a collumn instead of inline in 1 row - Lightbox

Thumbs are in a collumn instead of inline in 1 row

by webants » Wed Mar 28, 2018 9:06 am

hello there :)

could you help me why thumbs are showing in a collumn instead of an inline row?

see also discussion on phpbb, they say it should be an problem on your side?

viewtopic.php?f=556&t=2433726

Thanxs in advance
Attachments
Schermopname (4).png
webants
Registered User
Posts: 51
Joined: Sat Jan 07, 2006 8:42 pm

Re: Thumbs are in a collumn instead of inline in 1 row

by VSE » Thu Mar 29, 2018 5:57 pm

Don't put spaces or new lines between the images when posting them. Attached images will always be on new lines because that's how phpBB handles them. Inline images will be displayed based on how the post was composed.

This extension does not control how images are laid out in a post. It only shrinks them, adds a little border, and of course allows them to be opened up in a lightbox instead of a new window.
Dictated but not read.
Official phpBB Extensions My Extensions & MODs
Please do not PM me for support.
User avatar
VSE
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 4883
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: Thumbs are in a collumn instead of inline in 1 row

by webants » Fri Mar 30, 2018 11:38 am

all images are inline and not set as attachment, they are placed in tekst :

Code: Select all

[attachment=0]zijkant.jpg[/attachment][attachment=1]top.jpg[/attachment][attachment=2]IMG_2541.JPG[/attachment][attachment=3]IMG_2540.JPG[/attachment][attachment=4]achterkant.jpg[/attachment]
Using stock phpbb 3.2.2 and all themes have the same problem when activating lightbox..

Must be something wrong since more people have the same problem.
webants
Registered User
Posts: 51
Joined: Sat Jan 07, 2006 8:42 pm

Re: Thumbs are in a collumn instead of inline in 1 row

by webants » Fri Mar 30, 2018 1:09 pm

oh yeah.. when i off lightbox ext it shows the thumbs nicely next to each other so there must be some coding interfering right?
webants
Registered User
Posts: 51
Joined: Sat Jan 07, 2006 8:42 pm

Re: Thumbs are in a collumn instead of inline in 1 row

by AxEgo » Fri Apr 06, 2018 8:29 am

This also irritated me, so I made some changes to the theme:
Edit: /forum/styles/prosilver/theme/content.css:

Find, around line 587:

Code: Select all

div.inline-attachment dl.thumbnail, div.inline-attachment dl.file {
	display: block;
	margin-bottom: 4px;
Replace with:

Code: Select all

div.inline-attachment dl.thumbnail, div.inline-attachment dl.file {
	display: block;
	margin-bottom: 4px;
	float:left;
	padding-right:5px;
}
Other themes will have to be edited separately and could have different results.
AxEgo
Registered User
Posts: 5
Joined: Fri Apr 06, 2018 8:19 am
Contact:

Re: Thumbs are in a collumn instead of inline in 1 row

by webants » Fri Apr 06, 2018 6:18 pm

That works great! thanxs!!

shame lightbox owner did not reply or update.
webants
Registered User
Posts: 51
Joined: Sat Jan 07, 2006 8:42 pm

Re: Thumbs are in a collumn instead of inline in 1 row

by webants » Fri Apr 06, 2018 7:40 pm

Sadley this solution gives a problem when you try to add different images to different paragraphs.

it sticks them together.
webants
Registered User
Posts: 51
Joined: Sat Jan 07, 2006 8:42 pm

Re: Thumbs are in a collumn instead of inline in 1 row

by AxEgo » Sat Apr 07, 2018 8:53 am

webants wrote:Sadley this solution gives a problem when you try to add different images to different paragraphs.

it sticks them together.
I see that too, I have taken out my change because it messes up other posts. I also see that if I disable the lightbox, the thumbnails are still in a column and not in a row. so it's no different.

What I have now done on my board is to create a new bb code (hli=horizontal list item):

Code: Select all

BBCode Usage:
[hli]{TEXT}[/hli]

HTML Replacement:
<li style="display:inline-block">{TEXT}</li>
You then use this format:

Code: Select all

[list]
[hli][attachment=19]531194_orig.jpg[/attachment][/hli]
[hli][attachment=18]672961_orig.jpg[/attachment][/hli]
[hli][attachment=17]1083009_orig.jpg[/attachment][/hli]
[hli][attachment=16]2043494_orig.jpg[/attachment][/hli]
[/list]
AxEgo
Registered User
Posts: 5
Joined: Fri Apr 06, 2018 8:19 am
Contact:

Re: Thumbs are in a collumn instead of inline in 1 row

by webants » Sat Apr 07, 2018 10:31 am

If i off lightbox the thumbs are in a row at my forum..

that bb code gonna be too difficult for my members..

maybe there is another ext with thumbs?
webants
Registered User
Posts: 51
Joined: Sat Jan 07, 2006 8:42 pm

Re: Thumbs are in a collumn instead of inline in 1 row

by webants » Mon Apr 09, 2018 11:20 am

...
webants
Registered User
Posts: 51
Joined: Sat Jan 07, 2006 8:42 pm