Advertisement:

Author Topic: SEO sitemap and XML sitemap  (Read 59790 times)

Offline maarawoe

  • Semi-Newbie
  • *
  • Posts: 26
Re: SEO sitemap and XML sitemap
« Reply #80 on: February 17, 2014, 03:03:00 PM »
Hi all,

My error log is being filled with
Code: [Select]
http://gamestickers.net/index.php?board=12.0&action=kitsitemap;xml
Apply Filter: Only show the errors with the same message
8: Undefined index: ID_TOPIC
Apply Filter: Only show the errors from this file File: /web/htdocs2/gamestickersnet/home/www/Sources/Subs-KitSitemap.php
Line: 80 or Line: 79

The line corresponds to:
Code: [Select]
while($row = $smcFunc['db_fetch_assoc']($query))
77: {
78: // fill topic array
==>79: $context['topics'][$row['ID_TOPIC']] = $row;
==>80: $context['topics'][$row['ID_TOPIC']]['href'] = $scripturl.'?topic='.$row['ID_TOPIC'].'.0';
81: }


Any advise please?


Thanks!!

Offline maarawoe

  • Semi-Newbie
  • *
  • Posts: 26
Re: SEO sitemap and XML sitemap
« Reply #81 on: August 27, 2014, 09:10:01 AM »
Same issue with ID_TOPIC here...
Any fix please?

Offline kokett

  • Semi-Newbie
  • *
  • Posts: 48
Re: SEO sitemap and XML sitemap
« Reply #82 on: February 09, 2015, 10:59:09 AM »
Modification to export all URL's

In /Sources/Subs-KitSitemap.php Line 52 - 82 replace:
Code: [Select]
// list board topics
if ( !empty($board_info['id']) )
{
$start = (int) $_REQUEST['start'];
$context['topics'] = array();
if ( $xmlView )
{
$context['sub_template'] = 'kitsitemap_xml_board';
// maximum entries per sitemap
$context['topics_per_page'] = 50000;
$query= $smcFunc['db_query']('', "
SELECT
t.ID_TOPIC
FROM {db_prefix}messages AS m, {db_prefix}topics AS t
WHERE m.ID_BOARD = {int:id_board} AND m.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_LAST_MSG DESC
LIMIT {int:start}, {int:limit}",
array(
'id_board' => $board_info['id'],
'start' => $start,
'limit' => $context['topics_per_page']
)
);

while($row = $smcFunc['db_fetch_assoc']($query))
{
// fill topic array
$context['topics'][$row['ID_TOPIC']] = $row;
$context['topics'][$row['ID_TOPIC']]['href'] = $scripturl.'?topic='.$row['ID_TOPIC'].'.0';
}
}

with
Code: [Select]
// list board topics
if ( !empty($board_info['id']) )
{
$start = (int) $_REQUEST['start'];
$context['topics'] = array();
if ( $xmlView )
{
$context['sub_template'] = 'kitsitemap_xml_board';
// maximum entries per sitemap
$context['topics_per_page'] = 50000;
$query= $smcFunc['db_query']('', "
SELECT
t.ID_TOPIC, t.num_replies
FROM {db_prefix}messages AS m, {db_prefix}topics AS t
WHERE m.ID_BOARD = {int:id_board} AND m.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_LAST_MSG DESC
LIMIT {int:start}, {int:limit}",
array(
'id_board' => $board_info['id'],
'start' => $start,
'limit' => $context['topics_per_page']
)
);

$row2 = 0;
while($row = $smcFunc['db_fetch_assoc']($query))
{
// fill topic array
if (count($row2) == $context['topics_per_page']) break;
$context['topics'][$row2] = $row;
$context['topics'][$row2]['href'] = $scripturl.'?topic='.$row['ID_TOPIC'].'.0';
$row2++;
if (intval($row['num_replies'] / $modSettings['defaultMaxMessages']) > 1) {
$board_indexes = intval($row['num_replies'] / $modSettings['defaultMaxMessages']);
$topic_page = 1;
while ($topic_page <= $board_indexes)
{
$context['topics'][$row2] = $row;
$context['topics'][$row2]['href'] = $scripturl.'?topic='.$row['ID_TOPIC'].'.'.$topic_page * $modSettings['defaultMaxMessages'];
$topic_page++;
$row2++;
if (count($row2) == $context['topics_per_page']) break;
}
}
}
}


Sitemap will look like:

Code: [Select]
<url>
<loc>http://www.your-forum.xyz/index.php?topic=3831.0</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=3831.20</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=3831.40</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=3831.60</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=3831.80</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=3831.100</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=3831.120</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=3831.140</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=3831.160</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=5086.0</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=4951.0</loc>
</url><url>
<loc>http://www.your-forum.xyz/index.php?topic=5072.0</loc>
</url><url>
« Last Edit: February 09, 2015, 11:12:45 AM by kokett »

Offline romanos8

  • Semi-Newbie
  • *
  • Posts: 34
Re: SEO sitemap and XML sitemap
« Reply #83 on: September 02, 2015, 12:39:15 AM »
Google wont allow this sitemap :(

Offline kokett

  • Semi-Newbie
  • *
  • Posts: 48
Re: SEO sitemap and XML sitemap
« Reply #84 on: September 02, 2015, 02:06:46 AM »
Which URL did you post to google?

/index.php?action=kitsitemap;xml

this works for me fine.

Offline swaggaderby

  • Jr. Member
  • **
  • Posts: 129
Re: SEO sitemap and XML sitemap
« Reply #85 on: September 03, 2015, 08:28:51 AM »
Google wont allow this sitemap :(
so which will google accept then?

Offline njtweb

  • Full Member
  • ***
  • Posts: 572
Re: SEO sitemap and XML sitemap
« Reply #86 on: January 18, 2016, 11:59:32 AM »
Checking to see if this is still supported.

I have this installed on my site but I don't see an real benefit from it, specifically in Google search results. What is the objective of the mod? If there is no sitemap.xml to submit to Google webmaster tools, isn't the mod basically doing nothing but duplicating links that are already created?

Thank you, any assistance and/or instruction would be greatly appreciated.

Offline Julian F

  • Semi-Newbie
  • *
  • Posts: 15
Re: SEO sitemap and XML sitemap
« Reply #87 on: January 29, 2016, 07:46:18 AM »
Hello, this mod support large forums? I mean when a section from forum have 12000 posts for example.

Offline Andreso

  • Semi-Newbie
  • *
  • Posts: 10
Re: SEO sitemap and XML sitemap
« Reply #88 on: January 11, 2018, 09:04:18 AM »
One question, if i hide the Sitemap button, the Sitemap will not be showed to Search engines? or only hides the button? please answer my doubth  ???

Offline Dwev

  • Jr. Member
  • **
  • Posts: 217
Re: SEO sitemap and XML sitemap
« Reply #89 on: February 27, 2018, 07:05:47 AM »
I have absolutely nothing to do with the Mod, but I see a few questions to which I think I have the answer.

@ njtweb: use this links for the XML sitemap: URL-of-your-forum/index.php?action=kitsitemap;xml
You register your site with Google Webmaster Tools and enter this URL.

@ Julian F: as far as I can see the answer is yes.

@ Andreso: if you follow the instructions I wrote for njtweb above it will work.

Offline nadeem34

  • Semi-Newbie
  • *
  • Posts: 54
    • https://web.facebook.com/Discusscryptocurrency/ on Facebook
    • Best cryptocurrency Forum
Re: SEO sitemap and XML sitemap error
« Reply #90 on: April 17, 2018, 03:20:37 AM »
I got an error for my xml sitemap even when i type all adress with http in google nothing to show


Please see the attachment of error.

Help needed must please
Best Cryptocurrency Forum, Ethereum, Bitcoin Community https://discusscryptocurrency.com/

Offline smartmouse

  • Full Member
  • ***
  • Posts: 540
Re: SEO sitemap and XML sitemap
« Reply #91 on: October 12, 2018, 09:00:14 AM »
Hi, if I visit URL-of-my-forum/index.php?action=kitsitemap;xml what should I see inside?
I see only the urls of the sections of my forum. Is it right?

In addition I use PrettyUrls mod... shouldn't I get a sitemap with friendly urls?

Offline jamesandersonicb

  • Newbie
  • *
  • Posts: 3
Re: SEO sitemap and XML sitemap
« Reply #92 on: October 16, 2018, 12:41:17 PM »
I also try this kind of method for sitemap.xml.