NP_GoogleSitemap.php

This plugin is outdated rubish. Please don't use it.

After installing this plugin all items on your weblog are automatically added to the sitemap. If you want to exclude certain blogs you can indicate this on the blog settings. You can also configure to ping Google everytime a new item is added.

General Plugin info
Current Version: 0.2
Download: Download plugin [zip 2kb 1 file]
Code: NP_GoogleSitemap_code
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?t=9619

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin.
  3. create a Google Sitemap account and add the sitemap. The sitemap URL is visible on the plugins page and looks like this: http://www.yourdomain.com/yourdirectory/action.php?action=plugin&name=GoogleSitemap&type=sitemap

How to use the plugin

After installing this plugin all items on your weblog are automatically added to the sitemap. If you want to exclude certain blogs you can indicate this on the blog settings. You can also configure to ping Google everytime a new item is added.

Available SkinVars and/or TemplateVars

  • There are no skinvars or templatevars for this plugin.

Options

  • This plugin also exposes a new event called SiteMap which would allow other plugins that generate public pages such as NP_Dino or NP_ExtraSkins to add their pages to the sitemap. For example the following code could be added to the ExtraSkins plugin:
function event_SiteMap(&$data) {
   global $CONF;
 
   $res = sql_query('
      SELECT
         *
      FROM
         '.sql_table('plug_extra_skin').'
      WHERE
         url != ""
      ORDER BY
         title
   ');
 
   while ($row = mysql_fetch_array($res))
   {
      $data['sitemap'][] = array (
         'loc' => $CONF['BlogURL'] . '/extra/' . $row['url'],
         'priority' => '0.8'
      );
   }            
}

Tips and Tricks

Wishlist

Bugs

History

  • [Version 0.2, released 2005-11-23]

Plugin review

NP_GoogleSitemap version 0.2 works with Nucleus CMS version 3.31 - 2007-11-11 kg

googlesitemap.txt · Last modified: 2007/11/29 00:58 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki