forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: eddieh on February 02, 2011, 12:51:35 pm

Title: META name=keywords for thumbail.php
Post by: eddieh on February 02, 2011, 12:51:35 pm
I use the pluggin EnlargeIt so you never get to the Displayimage.php
I would like to have meta tag Keywords working in the thumbnail.php
I searched the forum and read that this tag should  be there already

http://forum.coppermine-gallery.net/index.php/topic,55366.msg270308.html#msg270308

But it's  not working for me annyway. Is there something i overlooked? And otherwise
how can i get it to work? 

Thanks in advance Eddie Hillegers

Coppermine: http://www.ebonist.nl/portfolio/index.php
Title: Re: META name=keywords for thumbail.php
Post by: Αndré on February 02, 2011, 01:48:42 pm
how can i get it to work? 

Open thumbnails.php, find
Code: [Select]
$meta_keywords = '';and replace with
Code: [Select]
$meta_keywords = '<meta name="keywords" content="_current_picture_keywords_"/>';
Title: Re: META name=keywords for thumbail.php
Post by: eddieh on February 02, 2011, 02:17:52 pm
Done that and the meta show up like this in the sourcecode

Code: [Select]
<meta name="keywords" content="_current_picture_keywords_"/>
It generates the tag but not the keywords.

thanks  for the quick reaply.

Cheers Eddie
Title: Re: META name=keywords for thumbail.php
Post by: Αndré on February 02, 2011, 02:27:25 pm
Which keywords should be displayed? The album keywords?

7. Be detailed
Post as many details as possible
Title: Re: META name=keywords for thumbail.php
Post by: eddieh on February 02, 2011, 02:46:56 pm
Quote from: Αndré
Which keywords should be displayed? The album keywords?


Album keywords or thumbnail keywords by the nature of my work
those are always the same per album and it's thumbnails therein

Sorry if i was incomplete with my reaction.

after i changed the code in thumnail.php and uploaded it
i went to http://www.ebonist.nl/portfolio/thumbnails.php?album=35

and checked the sourcecode of the page. That gave me the following
in the header

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<title>Amsterdam - Meubelmakerij de Ebonist</title>
<meta name="keywords" content="_current_picture_keywords_"/>

So it does generate the tag but not the keywords
Title: Re: META name=keywords for thumbail.php
Post by: eddieh on February 02, 2011, 02:49:44 pm
Sorry i hit post instead of preview.

thanks for the quick reply
Cheers Eddie
Title: Re: META name=keywords for thumbail.php
Post by: Αndré on February 02, 2011, 03:14:44 pm
Open thumbnails.php, find
Code: [Select]
$meta_keywords = '';and replace with
Code: [Select]
$meta_keywords = $CURRENT_ALBUM_DATA['keyword'] ? '<meta name="keywords" content="'.$CURRENT_ALBUM_DATA['keyword'].'" />' : '';
Title: Re: META name=keywords for thumbail.php
Post by: eddieh on February 02, 2011, 03:44:03 pm
Code: [Select]
<meta name="keywords" content="kersen" />
You nailed it! great!

Thank you very much cheers Eddie

I'd buy you a couple of nice Amsterdam beers if i get to know your adres
i,ll send them to you.