MyBB Community Forums

Full Version: Reset all thread views to zero?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Is there a way to reset all thread views to zero or remove the column all together?
You can reset all thread views to zero by running the below query:
UPDATE `mybb_threads` SET `views`='0'

Or alternatively you can remove the column altogether by doing the following:

Navigate to AdminCP -> Templates & Style -> Templates -> Your Theme's Templates -> Forum Display Templates -> forumdisplay_thread

Find & Remove:
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>

Navigate to AdminCP -> Templates & Style -> Templates -> Your Theme's Templates -> Forum Display Templates -> forumdisplay_threadlist

Find & Remove:
<td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']}</strong></span></td>
Hello,

I removed all of the code below but the thread views are still there. I am using the latest mybb if it helps any!







Or alternatively you can remove the column altogether by doing the following:

Navigate to AdminCP -> Templates & Style -> Templates -> Your Theme's Templates -> Forum Display Templates -> forumdisplay_thread

Find & Remove:
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>

Navigate to AdminCP -> Templates & Style -> Templates -> Your Theme's Templates -> Forum Display Templates -> forumdisplay_threadlist

Find & Remove:
<td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']}</strong></span></td>
[/quote]
Forum URL? Smile