Change Individual Category Background Color

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Change Individual Category Background Color

Post by VOLKERMORD » Thu Mar 07, 2013 2:53 pm

mladiucitelj wrote:Found simple solution!

Open styles/prosilver/template/forumlist_body.html

FIND:

Code: Select all

	<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
		<div class="forabg">
REPLACE WITH:

Code: Select all

	<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
		<div class="forabg"><!-- IF forumrow.S_IS_CAT --> forum-{forumrow.FORUM_ID}<!-- ENDIF -->">
Open styles/prosilver/thme/colour.css at the end insert:

Code: Select all

div.forum-8 {
    background: #F87431;

}
Number 8 is the category id, this #F87431 is colour number. For each category paste same code one after another and edit it.

REFRESH your TEMPLATE and THEME in ACP!
not working see here:
Image
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: Change Individual Category Background Color

Post by mladiucitelj » Thu Mar 07, 2013 3:06 pm

It's working for me.

Change only css file! Double check your edits.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
Christian 2.0
Former Team Member
Posts: 4454
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Change Individual Category Background Color

Post by Christian 2.0 » Thu Mar 07, 2013 3:08 pm

VOLKERMORD wrote:
mladiucitelj wrote:Found simple solution!

Open styles/prosilver/template/forumlist_body.html

FIND:

Code: Select all

	<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
		<div class="forabg">
REPLACE WITH:

Code: Select all

	<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
		<div class="forabg"><!-- IF forumrow.S_IS_CAT --> forum-{forumrow.FORUM_ID}<!-- ENDIF -->">
Open styles/prosilver/thme/colour.css at the end insert:

Code: Select all

div.forum-8 {
    background: #F87431;

}
Number 8 is the category id, this #F87431 is colour number. For each category paste same code one after another and edit it.

REFRESH your TEMPLATE and THEME in ACP!
not working see here:
Image
Change this:

Code: Select all

       <!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
          <div class="forabg"><!-- IF forumrow.S_IS_CAT --> forum-{forumrow.FORUM_ID}<!-- ENDIF -->">
To this:

Code: Select all

       <!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
          <div class="forabg<!-- IF forumrow.S_IS_CAT --> forum-{forumrow.FORUM_ID}<!-- ENDIF -->">

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: Change Individual Category Background Color

Post by mladiucitelj » Thu Mar 07, 2013 3:26 pm

For me it was working before.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: Change Individual Category Background Color

Post by mladiucitelj » Thu Mar 07, 2013 3:33 pm

Ah, sorry, my mistake in pasting the code change. Change the code that Christian 2.0 mentioned.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Change Individual Category Background Color

Post by VOLKERMORD » Thu Mar 07, 2013 3:41 pm

Christian 2.0 wrote:
Change this:

Code: Select all

       <!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
          <div class="forabg"><!-- IF forumrow.S_IS_CAT --> forum-{forumrow.FORUM_ID}<!-- ENDIF -->">
To this:

Code: Select all

<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
          <div class="forabg<!-- IF forumrow.S_IS_CAT --> forum-{forumrow.FORUM_ID}<!-- ENDIF -->">
THX a lot is working very good now ;)
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

Locked

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