Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: wynnyelle - joulukuu 13, 2011, 01:38:21 AP

Otsikko: Taking out the strong tags from reply # on posts
Kirjoitti: wynnyelle - joulukuu 13, 2011, 01:38:21 AP
You know where each post has the reply time and number like this:

« Reply #179222 on Today at 01:29:58 AM »

I want it to all be one weight. I'd like to remove the <strong> declarations from the PHP in display.template.php from the reply # and Today/Yesterday on the posts themselves on threads {not anywhere else} but do not know how to do this. I know about WHERE it would be done, just not how to do it without breaking it.
Otsikko: Re: Taking out the strong tags from reply # on posts
Kirjoitti: dreadk - joulukuu 13, 2011, 11:06:49 AP
Find this part in the Display.Template.php. Modify accordingly.
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>


Otsikko: Re: Taking out the strong tags from reply # on posts
Kirjoitti: wynnyelle - joulukuu 13, 2011, 12:33:24 IP
Thanks. Yeah, I just don't know how to remove it without breaking it. Do I just take out the tags or do any little ' things also go?