News:

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

Main Menu

Sticky: and Locked: infront of appropiate Topics...

Started by augrunt, February 07, 2006, 08:11:39 AM

Previous topic - Next topic

augrunt

                       <span style="', $topic['is_sticky'] ? 'font-weight: bold;' : '', $topic['is_locked'] ? 'font-style: italic;' : '', '" title="', $topic['first_post']['preview'], '">
                                ', $topic['is_sticky'] ? 'Sticky: ' : ($topic['is_locked'] ? 'Locked: ' : ''), ' ', $topic['first_post']['link'], '
                        </span>';


This is the code i found while browsing the forums, i cannot seem to place it anywhere in the messageindex.template.php

can anyone tell me exactly where to place it? and give me an example also just incase i miss a bracket or 2 that causes the template to fail :D. thanks!

Advertisement: