Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (6 votes)

100% thumbs up 0% thumbs down

How would you rate this answer?



Thank you for rating this answer.

Google News requires at least 3 digits to crawl. How can I ensure this for Interspire Website Publisher?

Google News states that you need at least 3 digits in your URLs for it to be considered to be crawled. More information here.

Interspire Website Publisher can be modified to have at least 3 digits in all the urls. Just open up /admin/includes/classes/class.helper.php

find code like (depending in your version this may be different, so look for the function name):

function ArticleLink($ArticleId, $ArticleTitle, $ArticlePage=1)
{
if($GLOBALS['AL_CFG']['useids'] == 1){
$link = sprintf("%s/%s/%d/%d/", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS['AL_LANG']['urlArticles'], $ArticleId, $ArticlePage);
}else{

$suffix = sprintf("%s/%s%d.html", AL_HELPER::_MakeArticleURLSafe($ArticleTitle), AL_HELPER::_MakeArticleURLSafe($GLOBALS['AL_LANG']['artPage']),$ArticlePage);

$link = sprintf("%s/%s/%d/%d/%s", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS['AL_LANG']['urlArticles'], $ArticleId, $ArticlePage, $suffix);
}
return $link;
}


and swap it to:

function ArticleLink($ArticleId, $ArticleTitle, $ArticlePage=1)
{
    $number = strlen($ArticleTitle) + 100 + $ArticleId;
    if($GLOBALS['AL_CFG']['useids'] == 1){
        $link = sprintf("%s/%s/%d/%d/%d/", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS['AL_LANG']['urlArticles'], $ArticleId, $ArticlePage,$number);
    }else{
        $suffix = sprintf("%s/%s/%s%d.html", $number, AL_HELPER::_MakeArticleURLSafe($ArticleTitle), AL_HELPER::_MakeArticleURLSafe($GLOBALS['AL_LANG']['artPage']),$ArticlePage);
        $link = sprintf("%s/%s/%d/%d/%s", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS['AL_LANG']['urlArticles'], $ArticleId, $ArticlePage, $suffix);
    }
    return $link;
}


This will now ensure all Article URLs have 3 or more digits in the URL.

If you have trouble with this, send in a support ticket via your client area.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software