T3 GenSiteMap

Frequently asked questions about T3 GenSiteMap plugin
  1:What is the T3-GenSiteMap plugin ?
  2:What's new ?
  3:How to install ?
  4:Settings Configuration
  5:How to use ?
  6:Extend T3 GenSiteMap



1 : What is the T3-GenSiteMap plugin ?
T3-GenSiteMap is a seditio plugin to create google and yahoo compatible sitemaps.
A sitemap gives information about the pages in your site to help the search bots crawl them more effectively.

Features :
   * Support for google and yahoo format.
   * Include Lists and Pages with their pagination.
   * Include Forum sections and Topics with their pagination.
   * Include Memberlist with its pagination and user profiles.
   * Auto exclusion of content that guests can't read.
   * Custom "frequency" and "priority" settings for each section.
   * A lot of settings to personalize your sitemaps.
   * Gzip Compression if server supports it.
   * Auto Notify Google and Yahoo bots to crawl the updated sitemaps.
   * Multiply sitemaps.
   * Logging system.
   * Translation support.
[Back To Top]
Updated: Friday 16th of February 2007 12:15 PM Submitted by: Tefra

2 : What's new ?
Version 1.00
------------
First stable release
[Back To Top]
Created: Thursday 15th of February 2007 04:51 PM Submitted by: Tefra

3 : How to install ?
- If you are upgrading, make sure you delete first all old files and folder.
- Upload all files and folders in your ftp, keeping the file structure in the package.
- Reinstall the plugin through the plugin management.
- CHMOD 777 the following folders and files :
     /sitemaps/
     /plugins/gensitemap/logs/
     /plugins/gensitemap/inc/settings.php

If your server allows files writing in the root public folder then go in the config admin.php?m=tools&p=gensitemap&n=config and leave the setting "Sitemaps Folder" empty.

If your sever doesn't allow files writing in the root public folder and you can use htaccess files, open/create the .htaccess file on the root and put these two line in it. RECOMMENDED!!!

HTACCESS Code:

RewriteEngine On

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ sitemaps/$1 [L]


You will have to change that code in case you have changed the setting "Sitemaps Folder"

You can access the plugin panel through the tools - > T3 GenSiteMap.
[Back To Top]
Updated: Friday 16th of February 2007 12:16 PM Submitted by: Tefra

4 : Settings Configuration
The plugin uses a flat file based configuration. This means that all settings are saved in the file. plugins/gensitemap/inc/settings.php . Make sure you chmod it 777.

In the configuration panel of the plugin you can select:

- How many links to put in each google compatible sitemap.
    Yahoo sitemaps don't have any limit.
- If the generator should skip some parts of your site or not like users.
- The destination folder of your logs and sitemaps. Leave them as they are if you don't know what you are doing.
- Change frequency settings for each of your site area.
- Change priority settings for each of your site area.
- Enable/ Disable auto google and yahoo notify.
[Back To Top]
Updated: Friday 16th of February 2007 12:17 PM Submitted by: Tefra

5 : How to use ?
Access the plugin management panel and click on the "Run Sitemap Gen" link. The system will take over the rest and it will produce your site's sitemaps according to the current settings.

After the end of the procedure a log will be created with some information about the procedure. You can access the logs from the plugin management panel.

The logs contain these information:
- Creation Date.
- Processing Time.
- Total page urls included.
- Total forum urls included.
- Total user urls included.
- Auto bots notify status.
- The list of the created sitemaps.

After you are done with this you will have to submit them to google and yahoo manually. If have enabled auto bots notify you have to do this only one time.

The yahoo sitemap will always be only one file urllist.xml. Submit it here https://siteexplorer.search.yahoo.com/submit/

The google sitemaps may be more than one file. It depends on the site actually. So you may have many sitemaps like sitemap_1.xml, sitemap_2.xml.

To help you with this the plugin creates another extra index sitemap of the sitemaps, the sitemap_index.xml.gz you only have to submit that one. The google bots will download it and then it will automatically download the sub-sitemaps.

The valid urls of the sitemaps are listed in the log details and they will always be like this.

http://www.t3-design.com/sitemap_index.xml.gz
http://www.t3-design.com/urllist.txt.gz
[Back To Top]
Updated: Friday 16th of February 2007 12:20 PM Submitted by: Tefra

6 : Extend T3 GenSiteMap
T3-GenSiteMap only includes seditio default locations. You can of course extend the plug to include links from other content plugins.

The plugin has one hook the "gensitemap.addon". You can create one plugin file with that hook throw it in the main plugin folder and your custom area links will be included in the sitemaps. Of course you will need to have some php/mysql experience.

Example Plugin

PHP Code:

<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://ldu.neocrome.net

[BEGIN_SED]
File=plugins/gensitemap/gensitemap.pfs.php
Version=1.0
Updated=2007-Feb-16
Type=Plugin
Author=Tefra
Description==Extend T3-GenSiteMap with pfs links (Sample)
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=gensitemap
Part=main
File=gensitemap.pfs
Hooks=gensitemap.addon
Tags=
Order=10
[END_SED_EXTPLUGIN]

==================== */


if (!defined('SED_CODE')) { die('Wrong URL.'); }

$sql = sed_sql_query("SELECT pfs_file, pfs_date FROM $db_pfs WHERE 1");
while ($row = sed_sql_fetcharray($sql))
{
    $url = $cfg['mainurl']."/pfs.php?m=view&amp;v=".$row['pfs_file'];
    gensitemap_add_entry($url, '0.5', $row['pfs_date'], 'yearly');
    $gensitemap_stats['addons']++;
}


?>
 

[Back To Top]
Updated: Friday 16th of February 2007 02:56 PM Submitted by: Tefra