Kilkenny at bariba.de has updated the Newsletter module to accommodate later versions of php-nuke. When I installed it, however, I got a sql query error for index.php line 58. This is the fix for php-nuke 7.3. It may work for other versions, too.
The section of index.php just before line 58 should read:
Quote:
if ($cookie[0] > 0) // If logged in as user get the mailaddress -- note -- changed uid to user_id to correct sql query error//
{
$query = "SELECT user_email, user_id FROM ${prefix}_users WHERE user_id = '$cookie[0]'";
$result = mysql_query($query);
list($usermail) = mysql_fetch_row($result);
}
The comment there about the change is mine. With this fix, the user's e-mail address will be displayed in the e-mail field, as intended.
If you also get a sql query error for line 11 of index.php, change it to:
Quote:
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
from
Quote:
if (!eregi("modules.php", $PHP_SELF)) {
Bariba Newsletter 1.7 seems to work for me with these changes.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum