Removing The Frame From Attachments

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
Cory Ander
Registered User
Posts: 65
Joined: Thu Mar 21, 2013 1:31 am

Removing The Frame From Attachments

Post by Cory Ander » Tue Oct 20, 2015 4:46 am

Hi,

I am running phpbb 3.0.14 with prosilver and subsilver2 as the style.

I would please like to know how to remove the unsightly white frame (and the word "attachment") surrounding an attachment (e.g an image) when it is not placed "in-line". In other words, I would like the attachment to look like it does when it is placed "in-line", even when it isn't.

Alternatively, I'd like to know how to automatically place an attachment in-line, at the bottom of a post, without a user having to click on the "Place inline" button.

I have searched for a solution but can't seem to find one.

Thank you for your assistance....

Cory Ander
Registered User
Posts: 65
Joined: Thu Mar 21, 2013 1:31 am

Re: Removing The Frame From Attachments

Post by Cory Ander » Fri Oct 23, 2015 12:59 am

Just to explain further:

I would like attachments (e.g. photos) to automatically look like this:
Attachment Placed In-Line
Attachment Placed In-Line
And not like this (which is currently the case if a user does not place the attachment in-line):
Attachment Not Placed In-Line
Attachment Not Placed In-Line
Any assistance would be greatly appreciated 8-)

User avatar
Rahber
Former Team Member
Posts: 2720
Joined: Tue Feb 12, 2008 3:39 pm
Location: Pakistan
Name: Rahber
Contact:

Re: Removing The Frame From Attachments

Post by Rahber » Fri Oct 23, 2015 8:54 pm

in your (colors.css) css find .attachbox change the background and border color to transparent. in your viewtopic_body.html find and remove <dt>{L_ATTACHMENTS}</dt>


i very much like butter chicken :mrgreen:

Cory Ander
Registered User
Posts: 65
Joined: Thu Mar 21, 2013 1:31 am

Re: Removing The Frame From Attachments

Post by Cory Ander » Sat Oct 24, 2015 3:41 am

Thank you for your help, Rahber, very much appreciated :)

I have made the changes that you suggested and have refreshed my style and template. It's an improvement (because the word "attachment") has gone, but the attachment still has the unsightly white frame around it (please compare with the first image in my opening post when an attachment is placed in-line):
Attachment Not Placed In-Line
Attachment Not Placed In-Line
How do I get rid of this white frame please (when the attachment is not placed in-line)?

In colours.css (I can only find "colours.css" and not "colors.css") I changed it to the following:

.attachbox {
background-color: transparent;
border-color: transparent;
}

I assume this is correct?

Any further advice would be very much appreciated....

PS: Of course you are more than welcome to join our British Indian Restaurant curry cooking forum...plenty more where the Butter Chicken came from (with the recipes, of course)! :P

User avatar
Lumpy Burgertushie
Registered User
Posts: 66491
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Removing The Frame From Attachments

Post by Lumpy Burgertushie » Sat Oct 24, 2015 4:58 am

instead of changing them to transparent, just remove those two lines.

all the other css that affects the attach box are right there in the same place in the colours.css file
be sure that you refresh the theme after you make changes and refresh your browser as well.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Cory Ander
Registered User
Posts: 65
Joined: Thu Mar 21, 2013 1:31 am

Re: Removing The Frame From Attachments

Post by Cory Ander » Sat Oct 24, 2015 6:55 am

Thanks Lumpy. Actually, I just needed to refresh the theme as well and now it's all good, thanks, problem solved!

Thank you, both, for your help, much appreciated :)

Locked

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