Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 07:55 am EST

Geeklog Forums

Hide view count of stories in search results


Vil

Anonymous
Hi all, where is the place to hide the view count of stories in the search results? I have found the corresponding THTML templates in layout/THEME/search/*, but they only include {data} tags for the actual results, so I am a bit .. stuck.

Anyone can point me in the right direction? I suppose it could be in lib-common.php or so.

Thanks,
Vil
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It's actually buried in the search class, /path/to/geeklog/system/classes/search.class.php

Search for 'hits'.

bye, Dirk
 Quote

Vil

Anonymous
Thanks Dirk!

I actually found a bug in search.class.php.

The hyperlink tag ("a") is not closed for the linked story title.

The buggy line #312 is:

Text Formatted Code
$row = array('<a href="' .$_CONF['site_url'] . $articleUrl . '">' . stripslashes($A['title']), $thetime[0], ...
 


and should read:

Text Formatted Code
$row = array('<a href="' .$_CONF['site_url'] . $articleUrl . '">' . stripslashes($A['title']) . '</a>', $thetime[0], ...
 


I already /bug'ed it.

Vil
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Vil: The hyperlink tag ("a") is not closed for the linked story title.

Thanks!

bye, Dirk
 Quote

All times are EST. The time is now 07:55 am.

  • 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