Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Make textarea for globals bigger

Quote Reply
Make textarea for globals bigger
Can anyone tell me where the textarea values for the globals is? I need to make them a little bigger so I can see the code better.

Thanks
Quote Reply
Re: [MJB] Make textarea for globals bigger In reply to
Links::Tools::global_editor generates the html for the textarea.

Might be a better idea to edit the template and set a style in the header. That template is in admin/build_global.html

Adrian
Quote Reply
Re: [MJB] Make textarea for globals bigger In reply to
/admin/Links/Tools.pm, find:

Code:
sub global_editor {

..and then:

Code:
$table .= qq~<tr><td valign=top><font $font>$code</font></td><td><input type="hidden" name="orig-$code" value="$str"><textarea rows=5 cols=40 name='save-$code' wrap="off">$str</textarea></td><td><input type=checkbox name="del-$code" value="1"></td></tr>~;

Should be as simple as editing that Smile

EDIT: Doh , Adrian beat me too it Whistle

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Sep 21, 2010, 2:06 AM
Quote Reply
Re: [Andy] Make textarea for globals bigger In reply to
Thanks, I'll give that a try.

I have noticed that some browsers (eg Chrome) will allow you to stretch textareas which is very useful but not ideal if you want a permanent fix.
Quote Reply
Re: [MJB] Make textarea for globals bigger In reply to
Thanks guys. Changing them both to "rows=15 cols=150" makes it much easier to work with on a widescreen monitor. Wink