Home

Search Module....
(2 viewing) juliuip, (1) Guest
Go to bottomPage: 12
TOPIC: Search Module....
#7905
Search Module.... 1 Year, 1 Month ago Karma: 0
How can I adjust the size of the text box in the search module? I'd like to make the box a bit longer.

Thanks!!
wjnesbitt
Senior Boarder
Posts: 72
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#7953
Re:Search Module.... 1 Year, 1 Month ago Karma: 150
Edit the module php file (line 55):
JoomlaRoot/modules/mod_hwd_vs_search/mod_hwd_vs_search.php

Add a size attribute:
www.w3schools.com/TAGS/att_input_size.asp
Davros
Administrator
Posts: 10790
graph
User Offline Click here to see the profile of this user
The topic has been locked.
If you like hwdVideoShare please consider rating it in the Joomla Extensions Directory
 
#7974
Re:Search Module.... 1 Year, 1 Month ago Karma: 0
Works perfectly! Thanks, Davros.

I was searching the link you sent trying to find out how to change the height/color of the box and font of the text within the box. Can you point me in the right direction, please? Thanks
wjnesbitt
Senior Boarder
Posts: 72
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#7987
Re:Search Module.... 1 Year, 1 Month ago Karma: 150
Same place in module php file.

Use an inline style declaration to change the height/color of the box.
Davros
Administrator
Posts: 10790
graph
User Offline Click here to see the profile of this user
The topic has been locked.
If you like hwdVideoShare please consider rating it in the Joomla Extensions Directory
 
#17417
Re:Search Module.... 6 Months, 3 Weeks ago Karma: 0
im looking to change the size of my box as the search box isnt big enough - ive read above and cant see where i add a size change

any help would be appreciated

thanks
eightieslad
Senior Boarder
Posts: 54
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#17419
Re:Search Module.... 6 Months, 3 Weeks ago Karma: 0
Easiest thing is to use css. You can add a module class suffix to the module, e.g. call it "vidsearch" and just enter the relevant styles in your template.css, e.g. I added this on sersha.com/sersha3 to get it to the correct size

div.moduletablevidsearch
{
float: left;
width: 220px;
border:6px solid #CF8A01;
}

Trev
1trev27
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#17455
Re:Search Module.... 6 Months, 3 Weeks ago Karma: 150
You can add a module class suffix to the moduleI think this would effect the containing <div> for the module, not the actual size of the input field...

To do it with CSS you would need to use something like:
Code:

div.moduletablevidsearch input
{
width: 220px;
}


I have not tested that, so it might be easier to edit:
JoomlaRoot/modules/mod_hwd_vs_search/mod_hwd_vs_search.php

Replace:
Code:

echo '<input type="text" name="pattern" value="'.$input_text.'" class="inputbox" onchange="document.adminForm.submit();"  onblur="if(this.value=='') this.value=''.$input_text.'';" onfocus="if(this.value==''.$input_text.'') this.value='';" />';


With:
Code:

echo '<input size="100" type="text" name="pattern" value="'.$input_text.'" class="inputbox" onchange="document.adminForm.submit();"  onblur="if(this.value=='') this.value=''.$input_text.'';" onfocus="if(this.value==''.$input_text.'') this.value='';" />';
Davros
Administrator
Posts: 10790
graph
User Offline Click here to see the profile of this user
The topic has been locked.
If you like hwdVideoShare please consider rating it in the Joomla Extensions Directory
 
Go to topPage: 12
get the latest posts directly to your desktop

Copyright © 2007-2010 Highwood Design | Your Details | Terms of Use | About