NP_RandomQuoteDB.php

The plugin is very simple: It creates a table in your database, where it stores the quotes you add via the plugin menu.

General Plugin info
Author: Jan Albrecht (jaal)
Current Version: -
Download: http://www.salid.de/~salid/software/NP_RandomQuoteDB.v0.4.tar.gz
Code: -
Demo: http://blog.salid.de/archives/289-Version-0.4-released.html
Forum Thread: Forum thread

Installing

Just download the plugin, unzip into your Nucleus plugin folder and install it via the plugin menu.

Add the line <%plugin(RandomQuoteDB)%> somewhere in your skin.

Feed the database with some quotes. To make this easier, acivate the ”QuickMenu” Option in the plugin settings to get a quick menu.

How to use the plugin

You only add the line:

   <%plugin(RandomQuoteDB)%>

somewhere in your skin and voila: There you have your random quote displayed.

An example can be found in the upper left here: http://blog.salid.de/archives/69-Nucleus-Plugin-Random-Quote-DB.html

Options

The plugin installs itself with the following options:

$this->createOption('quickmenu', 'Show in quick menu', 'yesno', 'yes');

This allows you to acvtivate the quickmenu, which makes it possible to quickly add a quote via the menubar.

It also creates a table with the following options:

sql_query('CREATE TABLE IF NOT EXISTS ' . sql_table('plugin_randomquotedb') . '( rqdb_id INT(11) NOT NULL AUTO_INCREMENT, rqdb_quote LONGTEXT NOT NULL, rqdb_quoteby LONGTEXT, PRIMARY KEY(rqdb_id))');

Be careful when you uninstall the plugin: It drops the table with the comments!

History

  • Currently the plugin is version 0.4, as there are some improvements to be done.
  • Currently you can only add and delete quotes via a very rudimental interface.
  • I'm going to clean it up and make it a bit nice in one of the next versions.
  • Version 0.5 (planned) will match XHTML standard

If you have some suggestions on the plugin, drop me a line at mailto:salid@salid.de.

Note that the software is released and licensed via the GPL.

Version History

  • Version 0.1 - initial Release
  • Version 0.2 - See Homepage for changelog
  • Version 0.3 - Deleted ” at the end of each quote
  • Version 0.4 - Added the “edit quotes” feature

Plugin review

NP_RandomQuoteDB version 0.4 works with Nucleus CMS 3.31 - 2007-10-28 Armon

randomquotedb.txt · Last modified: 2007/10/28 17:43 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki