XMB Forum Software

[New] Change the layout of lastpost in index

Matteo1996 - 8-16-2023 at 02:13 AM

Full Board URL: http://localhost/
XMB Version: 1.9.12

Hello guys and girls.

I want to change a bit the layout of the last post columns in the index page. Actually I want to put the username in bold and not to link to the thread. But in the templates I can't find wich part edit. I only found the variable (lastpost) but I have no idea from where edit it.

Can someone help me?
Thank you!

lottos - 8-16-2023 at 02:29 AM

UNTESTED AND MAY NOT WORK. BACKUP FIRST.

forumdisplay.php
change
$lastpost = "$lastreplydate {$lang['textat']} $lastreplytime<br />{$lang['textby']} $lastpostname";
to
$lastpost = "$lastreplydate {$lang['textat']} $lastreplytime<br />";


Template Name: index_forum_lastpost
change
<td bgcolor="{$THEME['altbg1']}" nowrap="nowrap"><a href="./viewthread.php?goto=lastpost&amp;fid=$forum[fid]" title="$lang[altlastpost]"><img src="{$THEME['imgdir']}/lastpost.gif" border="0" alt="$lang[altlastpost]" /></a></td>
to
<td bgcolor="{$THEME['altbg1']}" nowrap="nowrap"><a href="./viewthread.php?goto=lastpost&amp;fid=$forum[fid]" title="$lang[altlastpost]"><img src="{$THEME['imgdir']}/lastpost.gif" border="0" alt="$lang[altlastpost]" /></a> $lang['textby'] $lastpostname</td>