- Posted by: ftruscot • 20 April, 2006
(May 17, 2006) Now v1.2 with added features. see Help File.
While trying to get ideas from the list of sites showing off NucleusCMS at http://www.nucleuscms.org/sites.php, I become discouraged by the number of non-nucleus sites in the list. Sensing from applicable topics in the Nucleus Support Forum that others are having the same frustration, and knowing that the job of going back and manually verifying each site would be a time-consuming endeavor for the NucleusCMS.org site administrator, I decided to enhance the NP_SiteList plugin to include a programmatic verification feature. I also used this as an exercise to learn about php, mysql, and Nucleus plugin programming.
The NP_SiteList plugin was originally published by Wouter Demuynck in 2002. I could not find any significant updates of the original one from the Plugin wiki http://wiki.nucleuscms.org/sitelist, so I started there.
This plugin is used to manage a list of links, such as that showing Nucleus sites on nucleuscms.org. Users can add new sites themselves for approval by the site administrator, who can be notified through e-mail. When logged in as administrator, the list of sites can be managed through the admin area or, when enabled, from the list of sites where displayed in your skins. If the sites in the list should meet certain conditions, the administrator can automate verification by setting up to two preg expressions (or strings) to check against. For example, sites listed on the NucleusCMS site might be required to either contain a link to nucleuscms.org or have some form of the <meta name="generator" content="Nucleus CMS v3.22" />.
Among the new features added are the following:
- added preg-based site verification
- added admin area to manage links
- added 'suspended' status and extended db table
- added admin site edit feature
- added option to save data table on uninstall
- no longer require sites-thanks.php
- sites added by admin can be auto-verified
- added skinvar parameters to control how lists look can now get # of approved sites, limit # shown, spcify html tag to enclose elements, and turn off the management links for site admins from displayed SiteList
Before you install the plugin, you should read the help.html file for full details about requirements, upgrade, installation, and usage details.
NOTE FOR UPGRADING
Those upgrading from a previous version, must edit their existing NP_SiteList.php file before uninstalling the old version to remove the line that will delete their exisiting sitelist data as described in the Help File
The NP_SiteList (v 1.2) can be downloaded here: NP_SiteList.zip
Please read the help file before installing. See it here: Help File
See screen shot of Admin Area