Author Topic: Disable hyperlinked keywords  (Read 2884 times)

0 Members and 1 Guest are viewing this topic.

Offline dilkebol

  • Newbie
  • *
  • Posts: 34
    • View Profile
Disable hyperlinked keywords
« on: January 11, 2009, 03:04:10 PM »
I added few keywords to images.
But as keyword is automatically used by search option as hyperlink & (For exam.http://www.xyz.com/gallery/search.php?search_keywords=Hollywood
[when image is having keyword "Hollwood"]) creates load on sql database.
I like to make these hyperlinks off & only text version will be at keywords
How it can be done ?
Thanks in advance

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Disable hyperlinked keywords
« Reply #1 on: January 11, 2009, 03:11:37 PM »
Hi,

in includes/functions.php
search:
Code: [Select]
$keywords .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($val))."\">".format_text($val, 2)."</a>";replace with:
Code: [Select]
$keywords .= (($keywords != "" ) ? ", " : "")."".format_text($val, 2)."";

Kurt