Dynamic meta descriptions - Page 2 Dynamic meta descriptions - Page 2
 

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

Dynamic meta descriptions

Started by wipqozn1, May 08, 2007, 06:00:20 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Alfinators


Snaver

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..

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

Ludo

Quote from: Snaver on November 09, 2008, 01:26:30 AM
Really excellent work
Thanks a lot.

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

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?  ???

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

RichardG

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

Ludo

#24
Quote from: RichardG on November 19, 2008, 03:33:56 AMI 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...  ::)

Quote from: RichardG on November 19, 2008, 03:33:56 AMI 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?

RichardG

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.


mywedding

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

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

Ludo


Jmaj

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

Ludo

#29
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...

whats_up_skip

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).

Ludo

Quote from: whats_up_skip on December 08, 2008, 05:05:45 AM
Thanks Ludo this is fantastic.
:-[ :-*

QuoteIf 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  ;)

QuoteIt 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...

Ludo

Quote from: Ludo on December 11, 2008, 03:15:21 PM
That's a good idea, I will work on accomplishing it  ;)
Done!  ;D ;)
Look at source code of this page for a demo.

whats_up_skip

Quote from: Ludo on December 11, 2008, 03:48:06 PM
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.

Ludo

Quote from: whats_up_skip on January 07, 2009, 06:45:19 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

whats_up_skip

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.

Ludo

#36
Quote from: whats_up_skip on January 07, 2009, 10:33:23 PM
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)!

whats_up_skip

Wow that was fast and Thanks again.

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

MAGIKS

#38
found a bug in this mod,

file index.php

url in the user galleries stop working

*url's removed*

Ludo

This doesn't look like a CPG-powered site at all...