Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Defining size of a TEXTAREA in plugin settings

Quote Reply
Defining size of a TEXTAREA in plugin settings
Hi,

I've never actually had the need to do this before, so I'm at a bit of a loss as to how its done <G>

I'm trying to define a TEXTAREA plugin setting option, so that its 15,15 in size. The current code I have is:

Code:
$mgr->install_options('MembershipSystem', [['PaymentTypes', '30 days|30|10.00|description of membership
60 days|30|17.50|description of membership
90 days|30|25.00|description of membership
1 year|365|50.00|description of membership', 'Example usage:

30 days|30|10.00|description of membership
60 days|30|17.50|description of membership
90 days|30|25.00|description of membership
1 year|365|50.00|description of membership', 'TEXTAREA', [], [], '']]);

Is there even an option for this?

I know that the last 2 [], [] bits are for SELECT / CHECKBOX etc fields (the options) - but I can't for the life of me work out how the fix the dimensions :|

TIA if anyone knows <G>

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Defining size of a TEXTAREA in plugin settings In reply to
*bump*

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Defining size of a TEXTAREA in plugin settings In reply to
If you pass in an array ref of [cols, rows] as the last argument (instead of the empty string), it should set the size of the textarea.

Adrian
Quote Reply
Re: [brewt] Defining size of a TEXTAREA in plugin settings In reply to
Hi,

Thanks for the reply :)

Do you mean something like this?

Code:
$mgr->install_options('MembershipSystem', [['PaymentTypes', '30 days|30|10.00|description of membership
60 days|30|17.50|description of membership
90 days|30|25.00|description of membership
1 year|365|50.00|description of membership', 'Example usage:

30 days|30|10.00|description of membership
60 days|30|17.50|description of membership
90 days|30|25.00|description of membership
1 year|365|50.00|description of membership', 'TEXTAREA', [], [], [15,15]]]);

If so - it doesn't work Unimpressed


TIA

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates