forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Zooper on June 25, 2012, 04:12:35 pm

Title: Duplicate Album Title Tags - General SEO
Post by: Zooper on June 25, 2012, 04:12:35 pm
Hi,

I'm currently trying to fix some SEO issues with my gallery.

I can't seem to work out how to prevent duplicate Album Title Tags. I noticed a couple of other threads discussing it in addition to other problems. But I can't work out a simple solution.

Instead of every album page having the same Title Tag, I just want to add maybe a Page 2, Page 3 etc onto the title tags for the subsequent pages in an album.

Thanks for reading and any help or advice is greatly appreciated.

Title: Re: Duplicate Album Title Tags - General SEO
Post by: pckconsult on June 27, 2012, 12:11:53 am
It's been on my To DO list for a while...

One suggestion (I know it probably isn't correct) but I will throw the idea out there anyway, as long as your not using "{CUSTOM_HEADER}" ...
(TEMPLATE.HTML)
<title>{TITLE}</title>  Right?

How about:
<title>{TITLE}{CUSTOM_HEADER}</title>

In cpg config under Custom Header: random.php

create a file with the below php content called random.php in your photo gallery root..

<?
srand(time());
$random = (rand()%1001);
print(" $random");
?>
__________________________________________________________
This is just a simple php random number generator, it will place a random number every time a page is loaded (between 0 and 1000)
Just haven't taken the time to bring in the unique page numbers (under thumbnail) or even if this is the correct direction to do so. This post might get some of the other brains working on a better way or ideas to properly accomplish what you need....

Hope this helps.
-PCK