Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: supernova777 on November 16, 2016, 09:29:24 AM

Title: changing "last post by" to "last post date/time"
Post by: supernova777 on November 16, 2016, 09:29:24 AM
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 ?
Title: Re: changing "last post by" to "last post date/time"
Post by: Sir Osis of Liver on November 16, 2016, 11:13:49 AM
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>';


Title: Re: changing "last post by" to "last post date/time"
Post by: supernova777 on November 16, 2016, 09:08:16 PM
thanks very much!!!!!!!!!
Title: Re: changing "last post by" to "last post date/time"
Post by: supernova777 on November 18, 2016, 09:53:12 PM
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
Title: Re: changing "last post by" to "last post date/time"
Post by: Sir Osis of Liver on November 18, 2016, 10:40:47 PM
/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.