Topic: Private messages for 1.2.12
Does anybody of you knof a mod for private messages that can be run on punbb version 1.2.12?
I've allready tried Private Message System and Private Message mod v1.2.2 but both didn't work.
Can anybody help me?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Private messages for 1.2.12
Does anybody of you knof a mod for private messages that can be run on punbb version 1.2.12?
I've allready tried Private Message System and Private Message mod v1.2.2 but both didn't work.
Can anybody help me?
They both should work, you might just have to edit install_mod.php to add your version in
Every Time i want to run the install_mod.php of private message mod v.1.2.2 i get this error:
An error was encountered
File: ********************************************/install_mod.php
Line: 62PunBB reported: Unable to create table forum_messages.
Database reported: Invalid default value for 'owner' (Errno: 1067)
Show me the query please.
Open install_mod.php and find:
default:
$sql = 'CREATE TABLE '.$db->prefix."messages (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
owner int(10) NOT NULL DEFAULT '',
subject VARCHAR(120) NOT NULL DEFAULT '',
message TEXT,
sender VARCHAR(120) NOT NULL DEFAULT '',
sender_id int(10) NOT NULL DEFAULT '',
posted INT(10) NOT NULL DEFAULT '',
sender_ip VARCHAR(120),
smileys TINYINT DEFAULT '1',
status TINYINT DEFAULT '0',
showed TINYINT DEFAULT '0',
PRIMARY KEY (id)
) TYPE=MyISAM;";
$db->query($sql) or error('Unable to create table '.$db->prefix.'messages.', __FILE__, __LINE__, $db->error());
break;
and change it to:
default:
$sql = 'CREATE TABLE '.$db->prefix."messages (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
owner int(10) NOT NULL,
subject VARCHAR(120) NOT NULL,
message TEXT,
sender VARCHAR(120) NOT NULL,
sender_id int(10) NOT NULL,
posted INT(10) NOT NULL,
sender_ip VARCHAR(120),
smileys TINYINT DEFAULT '1',
status TINYINT DEFAULT '0',
showed TINYINT DEFAULT '0',
PRIMARY KEY (id)
) TYPE=MyISAM;";
$db->query($sql) or error('Unable to create table '.$db->prefix.'messages.', __FILE__, __LINE__, $db->error());
break;
It worked very well, thanks a lot!
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Private messages for 1.2.12
Powered by PunBB, supported by Informer Technologies, Inc.