inherit
211778
0
Aug 3, 2016 11:36:21 GMT -8
ponzinomics
250
July 2014
ponzinomics
|
Post by ponzinomics on Jul 30, 2014 9:57:52 GMT -8
Hi, I am using the default template. It shows a different icon when a member has threads pending to be read which is right. I would like to set the style of the thread title to bold font-weight for this case of threads with unread posts leaving the normal font-weight for the other. Is there any example of this available? thanks (I initially opened the question here support.proboards.com/thread/519694/icons-new?page=1&scrollTo=5950252)
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 30, 2014 13:25:01 GMT -8
Although the information is present in a thread list template variable ( $[thread.content_class] contains a "new" class if the thread has unread posts) it is not granular enough to create a decision branch in the layout. The presence of this "new" class however is perfect for a CSS rule
.container.threads .list .new .thread-link { font-weight: bolder; }
|
|
inherit
211778
0
Aug 3, 2016 11:36:21 GMT -8
ponzinomics
250
July 2014
ponzinomics
|
Post by ponzinomics on Jul 30, 2014 15:04:18 GMT -8
works like a charm
|
|
lelos
New Member
DriftinG OnlY
Posts: 31
inherit
215720
0
Mar 31, 2015 3:50:45 GMT -8
lelos
DriftinG OnlY
31
November 2014
lelos
|
Post by lelos on Nov 30, 2014 15:08:14 GMT -8
sorry ,but where do i must put this thanks
|
|
inherit
213990
0
Aug 29, 2019 10:08:59 GMT -8
Hernandez
162
September 2014
ziden
|
Post by Hernandez on Dec 1, 2014 10:53:14 GMT -8
Admin Home> Themes> Layout Templates> Boards> Thread List
|
|
d3
New Member
Posts: 16
inherit
241545
0
Mar 7, 2017 5:25:55 GMT -8
d3
16
January 2017
d3
|
Post by d3 on Jan 31, 2017 5:53:07 GMT -8
The following is what is located under 'Thread List':
{foreach $[thread]}
<tr id="$[thread.content_id]" class="$[thread.content_class]">
<td class="icon">$[thread.icon]</td>
<td class="checkbox clickable">$[thread.checkbox]</td>
<td class="main clickable" title="$[thread.short_content]">
<table>
<tr>
<td>$[thread.icons]</td>
<td>
$[thread.labels]
<span class="link target">$[thread]</span>
{if $[thread.pagination]}<div class="ui-micro-pagination">Pages: $[thread.pagination]</div>{/if}
</td>
</tr>
</table>
</td>
<td class="created-by clickable">$[thread.created_by]</td>
<td class="replies clickable">$[thread.replies]</td>
<td class="views">$[thread.views]</td>
<td class="latest last">by $[thread.last_post.created_by]<br />$[thread.last_post.created_on]</td>
</tr>
{/foreach}
{if !$[thread]}
<tr class="last">
<td class="last center" colspan="7">No threads were found.</td>
</tr>
{/if}
Where and how exactly would I insert the code provided by Chris?
Thanks much!
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Jan 31, 2017 10:15:43 GMT -8
Since the code Chris provided is CSS, I'd recommend putting it in at the bottom of your stylesheet, not template.
|
|
d3
New Member
Posts: 16
inherit
241545
0
Mar 7, 2017 5:25:55 GMT -8
d3
16
January 2017
d3
|
Post by d3 on Feb 3, 2017 6:49:52 GMT -8
thank you!
|
|
inherit
260248
0
Jan 19, 2020 13:19:36 GMT -8
davey40
5
January 2020
davey40
|
Post by davey40 on Jan 19, 2020 7:39:52 GMT -8
This doesn't seem to work for me, is the a more recent guide?
|
|
inherit
76165
0
Jul 1, 2018 21:15:48 GMT -8
Beckea
Relax with a good book!
933
April 2006
purplescraps
|
Post by Beckea on Jan 26, 2020 18:55:11 GMT -8
This doesn't seem to work for me, is the a more recent guide? Start a new topic with information like a link and detail of what you need help with.
|
|