How to remove views in category....

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
ssandecki
Posts: 11
Joined: Wed Jan 30, 2008 11:01 am

How to remove views in category....

Post by ssandecki »

I would like to remove the (Views: XXX) when your looking at all the topics in a category. I want the space to stay there, just remove (Views: XXX) part.

Take a look at http://www.civicseo.com and see what I've done with your great script. :)
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please take a look at the inc/Category.php file and search for "views".

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
stormy
Posts: 3
Joined: Fri Apr 24, 2009 4:42 am

Re: How to remove views in category....

Post by stormy »

I also have the same question but I open the file you mention and search for "views" - not found

I would also like to remove the tags, author, last revised date, translation and everything below that line - I just want a plain and simple display.

Can you tell me where/how to remove these?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to remove views in category....

Post by Thorsten »

Hi,
stormy wrote:I also have the same question but I open the file you mention and search for "views" - not found
Just open inc/Faq.php, look for the function showAllRecords() and change this code:

Code: Select all

                $listItem = sprintf('<li>%s<br /><span class="little">(%d %s)</span></li>',
                    $oLink->toHtmlAnchor(),
                    $visits,
                    $this->pmf_lang['msgViews']);
to

Code: Select all

                $listItem = sprintf('<li>%s</li>', $oLink->toHtmlAnchor());
stormy wrote:I would also like to remove the tags, author, last revised date, translation and everything below that line - I just want a plain and simple display.
You can remove this in the file template/artikel.tpl

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
stormy
Posts: 3
Joined: Fri Apr 24, 2009 4:42 am

Re: How to remove views in category....

Post by stormy »

Thank you Thorsten - that worked perfectly!
mwarda
Posts: 10
Joined: Tue Aug 11, 2009 7:44 pm

Re: How to remove views in category....

Post by mwarda »

Can you give more details about configuring FAQ page, to remove "propose translation" line and "switch language"? I tried removing them in template/artikel.tpl but got starnge results on front page...
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to remove views in category....

Post by Thorsten »

Hi,

what contents did you remove?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mwarda
Posts: 10
Joined: Tue Aug 11, 2009 7:44 pm

Re: How to remove views in category....

Post by mwarda »

I think I have commented out section:
<!-- Translation Form -->
<div class="translation">
{translationForm}
</div>
<!-- /Translation Form -->

What I should modify to disable from the page following:
- 'change language' (I want all working in just one language)
- 'propose translation' line
- 'rate this article' line
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to remove views in category....

Post by Thorsten »

Hi,

do you mean the change language on the left side? You have to remove it in the index.tpl file.

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