Advanced search  

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]

Pages: [1]   Go Down

Author Topic: META name=keywords for thumbail.php  (Read 3614 times)

0 Members and 1 Guest are viewing this topic.

eddieh

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • De Ebonist
META name=keywords for thumbail.php
« 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: META name=keywords for thumbail.php
« Reply #1 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_"/>';
Logged

eddieh

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • De Ebonist
Re: META name=keywords for thumbail.php
« Reply #2 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: META name=keywords for thumbail.php
« Reply #3 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
Logged

eddieh

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • De Ebonist
Re: META name=keywords for thumbail.php
« Reply #4 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
Logged

eddieh

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • De Ebonist
Re: META name=keywords for thumbail.php
« Reply #5 on: February 02, 2011, 02:49:44 pm »

Sorry i hit post instead of preview.

thanks for the quick reply
Cheers Eddie
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: META name=keywords for thumbail.php
« Reply #6 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'].'" />' : '';
Logged

eddieh

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • De Ebonist
Re: META name=keywords for thumbail.php
« Reply #7 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.