Quote:
Originally Posted by msimplay
what about turning it on and off ?
|
Seem like the function wasnt implemented, so I gave it a shot.
If you already install the hack, do the followings
run this querry to add another option (turn on/off) to your "vB Registration Options
Code:
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('regpmactive', 'register', '1', '1', '', 139, 0, 0);
INSERT INTO phrase (phraseid, languageid, varname, `text`, phrasetypeid) VALUES (NULL, '0', 'setting_regpmactive_title', 'Send default PM to new users?', '5000');
INSERT INTO phrase (phraseid, languageid, varname, `text`, phrasetypeid) VALUES (NULL, '0', 'setting_regpmactive_desc', '', '5000');
In registration.php
Look for
Code:
$pmoptions['regpmtext'] = $vboptions['regpmtext'];
add above:
Code:
$pmoptions['regpmactive'] = $vboptions['regpmactive'];
Look for:
Code:
// Send the new owner a PM
$DB_site->query(
Add above:
Code:
if ($pmoptions['regpmactive']) {
LOOK FOR
Code:
// ###################################################################
// # END WELCOME PM HACK
// ###################################################################
ADD ABOVE: