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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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 ?