subsilver2 3.1.x

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Scam Warning
User avatar
Prosk8er
Registered User
Posts: 1444
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

subsilver2 3.1.x

Post by Prosk8er » Thu Nov 06, 2014 8:14 pm

is subsilver2 from https://github.com/phpbb/phpbb/tree/dev ... pBB/styles
stable enough to use if someone still wanted to use it? reason I ask is I have a couple styles that are based off of it and wanted to update them to 3.1.x

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3476
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: subsilver2 3.1.x

Post by bonelifer » Thu Nov 06, 2014 8:46 pm

You should get it here: https://download.phpbb.com/pub/release/ ... _3.1.1.zip

Personally I would suggest doing something like "subsilver3" and based it on prosilver and use inheritance.

I should note that subsilver2 doesn't have many of the new features added to prosilver, so basing your subsilver theme on prosilver guarantees your users would have those features.
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

User avatar
Prosk8er
Registered User
Posts: 1444
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: subsilver2 3.1.x

Post by Prosk8er » Fri Nov 07, 2014 1:12 am

thanks, I may do that eventually but at the moment its just easier to update it as there were less changes than prosilver and less stuff to do :)

Bruce Banner
Registered User
Posts: 635
Joined: Thu Sep 25, 2014 10:36 am

Re: subsilver2 3.1.x

Post by Bruce Banner » Fri Nov 07, 2014 3:08 pm

Hi. I've managed to get images to autoresize to a maximum width. I'd like to get avatars to autoresize also. Can anyone tell me how? I can't find the word avatar in the stylesheet.

Bruce Banner
Registered User
Posts: 635
Joined: Thu Sep 25, 2014 10:36 am

Re: subsilver2 3.1.x

Post by Bruce Banner » Sat Nov 08, 2014 9:53 pm

Bump.

User avatar
Hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 902
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: subsilver2 3.1.x

Post by Hanakin » Mon Nov 10, 2014 7:07 am

First do not highjack others threads. Create a new topic if its not already answered in another thread.

as to your question, avatars are img tags in the html for nessecary reasons. .postprofile .avatar img will select it do to the over selctivness used. Though I am not sure what you are trying to do. Are you attempting to scale them?

Bruce Banner
Registered User
Posts: 635
Joined: Thu Sep 25, 2014 10:36 am

Re: subsilver2 3.1.x

Post by Bruce Banner » Tue Nov 11, 2014 3:17 am

Hanakin wrote:First do not highjack others threads. Create a new topic if its not already answered in another thread.

as to your question, avatars are img tags in the html for nessecary reasons. .postprofile .avatar img will select it do to the over selctivness used. Though I am not sure what you are trying to do. Are you attempting to scale them?
I'd like them to resize automatically. I've managed to get images (whether in posts or signatures) that are larger than a certain width to resize automatically to that width, and the height follows suit so the proportions stay the same. Now I'd like to know how to do the same thing for avatars.

User avatar
Hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 902
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: subsilver2 3.1.x

Post by Hanakin » Tue Nov 11, 2014 5:30 pm

first it depends on what manner the user is serving ther avatars as like I said its an img element in the htm with a set height and width attribute. this needs overidden or removed from the html.

Then you would need to specify .postprofile .avatar img is width:100%

next .postprofile .avatar needs adjusted to remove the max-width property

the avatar should then take on the height of its container

Bruce Banner
Registered User
Posts: 635
Joined: Thu Sep 25, 2014 10:36 am

Re: subsilver2 3.1.x

Post by Bruce Banner » Wed Nov 12, 2014 12:07 am

Hanakin wrote:first it depends on what manner the user is serving ther avatars as like I said its an img element in the htm with a set height and width attribute. this needs overidden or removed from the html.

Then you would need to specify .postprofile .avatar img is width:100%

next .postprofile .avatar needs adjusted to remove the max-width property

the avatar should then take on the height of its container
Where do I find that code for subsilver2 though? I know there are postprofile.avatar lines in the contents file of the prosilver theme, but all I could find for subsilver2 was a stylesheet, and I couldn't find the word avatar in it.

User avatar
Hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 902
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: subsilver2 3.1.x

Post by Hanakin » Wed Nov 12, 2014 8:13 am

use dev-tools in your browser and inspect element as I have no way of working with sub2 or want haha

Bruce Banner
Registered User
Posts: 635
Joined: Thu Sep 25, 2014 10:36 am

Re: subsilver2 3.1.x

Post by Bruce Banner » Wed Nov 12, 2014 5:35 pm

Hanakin wrote:use dev-tools in your browser and inspect element as I have no way of working with sub2 or want haha
If you don't know how to use sub2, why are you answering questions in a thread on sub2?

User avatar
Hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 902
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: subsilver2 3.1.x

Post by Hanakin » Wed Nov 12, 2014 5:57 pm

Hanakin wrote:First do not highjack others threads. Create a new topic if its not already answered in another thread.
confused where the discussion came from originally as I responded from notifications

subsilver does not rely on css classes as much so you will need to add your own classes in the template to target it.

This is actually a bug i believe that we need to fix in the future where the actual avatars should have their own classes to better target them.

fro now in viewtopic_body.html on line 203 you should see the following code

Code: Select all

<td>{postrow.POSTER_AVATAR}</td>
you need to give the td a class of .avatar

Code: Select all

<td class="avatar">{postrow.POSTER_AVATAR}</td>
you can then in your css add a rule to reset the scaleing

Code: Select all

.avatar img {
width: 100%;
height: auto;
}
this will reset the image to enable it to fill the contents of the container

Bruce Banner
Registered User
Posts: 635
Joined: Thu Sep 25, 2014 10:36 am

Re: subsilver2 3.1.x

Post by Bruce Banner » Wed Nov 12, 2014 8:00 pm

Hanakin wrote:
Hanakin wrote:First do not highjack others threads. Create a new topic if its not already answered in another thread.
confused where the discussion came from originally as I responded from notifications

subsilver does not rely on css classes as much so you will need to add your own classes in the template to target it.

This is actually a bug i believe that we need to fix in the future where the actual avatars should have their own classes to better target them.

fro now in viewtopic_body.html on line 203 you should see the following code

Code: Select all

<td>{postrow.POSTER_AVATAR}</td>
you need to give the td a class of .avatar

Code: Select all

<td class="avatar">{postrow.POSTER_AVATAR}</td>
you can then in your css add a rule to reset the scaleing

Code: Select all

.avatar img {
width: 100%;
height: auto;
}
this will reset the image to enable it to fill the contents of the container
Thanks. In what file do I need to add that rule, and whereabouts?

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

Re: subsilver2 3.1.x

Post by Lumpy Burgertushie » Wed Nov 12, 2014 8:04 pm

in the stylesheet.css file for subsilver
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?

Bruce Banner
Registered User
Posts: 635
Joined: Thu Sep 25, 2014 10:36 am

Re: subsilver2 3.1.x

Post by Bruce Banner » Wed Nov 12, 2014 8:11 pm

Lumpy Burgertushie wrote:in the stylesheet.css file for subsilver
Does it matter where?

Locked

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