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 |
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.
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
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!
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.
NP_RandomQuoteDB version 0.4 works with Nucleus CMS 3.31 - 2007-10-28 Armon