Page 2 of 4

Re: Use custom forum images and coloured notification.

Posted: 26 Apr 2010, 05:39
by heredia21
Sir Xiradorn » 18 Apr 2010, 01:02 wrote:Wery good work.....i had add a small addon to colour also the unread topic title
In viewforum_body.html i modified this

Code: Select all

<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
in this way

Code: Select all

<a href="{topicrow.U_VIEW_TOPIC}"<!-- IF topicrow.S_UNREAD_TOPIC -->style="color:#FF0000;"<!-- ENDIF --> class="topictitle">{topicrow.TOPIC_TITLE}</a>
Nice addition! But when you hit view new post, the unread colors are not red there. Is there something else to change for that?

Re: Use custom forum images and coloured notification.

Posted: 26 Apr 2010, 07:14
by Stoker

Re: Use custom forum images and coloured notification.

Posted: 26 Apr 2010, 20:51
by heredia21
Thanks so the last search is the one that will change the "view new post" unread color and active, etc..?

Also what if we have the last post mod on the index. How can we change that color as well. Would it fall under that last search snippet you made?

Re: Use custom forum images and coloured notification.

Posted: 26 Apr 2010, 20:57
by cisco007
doesn't that mod already have it's own setting in the ACP somewhere?

Re: Use custom forum images and coloured notification.

Posted: 26 Apr 2010, 21:59
by heredia21
cisco007 » 26 Apr 2010, 20:57 wrote:doesn't that mod already have it's own setting in the ACP somewhere?
You can change the color of the last posts. But it will not change if it is unread.

Re: Use custom forum images and coloured notification.

Posted: 26 Apr 2010, 22:14
by cisco007
i wonder what this snippet does then! :? :? :? (me being sarcastic)

Re: Use custom forum images and coloured notification.

Posted: 26 Apr 2010, 22:15
by heredia21
Lol it does just that!. But I am talking about if you are using the last posts title mod by NV the unread color stay default. On the index page.

Re: Use custom forum images and coloured notification.

Posted: 26 Apr 2010, 22:17
by cisco007
if you have that installed you will have to modify this code around that mod!

Re: Use custom forum images and coloured notification.

Posted: 27 Apr 2010, 23:18
by Steve
1st post updated with new edits click on show spoiler to re-do any edits if already installed to fix it.
view here for coloured notification forum and topics : viewtopic.php?f=9&t=648
just dont do these edits in the 1st post.
Open styles/prosilver/template/forumlist_body.html
find:

Code: Select all

<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a><br />
replace with:

Code: Select all

<!-- IF forumrow.S_UNREAD_FORUM --><a href="{forumrow.U_VIEWFORUM}" class="forumtitle" style="color:#FF0000;">{forumrow.FORUM_NAME}</a><!-- ELSE --><a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a><!-- ENDIF --><br />
Sorry!

Re: Use custom forum images and coloured notification.

Posted: 27 Apr 2010, 23:29
by heredia21
Thanks a lot Steve. It worked. and aligned.

Anyone have the search_result.html with red coloured unread notification? I followed your steps for forum and posts, and it worked. But cant get Stoker's search unread color notification to work. Posted my file, but still nothing happens.