I got a reply from the mods forums, and he suggested trying the latest version of them. So I got the latest version of the install.php and update.php.. ran them and they worked successfully... but im still gettin that error in the AdminCP so its got to do with fixing that....
anyway... heres the wpm_update.php codes up to line 72
<?php
/***************************************************************************
* wpm_db_update.php
* ----------------------
*
* copyright : ©2003, 2005 Duvelske (duvelske@planet.nl)
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
define('WPM_INST', $table_prefix.'wpm');
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));
exit;
}
if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, 'You are not authorised to view this page');
}
$page_title = 'Updating the database for the WPM mod v 1.0.10';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database for the WPM mod</th></tr><tr><td><span class="genmed"><ul type="circle">';
$sql = array();
$sql[] = "DELETE FROM " . CONFIG_TABLE . " WHERE ('config_name' = 'active_wpm')";
$sql[] = "DELETE FROM " . CONFIG_TABLE . " WHERE ('config_name' = 'wpm_username')";
$sql[] = "DELETE FROM " . CONFIG_TABLE . " WHERE ('config_name' = 'wpm_userid')";
$sql[] = "DROP TABLE " . WPM_INST. "";
$sql[] = "CREATE TABLE " . WPM_INST . " (name varchar(255) NOT NULL default '', value text NOT NULL) TYPE=MyISAM";
$sql[] = "INSERT INTO " . WPM_INST . " VALUES ('wpm_version', '1.0.10')";
$sql[] = "INSERT INTO " . WPM_INST . " VALUES ('active_wpm', '1')";
$sql[] = "INSERT INTO " . WPM_INST . " VALUES ('wpm_username', 'Anonymous')";
$sql[] = "INSERT INTO " . WPM_INST . " VALUES ('wpm_userid', '-1')";
$sql[] = "INSERT INTO " . WPM_INST . " VALUES ('wpm_subject', 'Welcome to [sitename]!')";
INSERT INTO phpbb_wpm VALUES ('wpm_message', 'Hi, there [username]!');
for( $i = 0; $i < count($sql); $i++ )
{
if( !$result = $db->sql_query ($sql[$i]) )
{
$error = $db->sql_error();