Support Request SupportChange backgroundcolor on index from new reply on post in forum

Support Section
User avatar

Topic Author
TWEagle
Users
Users
Magic user status: Offline
Posts: 74
Joined: Nov 23rd, '14, 19:38
    Windows 10 Chrome

Change backgroundcolor on index from new reply on post in forum

Post by TWEagle »

Your phpBB Version:
Your phpBB Type: Standard phpBB
Extensions installed: Yes
Your knowledge: Basic Knowledge
Boardlink: https://offorum.eu

What have you done before the problem was there?
I have tried a lot but don't find what I need to add to my colours.css file

What have you already tried to solve the problem?
yes

Description and Message
Hey all

I want to change the background color of the forum when there is a new reply in that forum.

I had it earlier but don't remember how to fix it
Image
User avatar

Sniper_E
VIP
VIP
Magic user status: Offline
Posts: 1034
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Change backgroundcolor on index from new reply on post in forum

Post by Sniper_E »

Forumlist_body.html (line 32)

Code: Select all

		<li class="row"<!-- IF forumrow.S_UNREAD_FORUM --> style="background-color: #aaffff"<!-- ENDIF -->>
- - - - - - - - - - - - - - - - - - - - - - - - -
Or go all out and use this in the forumlist_body

Code: Select all

		<li class="row<!-- IF forumrow.S_UNREAD_FORUM --> row2<!-- ENDIF -->">
And add this in the coulours.css

Code: Select all

.row2 {
	background-color: #aaffff;
}
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
User avatar

Topic Author
TWEagle
Users
Users
Magic user status: Offline
Posts: 74
Joined: Nov 23rd, '14, 19:38
    Windows 10 Chrome

Re: Change backgroundcolor on index from new reply on post in forum

Post by TWEagle »

Sniper_E wrote: Mar 29th, '20, 17:43 forumlist_body.html (line 32)

Code: Select all

		<li class="row"<!-- IF forumrow.S_UNREAD_FORUM --> style="background-color: #aaffff"<!-- ENDIF -->>
- - - - - - - - - - - - - - - - - - - - - - - - -
Or go all out and use this in the forumlist_body

Code: Select all

		<li class="row<!-- IF forumrow.S_UNREAD_FORUM --> row2<!-- ENDIF -->">
And add this in the coulours.css

Code: Select all

.row2 {
	background-color: #aaffff;
}
Is the second part correct??

Code: Select all

		<li class="row<!-- IF forumrow.S_UNREAD_FORUM --> row2<!-- ENDIF -->">
User avatar

Sniper_E
VIP
VIP
Magic user status: Offline
Posts: 1034
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Change backgroundcolor on index from new reply on post in forum

Post by Sniper_E »

Yes it is correct. But you can name that class whatever you want... like this below, just add that new class in the .css

forumlist_body.html (line 32)

Code: Select all

		<li class="row<!-- IF forumrow.S_UNREAD_FORUM --> newpost<!-- ENDIF -->">
And add this in the coulours.css

Code: Select all

.newpost {
	background-color: #aaffff;
}
Does that help you understand it? Or like that first edit... use the style="background-color: #aaffff" in the template and be done.
User avatar

Topic Author
TWEagle
Users
Users
Magic user status: Offline
Posts: 74
Joined: Nov 23rd, '14, 19:38
    Windows 10 Chrome

Re: Change backgroundcolor on index from new reply on post in forum

Post by TWEagle »

I have changed it like you said but I don't see it
newpostbg.png
Did I do something wrong
I feel myself dumb
You do not have the required permissions to view the files attached to this post.
User avatar

Topic Author
TWEagle
Users
Users
Magic user status: Offline
Posts: 74
Joined: Nov 23rd, '14, 19:38
    Windows 10 Chrome

Re: Change backgroundcolor on index from new reply on post in forum

Post by TWEagle »

TWEagle wrote: Mar 31st, '20, 07:38 I have changed it like you said but I don't see it

newpostbg.png

Did I do something wrong
I feel myself dumb
Have I done something wrong myself then?
User avatar

Sniper_E
VIP
VIP
Magic user status: Offline
Posts: 1034
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Change backgroundcolor on index from new reply on post in forum

Post by Sniper_E »

Your code looks right

Code: Select all

	<!-- IF not forumrow.S_IS_CAT -->
		<!-- EVENT forumlist_body_forum_row_before -->
		<li class="row<!-- IF forumrow.S_UNREAD_FORUM --> newpost<!-- ENDIF -->">
But in your stylesheet use the li

Code: Select all

li.newpost {
	background-color: #aaffff;
}
Remember to clear server cache and you should be good.

If you still have problems use the !important in your css

Code: Select all

li.newpost {
	background-color: #aaffff !important;
}
User avatar

Topic Author
TWEagle
Users
Users
Magic user status: Offline
Posts: 74
Joined: Nov 23rd, '14, 19:38
    Windows 10 Chrome

Re: Change backgroundcolor on index from new reply on post in forum

Post by TWEagle »

I have done it with the important but no difference

:S

I don't understand it
User avatar

Sniper_E
VIP
VIP
Magic user status: Offline
Posts: 1034
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Change backgroundcolor on index from new reply on post in forum

Post by Sniper_E »

Maybe someone needs to make a post or a reply in a topic that you have not read. Are you not waiting for a new post.
User avatar

Topic Author
TWEagle
Users
Users
Magic user status: Offline
Posts: 74
Joined: Nov 23rd, '14, 19:38
    Windows 10 Chrome

Re: Change backgroundcolor on index from new reply on post in forum

Post by TWEagle »

I have a test topic where I have logged in with another account
newpostbg_01.png
You do not have the required permissions to view the files attached to this post.
User avatar

Sniper_E
VIP
VIP
Magic user status: Offline
Posts: 1034
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Change backgroundcolor on index from new reply on post in forum

Post by Sniper_E »

Are you refreshing your browser to see the change?
Is cssmagic controlling the background color using !important?
Disable magic to check that.
Do you have another extension controlling that background?
Are you editing the wrong files?
You need to find out what's going on on your end because the codes are solid.
User avatar

martin
Admin
Admin
Magic user status: Offline
Posts: 4794
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Change backgroundcolor on index from new reply on post in forum

Post by martin »

He is not a magic user unless using the old outdated free version.
Use this to install an ext on your board no more ftp or path making.
Path too install this ext is ext/boardtools/upload
Download is here Make it easy for us to solve your issues
User avatar

Topic Author
TWEagle
Users
Users
Magic user status: Offline
Posts: 74
Joined: Nov 23rd, '14, 19:38
    Windows 10 Chrome

Re: Change backgroundcolor on index from new reply on post in forum

Post by TWEagle »

martin wrote: Apr 2nd, '20, 18:09 He is not a magic user unless using the old outdated free version.
I haven't got indeed the magic css
User avatar

Sniper_E
VIP
VIP
Magic user status: Offline
Posts: 1034
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Change backgroundcolor on index from new reply on post in forum

Post by Sniper_E »

TWEagle wrote: Apr 2nd, '20, 13:51 I have a test topic where I have logged in with another account

newpostbg_01.png
Magic is not going to make the background work. Did you get that working?
User avatar

Topic Author
TWEagle
Users
Users
Magic user status: Offline
Posts: 74
Joined: Nov 23rd, '14, 19:38
    Windows 10 Chrome

Re: Change backgroundcolor on index from new reply on post in forum

Post by TWEagle »

Sniper_E wrote: Apr 5th, '20, 18:12
TWEagle wrote: Apr 2nd, '20, 13:51 I have a test topic where I have logged in with another account

newpostbg_01.png
Magic is not going to make the background work. Did you get that working?
not yet

I don't understand it