Page 1 of 2

attachments side by side

Posted: Thu Jan 07, 2010 4:54 pm
by D4km4n
Friends I'm sorry if this is the wrong place but I need help, I want to do attachments in my phpBB forum stay side by side, as shown on the screen, how can I do this?

Image

I'm sorry but I do not know English, I use the translate.google.

Re: attachments side by side

Posted: Fri Jan 08, 2010 12:34 pm
by D4km4n
nobody knows? :cry: :cry:

Re: attachments side by side

Posted: Sat Jan 09, 2010 2:27 pm
by D4km4n
help me please. :cry: :cry:

Re: attachments side by side

Posted: Sat Jan 09, 2010 4:57 pm
by AdamR
Open: styles/prosilver/template/viewtopic_body.html, Find:

Code: Select all

			<!-- IF postrow.S_HAS_ATTACHMENTS -->
				<dl class="attachbox">
					<dt>{L_ATTACHMENTS}</dt>
					<!-- BEGIN attachment -->
						<dd>{postrow.attachment.DISPLAY_ATTACHMENT}</dd>
					<!-- END attachment -->
				</dl>
			<!-- ENDIF -->
Replace with:

Code: Select all

			<!-- IF postrow.S_HAS_ATTACHMENTS -->
				<!-- BEGIN attachment -->
				<dl class="attachbox">
					<dt>{L_ATTACHMENTS}</dt>
						<dd>{postrow.attachment.DISPLAY_ATTACHMENT}</dd>
				</dl>
				<!-- END attachment -->
			<!-- ENDIF -->
Open: styles/prosilver/theme/content.css, Find:

Code: Select all

.attachbox {
	float: left;
	width: auto; 
	margin: 5px 5px 5px 0;
	padding: 6px;
	background-color: #FFFFFF;
	border: 1px dashed #d8d8d8;
	clear: left;
}
Replace with:

Code: Select all

.attachbox {
	float: left;
	width: auto; 
	margin: 5px 5px 5px 0;
	padding: 6px;
	background-color: #FFFFFF;
	border: 1px dashed #d8d8d8;
	/* Attachbox List Horizontally */
	/* clear: left; */
}
Be sure to replace "prosilver" with your current style. Note that the code in those files may be slightly different from prosilver.

Save/upload the files. Refresh the template and theme as described in this article: http://www.phpbb.com/kb/article/cant-se ... sappeared/

- Adam

Re: attachments side by side

Posted: Sun Jan 10, 2010 1:39 pm
by D4km4n
AdamR thank you but unfortunately it did not work, I edited exactly as described, updated the theme and cleaned the cache but did not work, my theme is subSilver. :cry: :cry:

Re: attachments side by side

Posted: Sun Jan 10, 2010 9:26 pm
by AdamR
It may be different for subsilver based styles. Can you provide a link to your board?

- Adam

Re: attachments side by side

Posted: Mon Jan 18, 2010 7:50 pm
by Rasputin2010
Hello!

I have search for the same! And change it on an other style, i use this style:

http://www.awesomestyles.com/phpbb3-sty ... fae-forest

I had find all and replace all, so i had think its running! But when i look at my board i see no changes!
Here my board: www.eusozial.de

Greetings
Mathias

Re: attachments side by side

Posted: Sun Jan 24, 2010 4:29 am
by sevenalive
This solution works for prosilver based styles, no need to edit the template.

Open Content.css:

Find

Code: Select all

.attachbox {
Remove:

Code: Select all

clear: left;
Find

Code: Select all

.attachbox dd {
Replace:

Code: Select all

clear: left;
With:

Code: Select all

float: left

Re: attachments side by side

Posted: Sun Apr 18, 2010 10:02 pm
by papayrus
I cant get this to work. It should be easy to make attachments line up side by side why cant that just be a basic option. I want to have images in particular line up side by side. Is there anyway to do this?

OK I got this to work but does anyone have anyway to make it work in subsilver2 as well? Also got an issue where in Chrome it shows up fine, the attachment images are side by side but in internet explorer the images are not side by side.

So basically 2 issues need to know how to make it work in subsilver and need to know how to make it show side by side in internet explorer. It seems like internet explorer is not floating the images to the left.
Thank You Please Help I been trying to do this for a week now.

Re: attachments side by side

Posted: Sat Jun 12, 2010 10:07 am
by Mrraider
i need this too :(

Re: attachments side by side

Posted: Thu Aug 05, 2010 6:26 pm
by Mrraider
Any luck papayrus?

Re: attachments side by side

Posted: Sat Nov 20, 2010 9:23 pm
by publicsb
So ... any luck ?

Re: attachments side by side

Posted: Sat Nov 20, 2010 10:51 pm
by AdamR
publicsb wrote:So ... any luck ?
Please provide a link to your board. More specifically, to a topic/post which contains attachments. :)

- Adam

Re: attachments side by side

Posted: Sun Nov 21, 2010 7:56 am
by publicsb
I didn't find a solution ... i'm asking because i'm also looking for a solution ... and the ones provided in this thread aren't working.

Re: attachments side by side

Posted: Mon Nov 22, 2010 12:51 am
by AdamR
publicsb wrote:I didn't find a solution ... i'm asking because i'm also looking for a solution ... and the ones provided in this thread aren't working.
I know. Provide a link to your board (specifically to a topic/post which contains an attachment) and we can look at your site's specific code to provide you with a solution. :)

- Adam