News:

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

Main Menu

changing "last post by" to "last post date/time"

Started by supernova777, November 16, 2016, 09:29:24 AM

Previous topic - Next topic

supernova777

on my site here: http://www.oldschooldaw.com/forums/index.php
id like to change the "last post by:" to show only the last date/time that a post was made
and not show the username at all

can anyone help me ?

Sir Osis of Liver

BoardIndex.template.php



/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

supernova777


supernova777

do i have to make a new file called that? because i only have one called Board Index .php but not one called template?

where do i put this code?
forums/Sources?
or under /forums/Themes?

my specific theme im using doesnt have a file named BoardIndex.template.php, only has index.template.php

Sir Osis of Liver

/Themes/default/BoardIndex.template.php for default Curve, or/Themes/themename/BoardIndex.template.php for whichever theme you're using if it has the file, else it will use the /default template.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: