Topic SiteMap

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
pippo-c-l
Registered User
Posts: 204
Joined: Fri Oct 03, 2008 9:08 pm

Re: Topic SiteMap

Post 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:
nemmar
Registered User
Posts: 85
Joined: Mon Jun 13, 2005 2:07 pm

Re: Topic SiteMap

Post 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!
xd20
Registered User
Posts: 51
Joined: Thu Jul 09, 2009 5:50 pm
Contact:

Re: Topic SiteMap

Post 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.
xd20
Registered User
Posts: 51
Joined: Thu Jul 09, 2009 5:50 pm
Contact:

Re: Topic SiteMap

Post 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.
nemmar
Registered User
Posts: 85
Joined: Mon Jun 13, 2005 2:07 pm

Topic SiteMap - The XML page cannot be displayed

Post 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
CarolC1
Registered User
Posts: 653
Joined: Sat Dec 02, 2006 4:26 pm

Re: Topic SiteMap - The XML page cannot be displayed

Post 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.
rallfo
Registered User
Posts: 2
Joined: Sat Jul 18, 2009 4:39 pm
Contact:

Re: Topic SiteMap

Post 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;
}
nemmar
Registered User
Posts: 85
Joined: Mon Jun 13, 2005 2:07 pm

Re: Topic SiteMap

Post 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.
thesecret
Registered User
Posts: 270
Joined: Mon Sep 29, 2008 12:13 pm

Re: Topic SiteMap

Post 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
Mircea007
Registered User
Posts: 74
Joined: Mon Jun 15, 2009 9:24 pm

Re: Topic SiteMap

Post 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.
Flash Games like you never seen before
asmalik12
Registered User
Posts: 91
Joined: Fri Mar 27, 2009 3:26 pm
Location: Lahore, Pakistan
Contact:

Re: Topic SiteMap

Post 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
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam

Image
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: Topic SiteMap

Post by stokerpiller »

It would be nice to be able to exclude some forums and to add some custom pages to the sitemap.
I am done with phpBB
markcrobinson
Registered User
Posts: 36
Joined: Sun Jul 02, 2006 11:45 pm

An invalid date was found

Post 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.
Amrit
Registered User
Posts: 1
Joined: Mon Sep 07, 2009 12:36 pm

Re: Topic SiteMap

Post 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
Visit http://mypcworld.6te.net/ for tips & tricks for everyday computing
charley
Registered User
Posts: 132
Joined: Sun Oct 12, 2003 11:08 pm
Location: Motherwell, Scotland

Re: Topic SiteMap

Post by charley »

has anyone got this working on 3.0.5?
Locked

Return to “[3.0.x] MOD Database Releases”