SiteMap Title 2.6.3

You have a suggestion for a future version of phpMyFAQ? Then post it here!

Moderator: Thorsten

Post Reply
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

SiteMap Title 2.6.3

Post by UTAKA »

I checked Google Webmaster Tools.
HTML suggestions > Pages with duplicate title tags.
A lot of SiteMap_Title duplicated.

I Add this code ...

Code: Select all

#################################
# 
# SiteMap Title  2.6.3
#
# http://******/sitemap/**/***.html
# or
# http://******/index.php?action=sitemap&letter=**&lang=***
#
#################################
#
###-- OPEN ---------------------
#
 index.php

#
##-- Find -----------------------
#

//
// Handle the Tagging ID
//
$tag_id = PMF_Filter::filterInput(INPUT_GET, 'tagging_id', FILTER_VALIDATE_INT);
if (!is_null($tag_id)) {
    $title    = ' - ' . $oTag->getTagNameById($tag_id);
    $keywords = '';
}

#
#---- After Add ------------------
#

//
// Handle the SiteMap
//
$letter_w = PMF_Filter::filterInput(INPUT_GET, 'letter', FILTER_SANITIZE_STRIPPED);
if (!is_null($letter_w) && (1 == PMF_String::strlen($letter_w))) {
    $title    = ' - ' . $letter_w . '...';
    $keywords = "$letter_w";
}

---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: SiteMap Title 2.6.3

Post by Thorsten »

Hi,

added for phpMyFAQ 2.6.4. Thank you very much!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply