MyBB Community Forums
[Installing] How to disable "Last post" view on forum list page - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [Installing] How to disable "Last post" view on forum list page (/thread-146720.html)



How to disable "Last post" view on forum list page - ugcheleuce - 10-15-2013

Hello everyone

I've just installed MyBB version 1611 and I'm busy tweaking it.

The forum list page shows four headings, namely Forum, Threads, Posts, and Last Post. I would like to remove the display of "Last post" on the forum list page. Is that possible?

Thanks
Samuel


RE: How to disable "Last post" view on forum list page - .m. - 10-16-2013

forumdisplay_threadlist template consists of code similar to below
<td class="tcat" align="right" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
forumdisplay_thread template consists of code like below
<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>

above codes can be removed or commented out (and column span may be adjusted if required) for your requirement


RE: How to disable "Last post" view on forum list page - ugcheleuce - 10-16-2013

(10-16-2013, 04:41 AM).m. Wrote: ... above codes can be removed or commented out (and column span may be adjusted if required) for your requirement.

Wow, thanks! One really gets to know a piece of software only once you get bit under the hood, don't you?

(10-16-2013, 04:41 AM).m. Wrote: forumdisplay_threadlist template consists of code similar to below...

I find "forumdisplay_threadlist" only in the file mybb_theme.xml, which is in the "install" subfolder, which I deleted after I installed MyBB. Does that mean that I have to reinstall MyBB to effect this change? Or is there a certain procedure that I must follow to update a template?

Thanks!
Samuel


RE: How to disable "Last post" view on forum list page - Destroy666 - 10-16-2013

Reinstall? Just change the code in them and save. Nothing more.

Then if changes hadn't taken effect (not likely to happen), you should press CTRL + F5 and/or SHIFT + F5 on the showthread.php page.


RE: How to disable "Last post" view on forum list page - .m. - 10-16-2013

just a note: MyBB forum templates and themes should be modified through admin panel.


RE: How to disable "Last post" view on forum list page - ugcheleuce - 10-16-2013

(10-16-2013, 07:34 PM).m. Wrote: MyBB forum templates and themes should be modified through admin panel.

Thanks for telling me :-) My first instinct was to think that I should modify files directly and upload the changed versions.