News:

Wondering if this will always be free?  See why free is better.

Main Menu

Remove count on topics

Started by aaronsnet, August 28, 2008, 02:52:29 PM

Previous topic - Next topic

aaronsnet

Did a search, no luck.

Does anyone know how to remove the count that is displayed on each post that shows the number of views? Our forum is a bit small, and would like to get rid of that.

ccbtimewiz

You'll be needing to edit the files directly.

Open display.template.php

Find:
', $txt['topic'], ': ', $context['subject'], '  (', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')

Replace with:
', $txt['topic'], ': ', $context['subject'], '

ccbtimewiz

Quote from: Deprecated on August 28, 2008, 03:12:16 PM
Go into your Admin -> Features and Options -> Core Features -> Advanced Profile Fields. If it's not enabled, enable it first. Then find Posts and uncheck Active, then hit Save. That should do it. :)

That will not do it. That will not remove the view count as the OP has requested.

aaronsnet

What about for Version: 1.1 display_template.php .. i like the classic style

ccbtimewiz

The instructions above was for the default theme on SMF 2.0.

This was posted in the 2.0 support board-- so why do you want instructions for SMF 1.1.x?

aaronsnet

Oooopps. I will repost in the appropriate forum. I am sure that this will help someone in the future with 2.x though! Thanks for the help, as I will need to know this when I upgrade.

ccbtimewiz

Quote from: aaronsnet on August 28, 2008, 04:16:16 PM
Oooopps. I will repost in the appropriate forum. I am sure that this will help someone in the future with 2.x though! Thanks for the help, as I will need to know this when I upgrade.

No need to post another topic, I guess...

The instructions for 1.1.x aren't that much different.

Open display.template.php

Find:
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>


Replace with:
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $context['subject'], ' &nbsp;
</td>

aaronsnet

Thanks. What about remove the "views" in the board view?

greyknight17

Please post in the 1.x support forums. I think that's far enough ;)

Advertisement: