Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 [2] 3 4   Go Down

Author Topic: Dynamic meta descriptions  (Read 67274 times)

0 Members and 1 Guest are viewing this topic.

Alfinators

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • My Page
Re: Dynamic meta descriptions
« Reply #20 on: January 26, 2008, 01:43:39 am »

THANKS very useful
Logged

Snaver

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
  • h4x
    • Snaver.net
Re: Dynamic meta descriptions
« Reply #21 on: November 09, 2008, 01:26:30 am »

Really excellent work apart from i had to remove these lines of code for it to work apart from that tho its great, oh and added my own custom description thing that you left out..

Code: [Select]
if (mysql_num_rows($result) == 0)
   cpg_die(CRITICAL_ERROR, $lang_errors['non_exist_cat'], __FILE__, __LINE__);
list($cat_desc) = mysql_fetch_array($result);
Logged
 *Link Removed*

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Dynamic meta descriptions
« Reply #22 on: November 09, 2008, 02:56:52 pm »

Really excellent work
Thanks a lot.

Quote
apart from i had to remove these lines of code for it to work apart

Code: [Select]
if (mysql_num_rows($result) == 0)
   cpg_die(CRITICAL_ERROR, $lang_errors['non_exist_cat'], __FILE__, __LINE__);
list($cat_desc) = mysql_fetch_array($result);
These lines extract categories description: what point in removing them?  ???

Quote
added my own custom description thing that you left out..
Are you talking about the default description text in config.inc.php? :P
Logged

RichardG

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Dynamic meta descriptions
« Reply #23 on: November 19, 2008, 03:33:56 am »

I used the displayimage.php mod to generate meta tag descriptions and keywords and have ended up with two of each as my Coppermine is integrated with Joomla. I have only used displayimage as I have pumped all my displayimages into google with a little script which reads the Coppermine database and produces an XML file pointing to all the photos in the database. If anyone is interested I will post it on this forum. It generated 700+ entries and google accepted them all.

I am not sure if search engines will look at two sets of meta tags - does anyone know.

You can see the dual meta tags when looking at the gallery in www.ukbigpeople.co.uk.

Regards

Richard
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Dynamic meta descriptions
« Reply #24 on: November 19, 2008, 11:14:45 am »

I have pumped all my displayimages into google with a little script which reads the Coppermine database and produces an XML file pointing to all the photos in the database. If anyone is interested I will post it on this forum. It generated 700+ entries and google accepted them all.
Sounds like a Google sitemap...  ::)

I am not sure if search engines will look at two sets of meta tags - does anyone know.
If you take a look at Google search results, it seems to take in account only the first one, as expected. Why duplicate tags?
« Last Edit: November 19, 2008, 11:48:23 am by Ludo »
Logged

RichardG

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Dynamic meta descriptions
« Reply #25 on: November 19, 2008, 08:12:27 pm »

Sorry I should have mentioned it was a Google sitemap.

The duplication must be happening because the bridge does not take account of Coppermine and Joomla being together. Not sure where to start looking to add them together. May investigate further and add it here if I find a solution.

Logged

mywedding

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 42
  • MyWedding
    • Wedding
Re: Dynamic meta descriptions
« Reply #26 on: November 20, 2008, 10:37:04 pm »

ludo that is great job, i kissed u,  :-*

thx
Logged
Dreams are free, so free your dreams, "Astrid Alauda"

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Dynamic meta descriptions
« Reply #27 on: November 21, 2008, 08:56:25 am »

 :o :-* ;)
Logged

Jmaj

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Dynamic meta descriptions
« Reply #28 on: November 27, 2008, 04:34:22 pm »

Thanks a lot Ludo, this is what I needed!

I have one question, do you know how I can get it to work for the displayimage page?

I didn't see the <mete description etc in the page source
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Dynamic meta descriptions
« Reply #29 on: November 28, 2008, 08:35:51 am »

As you can see by this example from my gallery, dynamic meta descriptions do appear in image pages source :P ;)
Please make sure you modded properly displayimage.php file, and post a link to an image page in your gallery...
« Last Edit: November 28, 2008, 12:10:14 pm by Ludo »
Logged

whats_up_skip

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: Dynamic meta descriptions
« Reply #30 on: December 08, 2008, 05:05:45 am »

Thanks Ludo this is fantastic.

I was just about to post a request about this sort of thing as Google Webmaster Tools is reporting many problems with the Coppermine without this sort of modification. It says there are duplicate titles and duplicate meta descriptions, which tends to imply that it thinks that it may be duplicate content on the site. Either way it is not giving the Coppermine picture gallery content a good ranking in the SEO results.

I would like to suggest a few additional improvement to this mod:

thumbnails.php
If there are multiple pages, then they will end up with the identical titles and descriptions tags. It would be great if there are multiple pages that the page number was added to the title and description tag.

It would also be great if the heading on the page (H1 tag) was the album name and the subtitle (H3) was the caption. This would greatly improve the page in Google's eyes as the H1 and H3 tags would no longer be the same on all pages (This is really bad from a search engine optimisation point of view).

displayimage.php
Again it would also be great if the heading on the page (H1 tag) was the album name and the subtitle (H3) was the caption. This would greatly improve the page in Google's eyes as the H1 and H3 tags would no longer be the same on all pages (This is really bad from a search engine optimisation point of view).
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Dynamic meta descriptions
« Reply #31 on: December 11, 2008, 03:15:21 pm »

Thanks Ludo this is fantastic.
:-[ :-*

Quote
If there are multiple pages, then they will end up with the identical titles and descriptions tags. It would be great if there are multiple pages that the page number was added to the title and description tag.
That's a good idea, I will work on accomplishing it  ;)

Quote
It would also be great if the heading on the page (H1 tag) was the album name and the subtitle (H3) was the caption. This would greatly improve the page in Google's eyes as the H1 and H3 tags would no longer be the same on all pages (This is really bad from a search engine optimisation point of view).

displayimage.php
Again it would also be great if the heading on the page (H1 tag) was the album name and the subtitle (H3) was the caption. This would greatly improve the page in Google's eyes as the H1 and H3 tags would no longer be the same on all pages (This is really bad from a search engine optimisation point of view).
These suggestions aren't strictly related to this mod indeed...
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Dynamic meta descriptions
« Reply #32 on: December 11, 2008, 03:48:06 pm »

That's a good idea, I will work on accomplishing it  ;)
Done!  ;D ;)
Look at source code of this page for a demo.
Logged

whats_up_skip

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: Dynamic meta descriptions
« Reply #33 on: January 07, 2009, 06:45:19 am »

Done!  ;D ;)
Look at source code of this page for a demo.

I hadn't realised you had updated the code for thumbnails.php. Thanks for that.

This solves the issue of duplicate meta "description", however the "Title" is still duplicated. This could be fixed if current "Title" had "page n" added for all pages after the first page.

There is also the problem of duplicate meta "description" for "Last additions", "Most Viewed" and "Top Rated". This could be resolved in a similar way to the thumbnails.php page number by adding "Last additions" at the end of the "description". The "Title" tag does not need to be changed as this is already different to the standard displayimage.

I suspect these are the duplicate issues that others had mentioned above and that they are not related to bridged application.

Thanks again for all your help with this mod, it is really improving our galleries in the eyes of Google.
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Dynamic meta descriptions
« Reply #34 on: January 07, 2009, 10:29:15 am »

"Title" is still duplicated. This could be fixed if current "Title" had "page n" added for all pages after the first page.

There is also the problem of duplicate meta "description" for "Last additions", "Most Viewed" and "Top Rated". This could be resolved in a similar way to the thumbnails.php page number by adding "Last additions" at the end of the "description".
Done (mod code updated :P )!  8)
Demos:
Last additions
Most viewed
Standard album
Logged

whats_up_skip

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: Dynamic meta descriptions
« Reply #35 on: January 07, 2009, 10:33:23 pm »

You fixed something I had not thought of, but I don't think I explained clearly the other issue.

The "description" tag in the displayimage version of the "Last additions", "Most Viewed" and "Top Rated".

For example:
http://vanrokken.altervista.org/displayimage.php?album=lastup&cat=0&pos=32

<meta name="description" content="A sud del Bue, la vetta erbosa del Maggiorasca, anch&#39;essa deturpata da ripetitori." />

Will be a duplicate of the normal version of the displayimage of this file. It needs to have something like "Last additions" added to the end of the description.

The same would also be the case for "Most Viewed" and "Top Rated".

Thanks again for you help with this. I have tried to make these changes myself, but I just don't have the php skills required.
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Dynamic meta descriptions
« Reply #36 on: January 08, 2009, 12:06:19 am »

The "description" tag in the displayimage version of the "Last additions", "Most Viewed" and "Top Rated".

For example:
http://vanrokken.altervista.org/displayimage.php?album=lastup&cat=0&pos=32
Here it is (mod code updated)!
« Last Edit: January 08, 2009, 01:58:13 am by Ludo »
Logged

whats_up_skip

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: Dynamic meta descriptions
« Reply #37 on: January 08, 2009, 01:26:52 am »

Wow that was fast and Thanks again.

We need to change your status from "Coppermine frequent poster" to Coppermine Legend".
Logged

MAGIKS

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
  • We are collecting a digital "art apples"
    • Vector Images and cliparts
Re: Dynamic meta descriptions
« Reply #38 on: March 25, 2009, 08:36:46 am »

found a bug in this mod,

file index.php

url in the user galleries stop working

*url's removed*
« Last Edit: March 25, 2009, 10:55:56 am by Hein Traag »
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Dynamic meta descriptions
« Reply #39 on: March 25, 2009, 09:48:55 am »

This doesn't look like a CPG-powered site at all...
Logged
Pages: 1 [2] 3 4   Go Up
 

Page created in 0.039 seconds with 19 queries.