Search modification question (input box size)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
AmazingRando

Search modification question (input box size)

Post by AmazingRando »

I would like to change the size of the input box of the Search that comes with CMSMS. (The default width is too wide for my needs.)

How do I change it?

Thanks,
Amazing Rando
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am

Re: Search modification question (input box size)

Post by pwg »

Hi,

Does anyone have a solution for this, as it is something that is causing me way too much grief at present. I'm having trouble getting the submit button onto the same line as the input box

With my site (www.webtactics.com.au) the search bar appears to be fine in most browser combinations, but falls apart on some (but not all) versions of IE 7 on XP Pro, at 1024 x 768.

Also happens in another site I'm halfway to completing http://gormanproperty.com.au/ which just means i'm replicating the problem.

Any help would be appreciated.

Cheers,

Paul
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Search modification question (input box size)

Post by Dr.CSS »

pwg

I don't know about IE, you may have to give it no margin and no padding, but for firefox try...

.sidecon2 input{margin:0px 0px 15px}
* html .sidecon2 input{margin:0px ; padding:0px}  for IE


In most ver. you can go to Extensions » Search and click the Search Template and put some class calls so you can style it with CSS...

It helps me if I have links than I can tell what you mean by too wide and such...  ;)
clefty
New Member
New Member
Posts: 8
Joined: Tue Jul 24, 2007 8:55 am

Re: Search modification question (input box size)

Post by clefty »

If you want to fix this without styling with css

Edit /modules/Search/action.default.php

around line 43:

Code: Select all

$this->smarty->assign('inputbox', $this->CreateInputText($id, 'searchinput', $searchtext, 20, 50, $hogan));
Change 20 to whatever length you want the input box to be.

Valid for Search 1.3
Locked

Return to “CMSMS Core”