I want to increase the size of the Topic Font on the Message Index

Started by BPDFamily.com, June 16, 2016, 09:17:59 PM

Previous topic - Next topic

BPDFamily.com

I want to increase the size of the topic font on the message index.

Where is it specified?  MessageIndex.template.php?

What code can I use? Where do I insert?

I tried doing this on CSS but couldn't isolate just the topic tritles on the message index page.

Thanks!

1.1.21


Kindred

I suggest that you upgrade to 2.0.11 and then work from there, since 1.1x is at end of life and will cease support completely, shortly.
Сл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."

BPDFamily.com

Unless support has already stopped, can I get an answer?

We have a high volume board with a lot of customization - upgrading is not a solution to this request nor a simple undertaking.

We will eventually invest in an upgrade.

Kindred

I haven't actually used 1.1.x in years and my 1.1.x test site was deleted over a year ago...   So I don't know exactly...

but, yes, the code is generated in messageindex.template.php
Сл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."

Antechinus

Quote from: Facing the facts on June 16, 2016, 09:17:59 PMI tried doing this on CSS but couldn't isolate just the topic titles on the message index page.

Yup, 1.1.x is ultra-primitive and doesn't have the required id's and classes for CSS targetting. The code in MessageIndex.template.php is this part:

echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';


If you want to tweak it in the CSS I'd just assign a class to that span. Something like:

echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '" class="topic_link">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';


You'll probably want to do the same thing for the unread posts and unread replies listings in Recent.template.php:

<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', $topic['first_post']['link'], ' <a href="', $topic['new_href'], '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a> <span class="smalltext">', $topic['pages'], ' ', $txt['smf88'], ' ', $topic['board']['link'], '</span></td>


And:

' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', ' ', $topic['first_post']['link'], ' <a href="', $topic['new_href'], '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a> <span class="smalltext">', $topic['pages'], '


Those gruesome piles of hyena droppings are a bit trickier, because you don't have a handy span in the markup to throw a class at. What I suggest doing is changing $topic['first_post']['link'] to $topic['first_post']['href'] (which will still work) and then wrapping that in a span. So:

<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', ' <span class=""topic_link">', $topic['first_post']['href'], '</span> <a href="', $topic['new_href'], '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a> <span class="smalltext">', $topic['pages'], ' ', $txt['smf88'], ' ', $topic['board']['link'], '</span></td>


And:

' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', ' <span class=""topic_link">', $topic['first_post']['href'], '</span> <a href="', $topic['new_href'], '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a> <span class="smalltext">', $topic['pages'], '

Antechinus

Actually I had brain in neutral with that last post and forgot a bit. You'd need to add in the anchor tags for the first post link for it to work in Recent.template.php. So for this:

<span class="topic_link">', $topic['first_post']['href'], '</span>

Substitute this:

<a href="' , $topic['first_post']['href'], '" class=""topic_link">', $context['subject'], '</a>

Then targetting .topic_link in the CSS should still deal with them all.


Advertisement: