afw_events: Textpattern Plugin · Apr 9, 09:57 PM
The afw_events by AllFlashWebsite.com
Use this plugin to manage article-based events. Edit events via an YUI AJAX-Powered interface to quickly insert and edit events.
This plugin does not use any additional database to store info.
Installation
- Install using the Admin control panel.
- Create a section named gigs. [This section name can be customized only by modifying the code directly (todo: make easier).]
- Create two image categories. One named event, and one named icon
- Copy ico-events-default.png to the /images/ dir on the server (sorry).
- Finally, create an article in the gigs section, the plugin requires at least one article to get started. You will copy this article (event) to create new articles (events).
- Optional: Change the custom field names in Admin > Preferences > Advanced; custom1: icon, custom2: genre
NOTE: The first 2 custom fields will be used by this plugin. If you have already named them, it should be OK.
NOTE: This plugin does not respect user privleages! If a user can access AFW Events, he may be able to modify or delete any (event) article regardless of whether or not he was the original author or not.
NOTE: When making changes to an event, this plugin will update the last modified date and user only sometimes! (Will update when modifying Title, Body, Excerpt, or custom_2).
NOTE: There may be a problem with this plugin adding the tab to extensions,
but you will be able to access it from the dropdown list in the upper-right hand corner.
(fixed)
Download
Download afw_events here
and install in TextPattern (Admin / Plugins). Be sure to set the plugin to active because all plugins are inactive by default when you install them.
You can also Just Download the afw_events Plugin however keep in mind that it does not include ico-events-default.png.
Source Code
Download afw_events-code-0.1.zip here
Read the source code in the PHP file for compilation instructions.
State of the Plugin
This plugin is a glorified article editor. Currently, it lacks some essential customization functions. This means that unless your requirements are very similar to mine, the source code will need tweaking. You can also make feature requests, just post a comment below.
Compatibility
Tested with Txp-4.0.6 and Txp-4.0.5.
Updates
4/11/08 Fixed problem of adding Tabs to Extentions. Uses newer version of zem_templ. Now Compatible with Txp-4.0.6 and Txp-4.0.5. Upgraded to latest version of YUI (important update).
Example Usage
TODO
— Pickle

What’s wrong here? I’m pasting errors, below.
Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1 select unix_timestamp(Posted) as sPosted, Title from textpattern where ID= in /home/boundary/public_html/textpattern/lib/txplib_db.php on line 81
Notice: Undefined index: sPosted in /home/boundary/public_html/textpattern/lib/txplib_misc.php(574) : eval()‘d code on line 546
Notice: Undefined index: Title in /home/boundary/public_html/textpattern/lib/txplib_misc.php(574) : eval()‘d code on line 561
Notice: Undefined index: Title in /home/boundary/public_html/textpattern/lib/txplib_misc.php(574) : eval()‘d code on line 565
Notice: Undefined index: Title in /home/boundary/public_html/textpattern/lib/txplib_misc.php(574) : eval()‘d code on line 568
Notice: Undefined index: Title in /home/boundary/public_html/textpattern/lib/txplib_misc.php(574) : eval()‘d code on line 572
Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1 update textpattern set Posted=from_unixtime(1205874300), url_title=‘3182008-tuesday’ where ID= in /home/boundary/public_html/textpattern/lib/txplib_db.php on line 81
— Worth Swearingen · Apr 11, 11:10 AM · #
— Pickle · Apr 11, 12:25 PM · #