Help Please

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
ChrisRogers
Registered User
Posts: 3
Joined: Mon Jun 11, 2018 1:17 pm

Help Please

Post by ChrisRogers »

Hello,

I've been working on a Template modification for the past few days and now im on the User Profile information area of the forums,

Im stuck though, ive found out how to change the header on the Member list view but im stuck on where abouts in the code is this part

Image

I know it must be on the
memberlist_body.html template file but ive been looking hours now and i cannot find it at all,

Any help would be appreciated.

Regards
Chris
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Help Please

Post by Brf »

ChrisRogers wrote: Mon Jun 11, 2018 1:22 pm ive found out how to change the header on the Member list view but im stuck on where abouts in the code is this part

I know it must be on the
memberlist_body.html template file
Nope.
Memberlist view is in memberlist_view.html.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Help Please

Post by Lumpy Burgertushie »

and it is this line: <h2 class="memberlist-title">{PAGE_TITLE}</h2>
what are you wanting to change about it?

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
ChrisRogers
Registered User
Posts: 3
Joined: Mon Jun 11, 2018 1:17 pm

Re: Help Please

Post by ChrisRogers »

Im wanting to put DIV Tags around it to make it have a background,
https://forum.stogamers.com/memberlist.php << So it looks like the header on here,
ChrisRogers
Registered User
Posts: 3
Joined: Mon Jun 11, 2018 1:17 pm

Re: Help Please

Post by ChrisRogers »

Ahh i've managed to do it now hehe, Thanks for your help :-)
User avatar
Mannix_
Registered User
Posts: 1834
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: Help Please

Post by Mannix_ »

ChrisRogers wrote: Mon Jun 11, 2018 2:57 pm Im wanting to put DIV Tags around it to make it have a background,
https://forum.stogamers.com/memberlist.php << So it looks like the header on here,
you don't have to it already has a class as lumpy mentioned
Lumpy Burgertushie wrote: Mon Jun 11, 2018 2:49 pm <h2 class="memberlist-title">{PAGE_TITLE}</h2>
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Help Please

Post by Lumpy Burgertushie »

unfortunately, that class is nowhere to be found in the css for prosilver.

so, surrounding it with a div for your background is probably the best idea.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Help Please

Post by Brf »

Lumpy Burgertushie wrote: Mon Jun 11, 2018 3:41 pm unfortunately, that class is nowhere to be found in the css for prosilver.
Then it should be safe to add it...
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Help Please

Post by Lumpy Burgertushie »

yep, I thought of that as well but you would have to create the div to put the line in anyway and then create the css for that selector to affect the div.
I am curious why there is a class in that line of code that does not exist in prosilver css files. I believe there are other cases of this in the code as well.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Help Please

Post by Brf »

As Mannix_ pointed out, there is already that class on the H2 tag, so there should be no need for a new div. Just add a line to the css for that class.
There are many such classes in the template that are not used in the css.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Help Please

Post by Lumpy Burgertushie »

just curious, how would you add a box with a background color to a line of text? don't you have to have add the background color to a div that the text is inside of?

and, why are there classes used in the code if they have no css for them? what purpose do they serve?

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Help Please

Post by Brf »

Lumpy Burgertushie wrote: Mon Jun 11, 2018 6:52 pm and, why are there classes used in the code if they have no css for them? what purpose do they serve?
I assume they are to allow you to easily changes colors and such without having to edit the html.

Here is a demonstration, using the "Inspect" option in Chrome:
Attachments
demo.png
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Help Please

Post by Lumpy Burgertushie »

didn't know you could do that. however it does apply to the div that it is already in .

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Help Please

Post by Brf »

No. The section I colored is an H2 block. It is not a div.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Help Please

Post by Lumpy Burgertushie »

ok, then what tells that H2 block what its width and height is if not the div it is inside of?
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Post Reply

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