
11-29-2004, 09:13 PM
|
 |
|
|
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by mtha
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:
|
Rob, do you want to add this option to turn ON/OFF the welcome PM into your hack?
I think I'd be very handy for users
|