attachments side by side

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Get Involved
D4km4n
Registered User
Posts: 8
Joined: Thu Jan 07, 2010 4:19 pm

attachments side by side

Post by D4km4n » Thu Jan 07, 2010 4:54 pm

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.
Sorry but my English is very bad

D4km4n
Registered User
Posts: 8
Joined: Thu Jan 07, 2010 4:19 pm

Re: attachments side by side

Post by D4km4n » Fri Jan 08, 2010 12:34 pm

nobody knows? :cry: :cry:
Sorry but my English is very bad

D4km4n
Registered User
Posts: 8
Joined: Thu Jan 07, 2010 4:19 pm

Re: attachments side by side

Post by D4km4n » Sat Jan 09, 2010 2:27 pm

help me please. :cry: :cry:
Sorry but my English is very bad

User avatar
AdamR
Former Team Member
Posts: 9731
Joined: Tue Mar 02, 2004 5:40 pm
Location: Tampa, Florida
Name: Adam Reyher
Contact:

Re: attachments side by side

Post by AdamR » Sat Jan 09, 2010 4:57 pm

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
phpBB Support: Welcome | Userguide | Knowledge Base | Search
Honored supporter of the phpBB Group!
"If I have seen a little further it is by standing on the shoulders of Giants." - Isaac Newton

D4km4n
Registered User
Posts: 8
Joined: Thu Jan 07, 2010 4:19 pm

Re: attachments side by side

Post by D4km4n » Sun Jan 10, 2010 1:39 pm

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:
Sorry but my English is very bad

User avatar
AdamR
Former Team Member
Posts: 9731
Joined: Tue Mar 02, 2004 5:40 pm
Location: Tampa, Florida
Name: Adam Reyher
Contact:

Re: attachments side by side

Post by AdamR » Sun Jan 10, 2010 9:26 pm

It may be different for subsilver based styles. Can you provide a link to your board?

- Adam
phpBB Support: Welcome | Userguide | Knowledge Base | Search
Honored supporter of the phpBB Group!
"If I have seen a little further it is by standing on the shoulders of Giants." - Isaac Newton

Rasputin2010
Registered User
Posts: 27
Joined: Sat Jan 16, 2010 10:49 pm

Re: attachments side by side

Post by Rasputin2010 » Mon Jan 18, 2010 7:50 pm

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

User avatar
sevenalive
Translator
Posts: 437
Joined: Thu Feb 07, 2008 4:45 am
Location: Tempe, AZ
Name: Robert

Re: attachments side by side

Post by sevenalive » Sun Jan 24, 2010 4:29 am

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

papayrus
Registered User
Posts: 1
Joined: Sat Apr 17, 2010 7:20 am

Re: attachments side by side

Post by papayrus » Sun Apr 18, 2010 10:02 pm

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.

User avatar
Mrraider
Registered User
Posts: 100
Joined: Thu Apr 02, 2009 7:54 pm

Re: attachments side by side

Post by Mrraider » Sat Jun 12, 2010 10:07 am

i need this too :(

User avatar
Mrraider
Registered User
Posts: 100
Joined: Thu Apr 02, 2009 7:54 pm

Re: attachments side by side

Post by Mrraider » Thu Aug 05, 2010 6:26 pm

Any luck papayrus?

publicsb
Registered User
Posts: 2
Joined: Sat Nov 20, 2010 9:21 pm

Re: attachments side by side

Post by publicsb » Sat Nov 20, 2010 9:23 pm

So ... any luck ?

User avatar
AdamR
Former Team Member
Posts: 9731
Joined: Tue Mar 02, 2004 5:40 pm
Location: Tampa, Florida
Name: Adam Reyher
Contact:

Re: attachments side by side

Post by AdamR » Sat Nov 20, 2010 10:51 pm

publicsb wrote:So ... any luck ?
Please provide a link to your board. More specifically, to a topic/post which contains attachments. :)

- Adam
phpBB Support: Welcome | Userguide | Knowledge Base | Search
Honored supporter of the phpBB Group!
"If I have seen a little further it is by standing on the shoulders of Giants." - Isaac Newton

publicsb
Registered User
Posts: 2
Joined: Sat Nov 20, 2010 9:21 pm

Re: attachments side by side

Post by publicsb » Sun Nov 21, 2010 7:56 am

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.

User avatar
AdamR
Former Team Member
Posts: 9731
Joined: Tue Mar 02, 2004 5:40 pm
Location: Tampa, Florida
Name: Adam Reyher
Contact:

Re: attachments side by side

Post by AdamR » Mon Nov 22, 2010 12:51 am

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
phpBB Support: Welcome | Userguide | Knowledge Base | Search
Honored supporter of the phpBB Group!
"If I have seen a little further it is by standing on the shoulders of Giants." - Isaac Newton

Locked

Return to “[3.0.x] Styles Support & Discussion”