Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Setting the post box to be larger?

Quote Reply
Setting the post box to be larger?
Hello,

I've seen where it is in the templates to change the size of the new message posting box, but of course it depends on the users preference, but it seems the users standard preference is the 60 col by 10 rows. I want to make it so that the users default preference s substantially larger than this, so that when a new user joins and goes to post their first post, the posting message box is already like 300 x 30 without them needing to go and change their preferences.

Of course I could just remove the part about the users preference in the template, but that defeats the purpose of the user being allowed to choose so I'd rather not do that.

So how do I change the default preference of users when they first sign up to be more than the 60x10 for the posting new message box?

Thanks
Quote Reply
Re: [Westin] Setting the post box to be larger? In reply to
Hi,

I believe the options you need to edit, are:

22 user_cols INT Yes 60 Default textarea cols TEXT
23 user_rows INT Yes 10 Default textarea rows TEXT

Now, it looks like these are "protected", so what you need to do - is open up /admin/defs/gfroum_User.def, and find:

Code:
'user_cols' => {
'default' => '60',
'form_display' => 'Default textarea cols',
'form_size' => '10',
'form_type' => 'TEXT',
'not_null' => '1',
'pos' => '22',
'protect' => '1',
'type' => 'INT',
'unsigned' => '1'
},
'user_rows' => {
'default' => '10',
'form_display' => 'Default textarea rows',
'form_size' => '10',
'form_type' => 'TEXT',
'not_null' => '1',
'pos' => '23',
'protect' => '1',
'type' => 'INT',
'unsigned' => '1'
},

Then change to something like:

Code:
'user_cols' => {
'default' => '300',
'form_display' => 'Default textarea cols',
'form_size' => '10',
'form_type' => 'TEXT',
'not_null' => '1',
'pos' => '22',
'protect' => '1',
'type' => 'INT',
'unsigned' => '1'
},
'user_rows' => {
'default' => '30',
'form_display' => 'Default textarea rows',
'form_size' => '10',
'form_type' => 'TEXT',
'not_null' => '1',
'pos' => '23',
'protect' => '1',
'type' => 'INT',
'unsigned' => '1'
},

However, 300x30 seems a BIG box. You will probably wanna play around with those dimensions ;) (don't forget, its rows & cols, and NOT in pixels)

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!
Quote Reply
Re: [Andy] Setting the post box to be larger? In reply to
Thanks Andy, I'll give that a try. Yeah I have to keep reminding myself that not everybody runs on a 24" widescreen of which even then 300 is probably too large. I just use one of the admin panels (links, forums etc) to see how large columns are and you are right, even 150 is large. So I'll adjust, just 60 is way too small.

Thanks again, you've been a lot of help.
Quote Reply
Re: [Westin] Setting the post box to be larger? In reply to
Hi,

NP - hopefully that does the trick for ya =)

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!