Demo of NP_GreyBox
- Posted by: ftruscot • 05 December, 2006
- Leave comment - 3
» Read more
(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 will insert a button/link to facilitate subscibing to a number of news reader or page indexing sites. See the sidebar to the right for an example.
I made it so that I could have an RSS icon link in my skins that was smart enough to give the feed for only the blog and category currently selected (I have multiple blogs and use categories).
I have made a version 0.2 which fixes some XHTML compliance issues. (Added alt attributes to <img> tags, removed some target="_blank" attributes for delicious and furl, and replaced & with & in URLs)
I am running multiple blogs and wanted to have some where the <%searchform%> would output the search input box and the search button on the same line. See above. But I also wanted to use it with two lines like in the sidebar to the right.
I have found two methods to do this. The first modifies both the SKIN.php file and adds a form template. It's advantage is that you can use just a skinvar call to get the desired effect. The second method was inspired by the comment from Tomas below. It requires a simple change to the searchform.template and relies on CSS to show or not show the linebreak. Both methods are outlined below.