Removing the Language and Times Viewed
Moderator: Thorsten
Removing the Language and Times Viewed
When an article is poseted to a catagory, the language it is written in appears in paranthesis and the numer of views appears below it. My FAQ will all be in english and I dont want the users to see the number of times a particular item was viewed. How do I get rid of them? My guess is I need to modify something in Functions.php Any help will be greatly appreciated
-
- Posts: 8
- Joined: Wed Feb 02, 2005 6:21 am
That's weird. Exactly what you want to do I just did today. 
In function.php edit the following line:(should be around line 154)
To look like this:
That's all you need. This will remove the language id and the view count from the article list.

In function.php edit the following line:(should be around line 154)
Code: Select all
$output .= "\t<li><a href=\"".$_SERVER["PHP_SELF"]."?".$sids."action=artikel&cat=".$row->rubrik."&id=".$row->id."&artlang=".$row->lang."\">".stripslashes($row->thema)."</a> [".$row->lang."]<br /><div class=\"little\">(".$visits." ".$PMF_LANG["msgViews"].")</div></li>\n";
Code: Select all
$output .= "\t<li><a href=\"".$_SERVER["PHP_SELF"]."?".$sids."action=artikel&cat=".$row->rubrik."&id=".$row->id."&artlang=".$row->lang."\">".stripslashes($row->thema)."</a><br /></li>\n";
Hi,
just open the file inc/functions.php and look for the function generateTopTen() and remove the following code:
bye
Thorsten
just open the file inc/functions.php and look for the function generateTopTen() and remove the following code:
Code: Select all
".$row->visits." ".$PMF_LANG["msgViews"]."
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hiding Language & View Hits
Hello,
I would like to still be able to see the number of hits myself, but not show the data publicly. Is there a way to include this info from the admin area?
A workaround might be to make the the same color as the background. That way I can highlight over it to see the hits when I want to, but noone else will know they are there.
But when I try to insert (or similar variations) it returns a blank page...
Is there a way to code this differently so it will be the same background color?...I bet stylesheet editing might do it too, but I don't completely understand that either - just enough to make changes by trial & error.
Thanks for your work.
-Holgate-
www.chingdiscgolf.com
I would like to still be able to see the number of hits myself, but not show the data publicly. Is there a way to include this info from the admin area?
A workaround might be to make the
Code: Select all
".$row->visits." ".$PMF_LANG["msgViews"]."
But when I try to insert
Code: Select all
<font color="#172244">".$row->visits." ".$PMF_LANG["msgViews"]."</font>
Is there a way to code this differently so it will be the same background color?...I bet stylesheet editing might do it too, but I don't completely understand that either - just enough to make changes by trial & error.
Thanks for your work.
-Holgate-
www.chingdiscgolf.com
Hi,
which version do you use?
Then I can post a hack for you....
bye
Thorsten
which version do you use?
Then I can post a hack for you....
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
this is planned for a future version.
bye
Thorsten
this is planned for a future version.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist