News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

How Do You Bold a Topic?

Started by lemur21, March 13, 2016, 04:17:20 PM

Previous topic - Next topic

lemur21

Years ago (in my 1.1 application) I set it up so that polls *and* sticky topics were bolded. Obviously, the default is just for sticky topics.

In another thread, someone said that "Sticky is bold + different background, locked is italics, poll is just normal. You can change that in Themes/default/css/index.css."

But, I looked at that file (through the Admin function) and I don't see any place that addresses sticky topics being bolded (nor a place to change polls).

I went back to my original thread (10 years ago!)  http://www.simplemachines.org/community/index.php?topic=119633 -- and apparently, at the time, the changes were made to messageindex.template.php -- not the index.css file. But, I downloaded that file and couldn't find a place to make the changes I made, years ago, there either ....

Any help?


Pipke

I assume you want poll topics wich are not set to be sticky to be bold. ok then go in MessageIndex.template.php

Code (find) Select

<td class="subject ', $alternate_class, '">
<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'] . '\');"' : ''), '>
', $topic['is_sticky'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</strong>' : '';



Code (replace by) Select

<td class="subject ', $alternate_class, '">
<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'] . '\');"' : ''), '>
', $topic['is_sticky'] ? '<strong>' : '', '', $topic['is_poll'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</strong>' : '', $topic['is_poll'] ? '</strong>' : '';
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

lemur21

Thanks so much, Pipke!

I'm not sure why I wasn't able to find the stuff this time (although, it's been 10 years).

Again - thanks ...

Wanna take a swing at the last outstanding issue I have with my migration? :)  http://www.simplemachines.org/community/index.php?topic=544345.0

Advertisement: