News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

read How Many times?

Started by saw, November 01, 2004, 12:20:49 AM

Previous topic - Next topic

saw

Anybody know how to keep the 'read X times' from displaying? I may want it eventually, but for the time being it's just embarrassin'.

[Unknown]

Heh... it's not hard to remove.

In Themes/yourtheme/Display.template.php, find and remove:
 (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')

-[Unknown]

saw

That's done the trick, thanks. 'Course I'm still stuck with the 'Views' column the next level up, which I'm assuming is there to stay without major surgery... but I'm happy.

This the most helpful forum I've ever come across. I may yet launch a website for the sole purpose of extolling the virtues of [unknown] and others.

ONE other question while I'm at it: I've been making these changes in SMF Default Theme (I know! Bad! Bad!) - although I did initially make a 'Theme1' which lies about the place unused.

My question is, will this cause me grief in future, with upgrades, etc.?

[Unknown]

Yes... I would suggest copying the changed files out to the other theme, personally.

You can use difference utilities to see which are different - like ConTEXT.

Views column, eh?  Well, that has to be removed in a few places... but if we just wanted to remove it from the message index...

MessageIndex.template.php:
<td width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[301], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>

Remove.

<td class="windowbg" valign="middle" width="4%" align="center">
', $topic['views'], '
</td>


You should see something similar in Recent.template.php (twice), and Search.template.php (I think.)

-[Unknown]

Advertisement: