inherit
142718
0
Aug 26, 2024 21:33:45 GMT -8
Tiffamu
187
July 2009
tiffamu
|
Post by Tiffamu on Feb 13, 2017 16:11:14 GMT -8
merwinproject.proboards.com/I'm using a board remodel code that I found on adoxographyv2.boards.net/ and reached out to the creator to add to the code but never received a response. I was just wondering if a "New" icon could be added to where it has the "Threads" and "Posts" stats under the board descriptions. If there is a way, I'd like it to differentiate between new threads vs new posts.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 13, 2017 16:21:36 GMT -8
Hi, Tiffamu . There's a variable that checks against new posts within the board, but new threads aren't treated any differently by the board list. The template either sees that the board has new unread posts within it or it doesn't, regardless of whether or not that unread post was the first post in a new thread. In Themes > Layout Templates > Board > Board List the easiest way to add an icon based on whether or not a board has new posts in it is to check against the $[board.is_new] variable. This must be contained somewhere inside of your {foreach $[board]} statement.
|
|
inherit
142718
0
Aug 26, 2024 21:33:45 GMT -8
Tiffamu
187
July 2009
tiffamu
|
Post by Tiffamu on Feb 13, 2017 16:59:16 GMT -8
Thanks! How would I get it to show an image in a specific spot? I'm trying to test it but it doesn't want to work for me.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 13, 2017 17:00:32 GMT -8
Are you using the HTML <img> tag? It should be something along the lines of this:
|
|
inherit
142718
0
Aug 26, 2024 21:33:45 GMT -8
Tiffamu
187
July 2009
tiffamu
|
Post by Tiffamu on Feb 13, 2017 17:11:57 GMT -8
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 14, 2017 9:29:44 GMT -8
It looks like you have one section that renders when the board is the last one on the list and another that renders normally. You've added it to the former, but not the latter, so what's happening is the new icon is only showing on the last board on the list if it has new posts.
You'll need to add the new line you added to the Last Post section found a little farther down your template as well.
|
|
inherit
142718
0
Aug 26, 2024 21:33:45 GMT -8
Tiffamu
187
July 2009
tiffamu
|
Post by Tiffamu on Feb 14, 2017 23:28:25 GMT -8
Oh I found it and it's working now. Thanks!
|
|