Removing keyword pulling from db from displayimage.php Removing keyword pulling from db from displayimage.php
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Removing keyword pulling from db from displayimage.php

Started by Infernal, January 13, 2008, 02:55:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Infernal

Well you gave me a good idea [GauGau thanks]
How can i eliminate the part of the displayimage.php that pulls information from the db
like the keywords
GauGau once just checked out a cached page from google and showed me my picture keywords in the image page
How can i take those parts out so it will not pull out so many things out of the database special all keywords related things

foulu

Open "displayimage.php"

Search:

if ($CURRENT_PIC_DATA['keywords']) { $meta_keywords = "<meta name=\"keywords\" content=\"".$CURRENT_PIC_DATA['keywords']."\"/>"; }

and replace it with:

// if ($CURRENT_PIC_DATA['keywords']) { $meta_keywords = "<meta name=\"keywords\" content=\"".$CURRENT_PIC_DATA['keywords']."\"/>"; }

if you don't want to show keywords on picture information, then search:

if ($CURRENT_PIC_DATA['keywords'] != "") {
    $info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"thumbnails.php?album=search&amp;search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
}


and replace it with
/*
if ($CURRENT_PIC_DATA['keywords'] != "") {
    $info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"thumbnails.php?album=search&amp;search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
}
*/


Infernal

thanks a lot
i guess the keywords still work it only does not show them right ?