Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 04:55 pm EST

Geeklog Forums

Hide "Views: XX" from everyone except Admin?


Status: offline

xardoz

Forum User
Regular Poster
Registered: 02/24/04
Posts: 98
Is it possible to hide the view count for stories from everyone except the admin or a select group?

Thanks!
 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
Yes. . . sort of!

In featuredstorytext.thtml and storytext.thtml, you can comment out the views and hits like this:
Text Formatted Code
 <!-- {lang_views}:{story_hits} -->

 

Then, you can view a list of stories and hits (only of your top ten stories) on your statistics page.

On all of my themes, I have removed the menu from the header. I have a 'Statistics' menu item (from the menu plugin) that only I can see.

Hope it helps!

Blessings!

inSPIREmin
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: offline

eyecravedvd

Forum User
Full Member
Registered: 06/09/03
Posts: 152
You can see the hits when you edit the story. They're listed there as well. That's what I do.
Shane | www.EyeCraveDVD.com
 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
Even Better!!!

Blessings!

inSPIREmin
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
Quote by inspiremin:
In featuredstorytext.thtml and storytext.thtml, you can comment out the views and hits

commenting out variables in the template files won't actually work to stop the function's output. the output is just commented out. if you view source you'll still see the hits/views.
 Quote

Status: offline

xardoz

Forum User
Regular Poster
Registered: 02/24/04
Posts: 98
Cool! You guys all ROCK!
 Quote

All times are EST. The time is now 04:55 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content