Resource icon

Unmaintained Mark new thread in some Node 1.0

No permission to download
This add-on allows You chose node in which new Thread will mark. This thread will mark in forum and in NewThreads.
Like this:
скриншот.webp

To install, download upload folder to the root folder and install the addon through the forum control panel.

Also add to EXTRA.CSS this code:
Code:
.discussionListItem .thread_new:after
{
background-color: #ac1212;
content: "NEW";
color: white;
border-radius: 2px;
margin-left: 5px;
padding: 1px 5px;
font-size: 9px; }
You can change this code to change view of marking.


TMS required.
If You dont use TMS, in template thread_list_item
find
Code:
<a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}"
                    title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}"
                    class="{xen:if $thread.hasPreview, PreviewTooltip}"
                    data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">{xen:helper wrap, $thread.title, 50}</a>

and replace to this code:
Code:
<a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}"
                    title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}"
                    class="{xen:if $thread.hasPreview, PreviewTooltip}  {xen:if {$thread.is_new}, 'thread_new'}"
                    data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">{xen:helper wrap, $thread.title, 50}</a>


  • Like
Reactions: DRE
Author
Akinak
Downloads
27
Views
584
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Akinak

Top Bottom