eventitem

EventItem

This plugin was originally developed by “screen” from brainkrash.com. It appears he no longer had this plugin available for download at his site and has not been on the Nucleus forums for quite some time, so I took it upon myself to post the download file for others. I updated the plugin code to current Nucleus standards, and will likely be working on other options and improvements to this plugin.

BETA PLUGIN: Please see the forum thread. DOWNLOAD: here.

Bugs

This plugin can damage the timestamp of your comments. Please read this forum thread: Comments in 1986?.

Version history

  • 0.1b5 (08/17/2004): plugin standards (by gRegor)
    • added sql_table, getMinNucleusVersion, and supportsFeature functions
    • added plugin option ‘deletetables’ and adjusted unInstall accordingly
  • 0.1b4 (04/05/2003): enhancements (by screen)
    • added street/zip and optional yahoo/mapquest links
  • 0.1b3 (03/07/2003): enhancements (by screen)
    • added sort dates in ascending order option
  • 0.1b2 (02/17/2003): enhancements (by screen)
    • requires reinstall of plugin. data will be lost in upgrade unless manually converted. New skin/template install required as well.
    • added option to hide past date items from index page
    • added length trimming to action=var results
    • changed allages to ages: All, 18+, 21+
    • added bg color option to fancy up table displays with alternating bgcolor
    • added support for adding comments to an evenitem blog
  • 0.1b1 (02/15/2003): initial beta version (by screen)

NOTES:

options: [[EventItem]](action,data,length)
action     data
----
var   - element (city|venue|bill|cost|time|ages)
        length  (trim to length and add '...')
bgcolor  - oddcolor
           eventcolor
map   - service (mapquest|yahoo)
        linkhtml

INSTALLATION:

Decompress

Download and unzip in the directory under your nucleus directory. So if nucleus is installed in /var/www/news/nucleus/ decompress in /var/www/news/.

Plugin

  • Ensure that your webserver has write permissions to config.php before installing or uninstalling this plugin!
  • Once installed enable the plugin for specif blogs by editing the plugin options and adding their names to the “Enable for Blogs” option.
  • Display of event items is achieved by editing a blogs template (ie. default)
  • add adding <%EventItem(var,element)%>, where element may be one of the following values:
    • city
    • venue
    • street
    • zip
    • bill
    • cost
    • time
    • ages
  • You may also need to edit the detailed template to display event data for the entry detail and search results page.
  • Once a blog is enabled as an eventblog all entries dated in the future will always be displayed! Once enabled the body field is reserved for the date (this allows date editing). You may use the extended information field for more data or modify the plugin to suit your needs.

Tour Skin

Import the tour skin from the skin import/export page by selecting “tour” from the import from local file list. Customize to your desire.

Script Errors

If you are recieving a PHP error check your conf.php to ensure that the plugin configuration is still present. See NP_EventItem variable $config_php below.

 
eventitem.txt · Last modified: 2006/12/03 22:47 by xiffy