Removing (x views)

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
ikweb
Posts: 7
Joined: Fri Aug 06, 2010 11:58 am

Removing (x views)

Post by ikweb »

Hi All

When looking at your FAQ's the page tells you how many times the artical has been viewed.

Can this be turned off??

For example please see below - the items i would like to disable are in bold.

Questions in Fronter
Fronter Related Notes

■Setting Up Courses
(3 views)
■Embed Video in a Fronter Room
(2 views)
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Removing (x views)

Post by Thorsten »

Hi,

you can remove this in the template file template/default/startpage.tpl

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ikweb
Posts: 7
Joined: Fri Aug 06, 2010 11:58 am

Re: Removing (x views)

Post by ikweb »

Many thanks for your prompt reply.
ikweb
Posts: 7
Joined: Fri Aug 06, 2010 11:58 am

Re: Removing (x views)

Post by ikweb »

Hello

I have looked in this file to remove the code for the amout of views but cant find anything that would surgest this. Below is my code, can someone help me out and advise which part i need to removed to stop these (x views) been displayed.. The STARTPAGE.tpl looks like the code for the banner down the righ hand side of the page only... and not the main page... Thanks for any help.

<div class="content">
<div id="topten">
<h3>{writeTopTenHeader} <a href="feed/topten/rss.php" target="_blank"><img src="images/feed.png" width="16" height="16" alt="RSS" /></a></h3>
<ol>
[toptenList]
<li><a href="{toptenUrl}">{toptenTitle}</a> ({toptenVisits})</li>
[/toptenList]
[toptenListError]
<li>{errorMsgTopTen}</li>
[/toptenListError]
</ol>
</div>
</div>

<div class="content">
<div id="latest">
<h3>{writeNewestHeader}&nbsp;<a href="feed/latest/rss.php" target="_blank"><img src="images/feed.png" width="16" height="16" alt="RSS" /></a></h3>
<ol>
[latestEntriesList]
<li><a href="{latestEntriesUrl}">{latestEntriesTitle}</a> ({latestEntriesDate})</li>
[/latestEntriesList]
[latestEntriesListError]
<li>{errorMsgLatest}</li>
[/latestEntriesListError]
</ol>
</div>
</div>
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Removing (x views)

Post by Thorsten »

Hi,

you have to remove the

Code: Select all

({toptenVisits})
.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply