Support Forums

Old 02-18-2009, 03:05 AM   #1
Member
 
 
Join Date: Jan 2009
Location: England
Posts: 37
Rep Power: 2
jason1971 is on a distinguished road
Arrow add a quick search to layout.tpl

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
jason1971 is offline   Reply With Quote
Old 02-18-2009, 03:58 AM   #2
Moderator
 
 
Join Date: Mar 2008
Posts: 782
Rep Power: 21
seymourjames has a spectacular aura about
Default

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.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 02-18-2009, 04:19 AM   #3
Member
 
 
Join Date: Jan 2009
Location: England
Posts: 37
Rep Power: 2
jason1971 is on a distinguished road
Arrow add a quick search to the layout

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
jason1971 is offline   Reply With Quote
Old 02-18-2009, 08:01 AM   #4
Moderator
 
 
Join Date: Mar 2008
Posts: 782
Rep Power: 21
seymourjames has a spectacular aura about
Default

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.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0