coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: adiboy on March 15, 2005, 07:57:11 PM

Title: keywords from images to the meta tags
Post by: adiboy on March 15, 2005, 07:57:11 PM
hi every one.   i want it to ask if i can have my keywords that i have got on the images on the photo albums  to the keywords of the page so like wen i put my site on google search all the pages are included on it.


i want to get the keywords from images and put them on the meta tags of the page


can it be done


Title: Re: keywords from images to the meta tags
Post by: Joachim Müller on March 15, 2005, 11:06:04 PM
not sure what you refer to: the keyword of a file is already being used as keyword in the meta tag as well. Take a look at the demo: the keywords of http://coppermine.sourceforge.net/demo/displayimage.php?pos=-2 are "strawberry apple fruit" - here's a snippet of the html output:<meta name="keywords" content="strawberry apple fruit">. If this is not what your question is about, please elaborate.

Joachim
Title: Re: keywords from images to the meta tags
Post by: adiboy on March 15, 2005, 11:16:57 PM
do you knwo why i have got 2 keywords on them will googel index every thing?


<META NAME="KEYWORDS" CONTENT="Free, FREE, free, 3d animals, space, aircraft, nature, tropical">


and

<meta name="keywords" content="Kill All The Humans">
Title: Re: keywords from images to the meta tags
Post by: Joachim Müller on March 15, 2005, 11:39:29 PM
post a link to your site.

Joachim
Title: Re: keywords from images to the meta tags
Post by: adiboy on March 16, 2005, 12:06:34 AM
here is the link http://fun.diboy.co.uk
Title: Re: keywords from images to the meta tags
Post by: Joachim Müller on March 16, 2005, 06:21:41 AM
edit http://fun.adiboy.co.uk/themes/caliSkinV6/template.html, find<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META NAME="RESOURCE-TYPE" CONTENT="DOCUMENT">
<META NAME="DISTRIBUTION" CONTENT="GLOBAL">
<META NAME="AUTHOR" CONTENT="{TITLE} gallery">
<META NAME="COPYRIGHT" CONTENT="Copyright CPG-Themes 2004 by DaMysterious">
<META NAME="KEYWORDS" CONTENT="Free, FREE, free, 3d, 3d pictures, erotic art, pinups, artist, cartoon, anime, manga, scenery, scenic, artistic, babes, supermodel, ocean, underwater, photos, movies, animals, space, aircraft, nature, tropical">
<META NAME="DESCRIPTION" CONTENT="{TITLE} is your ultimate place to get free desktop wallpapers, images, pictures, and photos from various categories easily!">
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<META NAME="REVISIT-AFTER" CONTENT="1 DAYS">
<META NAME="RATING" CONTENT="GENERAL">

<META NAME="GENERATOR" CONTENT="Coppermine v1.3 - Copyright 2004 by http://forum.coppermine-gallery.net/">
and replace with<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META NAME="RESOURCE-TYPE" CONTENT="DOCUMENT">
<META NAME="DISTRIBUTION" CONTENT="GLOBAL">
<META NAME="AUTHOR" CONTENT="{TITLE} gallery">
<META NAME="DESCRIPTION" CONTENT="{TITLE} is your ultimate place to get free desktop wallpapers, images, pictures, and photos from various categories easily!">
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<META NAME="REVISIT-AFTER" CONTENT="1 DAYS">
<META NAME="RATING" CONTENT="GENERAL">


Then edit displayimage.php and find    if ($CURRENT_PIC_DATA['keywords']) { $meta_keywords = "<meta name=\"keywords\" content=\"".$CURRENT_PIC_DATA['keywords']."\">"; }  and replace with    if ($CURRENT_PIC_DATA['keywords']) { $meta_keywords = "<meta name=\"keywords\" content=\"".$CURRENT_PIC_DATA['keywords']."Free, FREE, free, 3d, 3d pictures, erotic art, pinups, artist, cartoon, anime, manga, scenery, scenic, artistic, babes, supermodel, ocean, underwater, photos, movies, animals, space, aircraft, nature, tropical\">"; } 

Joachim

P.S. Please note that I consider those keywords as "keyword spamming", as those keywords don't match your site's content at all.