Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: snork13 - maaliskuu 09, 2006, 03:34:17 IP

Otsikko: [solved] textarea (modsetting.php) help!
Kirjoitti: snork13 - maaliskuu 09, 2006, 03:34:17 IP
function ModifypayPalSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Donations - On or off?
array('check', 'payPalEnable'),
'',
// Paypal key and Reason
array('textarea', 'payPalKey'),
array('text', 'payPalReason'),
           
);


I'm trying to set a textarea in modsetting.php, how can i get the textarea? Can i say "text" and set the array to handle the height and width of the textarea? Something like below?

array('textarea', 'payPalKey', array('20',
         '20')),

array(l'arge_text','payPalKey','8', &$txt['payPalReason1'],)

-snork