News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Topic icons on search page?

Started by blow, August 29, 2010, 02:52:12 PM

Previous topic - Next topic

blow

I use SMF 2.0 RC3 and I would know if it's possible to show the topic icons on search results page, like it was on previous versions.

I mean here:


It's not necessary to remove the numbers, but it would be very helpful to have the icons in there.
Is it possible?

Thanks in advance.

Joker™

Make backup of your file first before editing it

Open themes\default\Search.template.php

Find:
<h5>', $topic['board']['link'], ' / <a href="', $scripturl, '?topic=', $topic['id'], '.msg', $message['id'], '#msg', $message['id'], '">', $message['subject_highlighted'], '</a></h5>


Replace it with:

<h5><img src="', $topic['first_post']['icon_url'], '" alt="" />', $topic['board']['link'], ' / <a href="', $scripturl, '?topic=', $topic['id'], '.msg', $message['id'], '#msg', $message['id'], '">', $message['subject_highlighted'], '</a></h5>
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

blow


Advertisement: