Customizing SMF > Modifications and Packages

Sitemap

(1/432) > >>

SlammedDime:
Link to Mod

This file adds an extra action to your SMF installation '?action=sitemap' that will show a sitemap to your visitors and bots.  It will not show boards to a user that its not supposed to.  So a guest will not see hidden boards.  It also has added support for SMF queryless urls and Pretty Urls mod.  Admin options for 1.1.x can be found under Features and Options and for 2.0 under Configuration > Modifications > Sitemap.

If you have Joomla!/Mambo and are running this with Orstio's Bridge, the sitemap will see that and format your links accordingly, and if you are using Joomla SEF, it will convert them as well.

Also included is the option to display an XML sitemap for use with Google Sitemaps.  On any of the sitemap pages, simply click the 'XML' link at the bottom for the XML version.  If you wish to submit your site to Google Sitemaps, you will need to use this link.  Google does not like SEF formatted URLs for the sitemap because it won't show the sitemap in the root directory.  Using the link as provided will.

A working version can be seen at http://www.airridetalk.com/forum/sitemap

Change Log:
2.0.0: Complete rewrite of the mod
1.2.2/1.3.0: Added support for Pretty Urls mod, changed username on topic display to Display name, rather than username.  1.2.2 is the last update for the 1.1.x series of SMF.  All future development will continue on 1.3.0 in support of SMF 2.0.
1.2.1: With lots of new things comes bugs.  Some error checking wasn't done, which caused an incorrect number of pages to be displayed, and thus causing sql errors.
1.2.0: Lots of new things... a few options in the admin panel under Features and Options.  Limit the number of topics on the sitemap, disallow non-admin access to the XML sitemap link, and collapse the child boards to reduce the size of the sitemap display.  A few bug fixes as well, primarily with the queryless_urls setting.
1.1.3: Fixed file a tad more, and fixed uninstaller to remove files added
1.1.2: Updated files to follow SMF coding guidelines more closely
1.1.1: Added Link Tree information and Who information
1.1: Added XML support
1.0: Initial Release

If you have Tiny Portal installed with 1.1.8, you may need to manually edit index.template.php.

Replace
--- Code: ---                                        ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

--- End code ---
with

--- Code: ---                                        ', theme_copyright(), ' <br />', tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

--- End code ---

SlammedDime:
One thing that I'm pretty sure will not work, is if you have SEO4SMF and try to use this, it will not generate SEO urls as you expect.  I do believe that that mod has an xml sitemap generator, so you may wish to look into that.

imschur:
Hi, I just installed this via the package manager at http://www.gearpedia.net [nofollow]. Everything seemed to go fine with no errors but I have no sitemap. Should this mod have added a new tab or anything in the control panel?

Thanks

SlammedDime:

--- Quote from: imschur on May 13, 2007, 12:36:23 AM ---Hi, I just installed this via the package manager at http://www.gearpedia.net. Everything seemed to go fine with no errors but I have no sitemap. Should this mod have added a new tab or anything in the control panel?

Thanks

--- End quote ---
It adds a link to the sitemap next to the copyright in the template.  If you're not using the default theme, you'll have to manually make this change, as with all mods that make theme changes.  I've thought about adding options for this in the control panel, such as limits on the number of boards or topics to display, but I have no need for it on my site, so I never coded it that way.  Bo I'll leave that open for discussion.  I always welcome feedback.

imschur:
ok Im a moron. Thanks for the help and this cool mod.

Navigation

[0] Message Index

[#] Next page

Go to full version