News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Changing view of new post

Started by Shawnh159, April 10, 2019, 06:52:25 PM

Previous topic - Next topic

Shawnh159

Is there any way to make a new post head line bold and where it say new in the orange box, can that get bigger?  See attached please

Biology Forums

Open MessageIndex.template.php

Inside, find:

', $topic['is_sticky'] ? '<strong>'

Replace it with:

', $topic['is_sticky'] || ($topic['new'] && $context['user']['is_logged']) ? '<strong>'

That'll ensure it is bold whenever it is new. More coding changes are needed for making the text bigger.

Alternatively, find:

<div ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\');"' : ''), '>

Replace with:

<div',$topic['new'] && $context['user']['is_logged']?' style="font-weight: bold; font-size: 130%;"':'',' ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\');"' : ''), '>

That'll ensure both criteria.

Shawnh159

i dont like playing with code, is there a mod for this?

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Biology Forums

The mod will likely make the same edits. If you want, you could add a class in the style sheet, but still would require a template edit.

Advertisement: