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: Duplicate Album Title Tags - General SEO  (Read 1641 times)

0 Members and 1 Guest are viewing this topic.

Zooper

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Duplicate Album Title Tags - General SEO
« 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.

Logged

pckconsult

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 9
  • ...so do you remember 150 bps...
    • Test Site for Coppermine
Re: Duplicate Album Title Tags - General SEO
« Reply #1 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

Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.