Page 3 of 5

Re: Topic SiteMap

Posted: Fri Jul 03, 2009 10:24 pm
by pippo-c-l
only1_PO wrote:Can be this mod adjusted somehow to work with urls like http://www.xxxxx.xxx/tv-leskovac-kako-j ... t1748.html ? I have installed SEO url mod on my forum and I need sitemap for this kind of urls.
I don't found nothing for this... someone can help me :cry:

Re: Topic SiteMap

Posted: Sun Jul 05, 2009 8:39 pm
by nemmar
I installed this XML sitemap on my forum. I have a few questions.

1) After the install I added a few test posts and they didn't show up in the XML sitemap. When does the sitemap update with new posts/topics added to the forum?

2) After the install when I create a new topic/post in the posting.php page the screen grapics and fonts in the posting.php page are very large in size. I noticed this problem when I installed another MOD in the past and had to remove it. I use Red Silver style. Is this a bug when adding some MOD's or is there another fix?

Thanks for your help!

Re: Topic SiteMap

Posted: Thu Jul 09, 2009 5:54 pm
by xd20
Yes, I too am curious as to the frequency at which the sitemap.php file updates. Mine doesn't seem to be updating at all.

Re: Topic SiteMap

Posted: Thu Jul 09, 2009 10:32 pm
by xd20
Apparently mine only updates when I purge my cache..

Is there a set time that it automatically updates itself, that I've just not witnessed yet? I don't prefer having to purge my cache all the time.. I'm forgetful. Please reply or PM me.

Topic SiteMap - The XML page cannot be displayed

Posted: Fri Jul 17, 2009 1:51 am
by nemmar
Can anyone help me out with identifying the following error?
I am getting this error in my topic sitemap after 11,310 posts in the XML page:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
-------------------------------------------------------------------------------
The following tags were not closed: urlset, url. Error processing resource 'http://www.domain.com/forum/sitemap.php'.
)" class="b">- <url>
<DIV

Re: Topic SiteMap - The XML page cannot be displayed

Posted: Fri Jul 17, 2009 3:36 am
by CarolC1
nemmar wrote: The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
-------------------------------------------------------------------------------
The following tags were not closed: urlset, url.
Ditto, same problem here, I checked everything, did not find any tags that were not closed. I would like an answer on this, too. Thanks.

For what it's worth, this mod installed and worked correctly on my small test board with almost no posts. It did not work and gave the above error on the main board with 65,000 posts, but the boards were also on different servers.

Re: Topic SiteMap

Posted: Sat Jul 18, 2009 4:46 pm
by rallfo
Hi thanks for your mod.

However the sitemap script does not obey permissions and just runs under the context of whatever user access is, not the bot group as it should.

The following changes fix this.

In the header:

Code: Select all

define('LOC_BOTGROUP','6');
define('LOC_CHECKPERM','f_list');
// Then comment out all this:
//$user->session_begin();
//$auth->acl($user->data);
//$user->setup();
Then replacing Topic_SiteMap_SQL():

Code: Select all

function Topic_SiteMap_SQL()
{
  global $db, $cache, $auth;

  // Here you can set the default time to reload cache in days (from 1 to 7 recommend)
  $cache_time_limit = 7;

    // Try finding the data in the cacge
    if(($sitemap_sql_data = $cache->get('_topic_sitemap_sql')) === false)
    {
    
      $loc_perms = $auth->acl_group_raw_data(LOC_BOTGROUP,array(LOC_CHECKPERM));
      $sitemap_sql_data = array();
      
      if (isset($loc_perms[LOC_BOTGROUP])) {
          $loc_perms = $loc_perms[LOC_BOTGROUP];

          $sitemap_sql = array(
          'SELECT' => 't.topic_id, t.forum_id, t.topic_last_post_time, t.topic_type, t.topic_replies',
          'FROM' => array(TOPICS_TABLE => 't'),
          'ORDER_BY' => 't.topic_type DESC'
          );
          /* Disabled for Topic pages function ***************************************************
          // Limit URL 50,000 max http://www.sitemaps.org/protocol.php#index
          $result = $db->sql_query_limit($db->sql_build_query('SELECT', $sitemap_sql), 50000);
          ***************************************************************************************/
          $result = $db->sql_query($db->sql_build_query('SELECT', $sitemap_sql));
          while($row = $db->sql_fetchrow($result))
          {
            if (isset($loc_perms[$row['forum_id']]) && 
                isset($loc_perms[$row['forum_id']][LOC_CHECKPERM]) && 
                ($loc_perms[$row['forum_id']][LOC_CHECKPERM] == 1))
            $sitemap_sql_data[] = array(
            'topic_id' => $row['topic_id'],
            'forum_id' => $row['forum_id'],
            'topic_last_post_time' => $row['topic_last_post_time'],
            'topic_type' => $row['topic_type'],
            'topic_replies' => $row['topic_replies']
            );
          }
          $db->sql_freeresult($result);
      
      }

    // cache this data, this improves performance!
    $cache->put('_topic_sitemap_sql', $sitemap_sql_data, 86400*$cache_time_limit);
    }

  // Return data
  return $sitemap_sql_data;
}

Re: Topic SiteMap

Posted: Thu Jul 23, 2009 5:28 pm
by nemmar
[quote="rallfo"]Hi thanks for your mod. However the sitemap script does not obey permissions and just runs under the context of whatever user access is, not the bot group as it should. The following changes fix this.[/quote]

Rallfo, does the code fix in your post also solve the sitemap problem we're having like I mention in this post:
http://www.phpbb.com/community/viewtopi ... #p10231745

It seems that after 11,000 posts the Topic Sitemap can't list all the url's in the XML file. I guess maybe because it's all on one page and it's too long. Let me know if your code fixes that problem.

Thanks.

Re: Topic SiteMap

Posted: Sat Aug 08, 2009 3:16 am
by thesecret
your Sitemap exceeds the maximum file size limit
i tried to change
$result = $db->sql_query_limit($db->sql_build_query('SELECT', $sitemap_sql), 50000);

i changed number to even 50
and it give same error
also when i open it by browser it seems it didnt read thye entered number
plz help

Re: Topic SiteMap

Posted: Mon Aug 10, 2009 8:39 am
by Mircea007
this is what it shows me on google webmaster page


Invalid date
An invalid date was found. Please fix the date or formatting before resubmitting.

Re: Topic SiteMap

Posted: Thu Aug 13, 2009 4:02 pm
by asmalik12
XML Parsing Error: junk after document element
Location: http://pakistan.comyr.com/sitemap.php
Line Number 383, Column 1:<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
^

My Site

ERROR

Abdullah Saleem

Re: Topic SiteMap

Posted: Wed Aug 19, 2009 5:13 pm
by stokerpiller
It would be nice to be able to exclude some forums and to add some custom pages to the sitemap.

An invalid date was found

Posted: Sun Sep 06, 2009 2:24 am
by markcrobinson
For my site at
handicappedpet.net/helppets/sitemap.php

I get these errors in Google Webmaster Tools. Can you help me troubleshoot it?

Line 57275
Invalid date
An invalid date was found. Please fix the date or formatting before resubmitting.

Line 57299
Invalid date

Line 57497
Invalid date
An invalid date was found. Please fix the date or formatting before resubmitting.

Line 57617
Invalid date
An invalid date was found. Please fix the date or formatting before resubmitting.

Line 57623
Invalid date
An invalid date was found. Please fix the date or formatting before resubmitting.

Re: Topic SiteMap

Posted: Mon Sep 07, 2009 12:49 pm
by Amrit
I downloaded the mod and installed it to http://mypcworld.6te.net/sitemap.php
It works fine .But when I submit it to google webmaster central it says "Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead."
what should I do
and also where to place "modx.prosilver.en.xsl"
Thanks in advance

Re: Topic SiteMap

Posted: Fri Oct 02, 2009 12:43 am
by charley
has anyone got this working on 3.0.5?