May 23, 2012, 10:53:11 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Please support SEO4smf further development donating here or use paypal button from left menu.
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Please support SEO4smf further development donating here or use paypal button from left menu.
Pages: [1]
  Print  
Author Topic:

Disable profiles in sitemaps

 (Read 2856 times)
0 Members and 1 Guest are viewing this topic.
zuzzu
Newbie
*

Points: 0
Offline Offline

Posts: 1


« on: February 18, 2008, 02:11:33 »

Hello,

in my smf forum i use seo4smf and i get sitemaps ( /forum/sitemaps.php )

Someone can help me to disable url profiles in that sitemaps ?
There is a simple way to do that?

Now i disable profiles directory into the robots.txt ( Disallow: /forum/profiles/ ) but i don't know if is a good seo idea...

...before i put url profiles in sitemap and then i disable from robots.txt, so google send me a warning!!

Thank You!
« Last Edit: February 19, 2008, 06:06:53 by zuzzu » Logged


TinkyWinky
Newbie
*

Points: 0
Offline Offline

Posts: 4



WWW
« Reply #1 on: October 06, 2008, 01:18:27 »

Delete or comment from this part of sitemaps.php:
Code:
    // Most active members?
    if ($modSettings['seo4smf_enable'] != "on")
{
    foreach ($members as $member)
    {
         
        echo '
            <url>
            <loc>', $scripturl, '?action=profile;u=', $member['id'], '</loc>
            <lastmod>', posts_max_time($member['times']), '</lastmod>
            <changefreq>', posts_to_freq($member['times']), '</changefreq>
            <priority>', posts_to_priority(0.3, $board['times']), '</priority>
            </url>';
    }
}
else
{
     
    $scripturl1 = str_replace("/index.php", "", $scripturl);
     
    foreach ($members as $member)
    {
         
        echo '
            <url>
            <loc>', $scripturl1, '/profiles/', $member['name'], '-u', $member['id'], '.html</loc>
            <lastmod>', posts_max_time($member['times']), '</lastmod>
            <changefreq>', posts_to_freq($member['times']), '</changefreq>
            <priority>', posts_to_priority(0.3, $board['times']), '</priority>
            </url>';
         
    }
}
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
Valid XHTML 1.0! Valid CSS!