Errors Reported from the AddTagsToSitemap plugin'; echo '

Ultimate Tag Warrior - Configuration Errors

'; echo '

There is no installation of Ultimate Tag Warrior, please install this plugin as this is a requirement for this plugin to work.

'; } if ($UTWinstalled_build != "7") { echo '

Ultimate Tag Warrior - Configuration Errors

'; echo '

You need to upgrade the Ultimate Tag Warrior plugin to at least Version 3.14 for this plugin to work.

'; } return $UTWinstalled_build; } function GetUTWTagUrl ($UTWtag_name, $UTWhome, $UTWbaseurl, $UTWuseprettyurls, $UTWtrailing){ global $UTWtagurl; if ($UTWuseprettyurls == "yes") { $UTWtagurl = $UTWhome . $UTWbaseurl . $UTWtag_name . $trailing; } else { $UTWtagurl = $UTWhome . "/index.php?tag=" . $UTWtag_name; } return $UTWtagurl; } function GetUTWtags() { global $wpdb, $table_prefix, $UTWtabletags, $UTWtablepost2tag, $UTWsiteurl, $UTWbaseurl, $UTWhome, $UTWuseprettyurls, $UTWtrailing;; //get plugin variables $UTWtabletags = $table_prefix . "tags"; $UTWtablepost2tag = $table_prefix . "post2tag"; $UTWsiteurl = get_option('siteurl'); $UTWhome = get_option('home'); $UTWbaseurl = get_option('utw_base_url'); if (get_option('utw_use_pretty_urls') == 'yes') $UTWuseprettyurls = "yes"; $UTWtrailing = ''; if (get_option('utw_trailing_slash') == 'yes') $UTWtrailing = "/"; $UTWversion = CheckForUTWInstall(); if ($UTWversion == "7") { $utwtagObject = &GoogleSitemapGenerator::GetInstance(); $utwtags=array(); $utwtags=$wpdb->get_results("SELECT tag FROM " . $UTWtabletags); if($utwtags) { foreach($utwtags as $utwtag) { $utw_tag = GetUTWTagUrl($utwtag->tag, $UTWhome, $UTWbaseurl, $UTWuseprettyurls, $UTWtrailing); //you can modify the sitemaps page refresh interval and priority to your own settings if you want to // valid refresh internal is "always", "hourly", "daily", "weekly", "monthly" or "yearly" // valid priority level is 0.1, 0.2 to 1.0 (1.0 being the highest) if($utwtagObject!=null) $utwtagObject->AddUrl($utw_tag,time(),"daily",0.6); } } } } add_action("sm_buildmap","GetUTWtags"); ?>