Plugin Name: PHPlist Helper Plugin URI: http://zeroasterisk.com/w/Wp_plugin_phplist_helper Description: This plugin will render a auto-login link to phplist and can render a subscription input form within a template. Slight customization is required to phplist for this to work... see plugin configuration. Author: Alan Blount Version: 0.1 Author URI: http://zeroasterisk.com/
Contents |
Unzip to the following path:
./wordpress/wp-content/plugins/phplist/
Activate plugin through the plugins tab in the WP Admin interface.
Edit the options for this plugin via the "options" tab in the WP Admin interface.
NOTE: This component requires you to have customized phplist in the following way.
/***
* -- Change Needed to ./lists/admin/auth/phplist_auth.inc --
* =====================================
* Changed [line 11] to be as follows.
* (multiple lines, or remove line breaks, your choice)
* The reason for the change was to allow MD5 stored passwords
* to propagate from an alternate system or an override key,
* which didn't require a password at all...
* =====================================
*/
} elseif ($admindata[0] &&
(
$admindata[0] == $password ||
$admindata[0] == md5($password) ||
md5($admindata[0]) == $password ||
$password == md5($_SERVER['HTTP_HOST'].$_SERVER['REMOTE_ADDR'].date('mdh')) ||
$password == md5($_SERVER['HTTP_HOST'].$_SERVER['REMOTE_ADDR'].date('mdh',strtotime('+1hour'))) ||
$password == md5($_SERVER['HTTP_HOST'].$_SERVER['REMOTE_ADDR'].date('mdh',strtotime('-1hour')))
) && strlen($admindata[0]) > 3) {
NOTE: If you want to render the subscription form, you'll need to edit the template, calling the following function where you want the form to render (often in the sidebar.php).
<?php
if (function_exists('phplist_subscribeform_echo')) {
phplist_subscribeform_echo();
}
?>
Views
Personal tools