Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15011
Modified Files:
NEWS serendipity_admin_plugins.inc.php
serendipity_plugin_api.php db_update-0.5-0.5.1.sql
Log Message:
Clarifications, small bugfix to content_rewrite event
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- NEWS 8 Feb 2004 17:56:27 -0000 1.63
+++ NEWS 10 Feb 2004 13:36:40 -0000 1.64
@@ -2,6 +2,8 @@
Version 0.5.1 ()
------------------------------------
+ * Create example events: mailer, weblogping, contentrewrite, eventwrapper (garvinhicking)
+ * Created event plugin API to hook on certain serendipity actions (garvinhicking)
* Redesigned image manager (tomsommer)
* Added image syncronization with database (tomsommer)
* Fix leaking draft entries by directly entering URL or using quicksearch (garvinhicking)
Index: serendipity_admin_plugins.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_plugins.inc.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- serendipity_admin_plugins.inc.php 9 Feb 2004 15:20:31 -0000 1.15
+++ serendipity_admin_plugins.inc.php 10 Feb 2004 13:36:54 -0000 1.16
@@ -185,6 +185,7 @@
/* Swap the one were moving with the one that's in the spot we're moving to */
$tmp = $plugins[$idx_to_move]['sort_order'];
+
$plugins[$idx_to_move]['sort_order'] = (int)$plugins[$idx_to_move + ($_GET['submit'] == 'move down' ? 1 : -1)]['sort_order'];
$plugins[$idx_to_move + ($_GET['submit'] == 'move down' ? 1 : -1)]['sort_order'] = (int)$tmp;
Index: serendipity_plugin_api.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_plugin_api.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- serendipity_plugin_api.php 9 Feb 2004 15:21:19 -0000 1.9
+++ serendipity_plugin_api.php 10 Feb 2004 13:36:54 -0000 1.10
@@ -149,7 +149,7 @@
if ($filter !== '*') {
if ($negate) {
- $sql .= "WHERE NOT placement='$filter' ";
+ $sql .= "WHERE placement != '$filter' ";
} else {
$sql .= "WHERE placement='$filter' ";
}
Index: db_update-0.5-0.5.1.sql
===================================================================
RCS file: /cvsroot/php-blog/serendipity/db_update-0.5-0.5.1.sql,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- db_update-0.5-0.5.1.sql 9 Feb 2004 15:20:03 -0000 1.2
+++ db_update-0.5-0.5.1.sql 10 Feb 2004 13:36:54 -0000 1.3
@@ -11,10 +11,23 @@
PRIMARY KEY (`id`)
) TYPE=MyISAM;
+/*
+ If you were using the content_rewrite plugin, you need to execute:
+
UPDATE serendipity_plugins
SET name = REPLACE(name, 'serendipity_plugin_content_rewrite', 'serendipity_event_contentrewrite')
- WHERE name LIKE '%serendipity_plugin_content_rewrite%';
+ WHERE name LIKE '%serendipity_plugin_content_rewrite%';
UPDATE serendipity_config
SET name = REPLACE(name, 'serendipity_plugin_content_rewrite', 'serendipity_event_contentrewrite')
- WHERE name LIKE '%serendipity_plugin_content_rewrite%';
+ WHERE name LIKE '%serendipity_plugin_content_rewrite%';
+
+UPDATE serendipity_plugins
+ SET placement = 'event'
+ WHERE name LIKE '%serendipity_event_contentrewrite%';
+
+ After that, you have to add the serendipity_plugin_eventwrapper to your
+ plugins and configure this plugin. Set the serendipity_event_contentrewrite
+ plugin for wrapping there to see the output generatet by contentrewrite
+ anywhere you like on the sidebars.
+*/
\ No newline at end of file
|