Log in

View Full Version : IN Private.php


TTayfun
11-23-2011, 07:51 PM
hi guys,
i dont want edip PHP file and How do WRITE PLUGIN? Look:

in private.php

($hook = vBulletinHook::fetch_hook('private_newpm_blank')) ? eval($hook) : false;
}

construct_checkboxes(array(

'savecopy' => $vbulletin->userinfo['pmdefaultsavecopy'],
'parseurl' => true,
'signature' => iif($vbulletin->userinfo['signature'] !== '', true)
));

and i want add this code:

'receipt' => iif($vbulletin->userinfo['field13'], true),

and final must seem:

($hook = vBulletinHook::fetch_hook('private_newpm_blank')) ? eval($hook) : false;
}

construct_checkboxes(array(
'receipt' => iif($vbulletin->userinfo['field13'], true),
'savecopy' => $vbulletin->userinfo['pmdefaultsavecopy'],
'parseurl' => true,
'signature' => iif($vbulletin->userinfo['signature'] !== '', true)
));

kh99
11-23-2011, 10:53 PM
Not every mod can be done using just plugins. But I think you can do what you want to do if you use hook private_complete (which is near the end of the file), and this code:

$checked['receipt'] = iif($vbulletin->userinfo['field13'], true, false);

TTayfun
11-23-2011, 11:23 PM
very thanks usable code.