Pagina 1 van 1
Enkele MOD's
Geplaatst: 30 nov 2005, 16:42
door Toad
Code: Selecteer alles
INSERT INTO `phpbb_config` VALUES ('registration_status', '0');
INSERT INTO `phpbb_config` VALUES ('registration_closed', '');
Moet je die in een SQL-table doen? Dus een nieuwe aanmaken?
Allebei dan in één tabel, of allebei in een aparte tabel?
Geplaatst: 30 nov 2005, 17:11
door Mickroz
dat is een SQL query die moet je draaien op je db
als je phpmyadmin gebruikt,ga je naar SQL en dan plak je die 2 regels erin en druk je op start. en klaar

Geplaatst: 30 nov 2005, 17:15
door Toad
:thumb: Gelukt!
Geplaatst: 30 nov 2005, 17:18
door Mickroz
:thumb:
Geplaatst: 30 nov 2005, 22:26
door Toad
Code: Selecteer alles
// START - SEND PM ON REGISTER MOD - AbelaJohnB
//
// According to 'netclectic' we need to set the datastamp to '9999999999' in order to
// insure the pop-up notification about a new message existing. I concur with 'netclectic'
// and have thus made the change to his suggestion. Thanks netclectic!
//
$sql = "UPDATE " . USERS_TABLE . "
SET user_new_privmsg = '1', user_last_privmsg = '9999999999'
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
}
$register_pm_subject = $lang['register_pm_subject'];
$register_pm = $lang['register_pm'];
$privmsgs_date = date("U");
$sql = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES ('0', '" . str_replace("\'", "''", addslashes(sprintf($register_pm_subject,$board_config['sitename']))) . "', '2', " . $user_id . ", " . $privmsgs_date . ", '0', '1', '1', '0')";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert private message sent info', '', __LINE__, __FILE__, $sql);
}
$privmsg_sent_id = $db->sql_nextid();
$privmsgs_text = $lang['register_pm_subject'];
//
$sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_text) VALUES ($privmsg_sent_id, '" . str_replace("\'", "''", addslashes(sprintf($register_pm,$board_config['sitename'],$board_config['sitename']))) . "')";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert private message sent text', '', __LINE__, __FILE__, $sql);
}
// END - SEND PM ON REGISTER MOD - AbelaJohnB
Ziet iemand de fout? Als ik hem in Dreamweaver open horen die // oranje te zijn, maar nu zijn ze rood.

Geplaatst: 30 nov 2005, 22:37
door Bee
Wat is de foutmelding?
Geplaatst: 01 dec 2005, 13:07
door Mickroz
als die eerst // rood zijn dan heb je ervoor een " of een ' vergeten af te sluiten,anders ligt het aan dreamweaver denk ik ,in crimson ziet alles er normaal uit...