Welcome to Geeklog, Anonymous Friday, November 08 2024 @ 10:52 pm EST
Geeklog Forums
Any way to hide [Views: 0]?
Chris
Anonymous
Hi,
When you have a story that has no \"Body text\", i.e. only an \"Intro text\", the story can never have more than zero views (an admin can bypass that, as has happened on my site). And the line underneath the story says, \" Post a comment [ Views: 0 ]\".
Is there any way to remove the \"[Views: 0]\" text when there is no body text? I have looked in lib-common.php, but the lang_views variable is always output to the $article array via set_var before you get to the part that adds the intro text.
Thanks guys,
Chris
http://www.keeponfighting.net
7
9
Quote
Chris
Anonymous
Hi Dirk,
I could do that, but I only want to remove them IF there is no body text for that story, as it is silly to show [Views: 0] because it can never change.
If I remove them from those two files you mentioned, then they will never show regardless of whether a story has had zero or more views.
--
Thanks,
Chris
http://www.keeponfighting.net
11
9
Quote
Chris
Anonymous
Correction, I meant, to hide the view total when there is no bodytext AND no comments. The story hits won\'t increase unless someone comments on a story without a bodytext.
Sorry for the confusion.
Chris.
9
12
Quote
Status: offline
rawdata
Forum User
Full Member
Registered: 02/17/03
Posts: 236
Aaaah, the forum ate up my hack. You can see it here instead.
10
8
Quote
All times are EST. The time is now 10:52 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