[MODDB] Sitemap FX

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
FladeX
Registered User
Posts: 244
Joined: Tue Jul 08, 2008 10:38 am
Location: Russia, Saransk
Name: Max Istlyaev
Contact:

[MODDB] Sitemap FX

Post by FladeX » Mon Jan 19, 2009 4:35 pm

Modification Name: Sitemap FX
Author: FladeX

Modification Description:: Sitemap for search engines (Google, etc.)
Modification Version:: 1.0.5

Demo URL: Modification Download: Mod is validate! New discussion topic is here!

Also you can use online sitemap generator.
Last edited by FladeX on Wed Nov 25, 2009 1:04 pm, edited 16 times in total.
and sorry for my bad english [ phpBB Adept ]
My mods: Sitemap FX, Referrals FX, Topiclist FX, Alphabet FX, Polls Results FX.

DaannO
Registered User
Posts: 86
Joined: Mon Sep 17, 2007 11:24 am

Re: [DEV] Sitemap FX

Post by DaannO » Thu Jan 22, 2009 9:59 am

Will this also support Google ping on change?

User avatar
FladeX
Registered User
Posts: 244
Joined: Tue Jul 08, 2008 10:38 am
Location: Russia, Saransk
Name: Max Istlyaev
Contact:

Re: [DEV] Sitemap FX

Post by FladeX » Thu Jan 22, 2009 9:44 pm

At the moment - no. But maybe I'll do this in next version.
and sorry for my bad english [ phpBB Adept ]
My mods: Sitemap FX, Referrals FX, Topiclist FX, Alphabet FX, Polls Results FX.

Cebar
Registered User
Posts: 39
Joined: Sat Oct 04, 2008 3:20 pm

Re: [DEV] Sitemap FX

Post by Cebar » Thu Jan 22, 2009 10:02 pm

Thanks , but why we cant use this in a big forums ? :?

User avatar
FladeX
Registered User
Posts: 244
Joined: Tue Jul 08, 2008 10:38 am
Location: Russia, Saransk
Name: Max Istlyaev
Contact:

Re: [DEV] Sitemap FX

Post by FladeX » Fri Jan 23, 2009 5:56 am

Because It makes a load on a server. I will fix this soon.
and sorry for my bad english [ phpBB Adept ]
My mods: Sitemap FX, Referrals FX, Topiclist FX, Alphabet FX, Polls Results FX.

joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [DEV] Sitemap FX

Post by joebart72 » Mon Jan 26, 2009 4:15 am

I'm interested too but I've got a big forum so I'm gonna wait... ;)
I learn English with phpbb.com :)

darkone_d1_2000
Registered User
Posts: 150
Joined: Tue Feb 13, 2007 7:43 pm

Re: [DEV] Sitemap FX

Post by darkone_d1_2000 » Thu Feb 26, 2009 5:08 pm

FladeX you still working on this mod?

User avatar
FladeX
Registered User
Posts: 244
Joined: Tue Jul 08, 2008 10:38 am
Location: Russia, Saransk
Name: Max Istlyaev
Contact:

Re: [DEV] Sitemap FX

Post by FladeX » Thu Feb 26, 2009 5:36 pm

I need to pass the exams in university :) After that I update this mod.
Please, wait...
and sorry for my bad english [ phpBB Adept ]
My mods: Sitemap FX, Referrals FX, Topiclist FX, Alphabet FX, Polls Results FX.

User avatar
FladeX
Registered User
Posts: 244
Joined: Tue Jul 08, 2008 10:38 am
Location: Russia, Saransk
Name: Max Istlyaev
Contact:

Re: [DEV] Sitemap FX

Post by FladeX » Tue Mar 03, 2009 8:37 pm

sitemap FX 0.0.3
  • [fix] - last modification date
  • [upd] - Server load has been reduced
For update from v.0.0.2 just replace old sitemap.php.

Please, check this.
and sorry for my bad english [ phpBB Adept ]
My mods: Sitemap FX, Referrals FX, Topiclist FX, Alphabet FX, Polls Results FX.

User avatar
Tophon
Registered User
Posts: 212
Joined: Wed Oct 22, 2008 12:19 am
Contact:

Re: [DEV] Sitemap FX

Post by Tophon » Wed Mar 04, 2009 4:38 pm

Download link down.

User avatar
FladeX
Registered User
Posts: 244
Joined: Tue Jul 08, 2008 10:38 am
Location: Russia, Saransk
Name: Max Istlyaev
Contact:

Re: [DEV] Sitemap FX

Post by FladeX » Wed Mar 04, 2009 5:11 pm

Thanks. Now it's work.
and sorry for my bad english [ phpBB Adept ]
My mods: Sitemap FX, Referrals FX, Topiclist FX, Alphabet FX, Polls Results FX.

User avatar
FladeX
Registered User
Posts: 244
Joined: Tue Jul 08, 2008 10:38 am
Location: Russia, Saransk
Name: Max Istlyaev
Contact:

Re: [DEV] Sitemap FX

Post by FladeX » Sat Mar 07, 2009 9:15 pm

Is this mod need to ACP controls?

For example, admin can set different priority to simple topics, announcement, closed topics, etc.
and sorry for my bad english [ phpBB Adept ]
My mods: Sitemap FX, Referrals FX, Topiclist FX, Alphabet FX, Polls Results FX.

darkone_d1_2000
Registered User
Posts: 150
Joined: Tue Feb 13, 2007 7:43 pm

Re: [DEV] Sitemap FX

Post by darkone_d1_2000 » Tue Mar 10, 2009 5:23 pm

FladeX

Does this mod make the XML file you can tell google/yahoo/MSN to go and grab?

I think a ACP module so you can set:

- last accessed/edited date
- link priority
- the ability to tell which forums to include into the map
- the ability to give a number of topics to include in the map. Almost like you say I want the last x number of posts to be in the site map and it only builds a map on this value.
- abilitiy to export the map to a xml file (that's if it isn't already there)

I will probably install this mod this weekend and give more feedback thanks for the work.

User avatar
FladeX
Registered User
Posts: 244
Joined: Tue Jul 08, 2008 10:38 am
Location: Russia, Saransk
Name: Max Istlyaev
Contact:

Re: [DEV] Sitemap FX

Post by FladeX » Tue Mar 10, 2009 6:37 pm

darkone_d1_2000 wrote:FladeX
Does this mod make the XML file you can tell google/yahoo/MSN to go and grab?
Yes, it is. You can view online demo (link in first post).
darkone_d1_2000 wrote:I think a ACP module so you can set:

- last accessed/edited date
- link priority
- the ability to tell which forums to include into the map
- the ability to give a number of topics to include in the map. Almost like you say I want the last x number of posts to be in the site map and it only builds a map on this value.
- abilitiy to export the map to a xml file (that's if it isn't already there)
Thanks!
darkone_d1_2000 wrote:I will probably install this mod this weekend and give more feedback thanks for the work.
Ok. But this mod very simple to install - you should only copy file sitemap.php in your phpBB root directory ;)
and sorry for my bad english [ phpBB Adept ]
My mods: Sitemap FX, Referrals FX, Topiclist FX, Alphabet FX, Polls Results FX.

User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [DEV] Sitemap FX

Post by AllCity » Sat Apr 04, 2009 4:47 pm

My version:

Code: Select all

<?php
/**
*
* @package SiteMap FX
* @version $Id: sitemap.php v0.0.3 with cache 2009-04-05 02:35:34Z FladeX refined by AllCity $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

// Custom Page ;) from http://www.phpbb.com/kb/article/add-a-new-custom-page-to-phpbb/
define("IN_PHPBB", true);
$phpbb_root_path = (defined("PHPBB_ROOT_PATH")) ? PHPBB_ROOT_PATH : "./";
$phpEx = substr(strrchr(__FILE__, "."), 1);
include($phpbb_root_path."common.".$phpEx);

// Start session management from http://www.phpbb.com/kb/article/add-a-new-custom-page-to-phpbb/
$user->session_begin();
$auth->acl($user->data);

// This xml file content!
header("Content-Type: text/xml");

function SiteMapFX()
{
  global $db, $phpEx, $cache;

  // Try finding the data in the cacge
  if (($sm_file = $cache->get("_sitemap_fx")) === false)
  {

    $sm_file = "<?xml version=\"1.0\" encoding=\"UTF-8\"\x3F>\r\n";
    $sm_file .= "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\r\n";
      $sql = "SELECT topic_id, forum_id, topic_last_post_time FROM ".TOPICS_TABLE." ORDER BY topic_last_post_time DESC";
      $result = $db->sql_query($sql);
        while ($row = $db->sql_fetchrow($result))
        {
           $last_mod = date("Y-m-d\TH:i:s+00:00",$row["topic_last_post_time"]);
           $sm_file .= "<url>\r\n";
           $sm_file .= "<loc>".generate_board_url()."/viewtopic.".$phpEx."?f=".$row['forum_id']."&t=".$row['topic_id']."</loc>\r\n";
           $sm_file .= "<lastmod>".$last_mod."</lastmod>\r\n";
           $sm_file .= "<changefreq>weekly</changefreq>\r\n";
           $sm_file .= "<priority>0.5</priority>\r\n";
           $sm_file .= "</url>\r\n";
        }
      $db->sql_freeresult($result);
    $sm_file .= "</urlset>";

  // cache this data for 7 days, this improves performance!
  $cache->put("_sitemap_fx", $sm_file, 604800);
  }

  // Return data
  return $sm_file;

}

// Show results :)
echo SiteMapFX();

?>
Clean the code and added caching (useful for large forums!), fixed folder script location, fixed display of topic if it "Global".
Last edited by AllCity on Sun Apr 05, 2009 10:33 am, edited 5 times in total.
My mods home page.

Locked

Return to “[3.0.x] MODs in Development”