|
|
#1 |
|
Member
Join Date: Jan 2009
Location: England
Posts: 37
Rep Power: 2 ![]() |
Hi everyone, v4.0.9 Hosted
What I am looking to acheive is to add a few seach fields and search button to the layout.tpl page, and have it all on one line. The fields I want to include are a keyword search field and the drop down category/subcategory field and search button. so it should look like this <center>KEYWORD SEARCH FIELD CATEGORY'S FIELD SEARCH BUTTON</center> I have tried a few options myself, but cant seem to get it to work any thoughts please ??? many many thanks Jason |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2008
Posts: 782
Rep Power: 21 ![]() |
You should be able to adapt the search module by changing the css and commenting out fields: ClassifiedMods Search Module or you can try to do it long hand by writing the appropriate code.
|
|
|
|
|
|
#3 |
|
Member
Join Date: Jan 2009
Location: England
Posts: 37
Rep Power: 2 ![]() |
Hi,
I think that placing the code in might be easier for me, mainly cos I didnt understand your first idea ![]() The code I need to somehow confirure is using: ------------------------------------------------------------------------ <td>{$smarty.const.LANG_SEARCH_TEXT}{$smarty.const .LANG_COLON}</td> <td><input name="searchtext" type="text" id="searchtext" /></td> </tr> <tr> <td width="50%">{$smarty.const.LANG_SEARCH_INCAT}{$sma rty.const.LANG_COLON}</td> <td width="50%"> <select name="type" id="type" onChange="displaySec(this);"> <option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option> {foreach from=$getcats item=cat} <option {if $cat.parent_id == 0}class="parent" {/if}value="{$cat.id}"{if $type==$cat.id} SELECTED{/if}>{$cat.name}</option> {/foreach} </select> </td> <div align="center"><input type="submit" name="Submit" value="{$smarty.const.LANG_SEARCH_BUTTON}" /></div> ------------------------------------------------------------------------------------------------- I am presuming this would be the part of the code I need ?, if so how do I configure it in to what I require please..... if thats what you mean by code Thanks Jason |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Mar 2008
Posts: 782
Rep Power: 21 ![]() |
In general, search will not work unless you include all the necessary functions that you need. I have only ever implemented search on the home page (index.php) in a longhand fashion (i.e included all necessary functions and created my own form) using the developer version. This is not really the way to do it. In my case, I just wanted a better search on my home page.
We sell this module but this is my frank response. I still think that it would be quicker and tidier to simply use the search module proposed which fires up anywhere you place it (including on the layout.tpl - so it appears anywhere). It will save you a lot of time. You then style the module and edit the fields as you need. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fixing layout of the quick search | sbhkma | v4 Questions & Support | 4 | 01-21-2009 10:18 AM |
| modifying the quick search bar | asklexi | v4 Modules / Modifications | 11 | 01-20-2009 07:08 PM |
| Quick Ad Search Problems | bowers01 | v4 Questions & Support | 5 | 10-15-2008 03:54 AM |
| quick search mod | juven14 | v3.0 Questions & Support | 39 | 08-12-2007 09:25 AM |
| Quick Search mod help | dankellaway | v3.1 Modules & Modifications | 1 | 02-22-2007 05:58 PM |