Duplicate Album Title Tags - General SEO Duplicate Album Title Tags - General SEO
 

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

Main Menu

Duplicate Album Title Tags - General SEO

Started by Zooper, June 25, 2012, 04:12:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zooper

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.


pckconsult

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