Support Forums

add a quick search to layout.tpl

This is a discussion on add a quick search to layout.tpl within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi everyone, v4.0.9 Hosted What I am looking to acheive is to add a few seach fields and search button ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 02-18-2009, 03:05 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 8
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
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,659
Rep Power: 65
seymourjames is a jewel in the rough
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.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is online now   Reply With Quote
Old 02-18-2009, 04:19 AM   #3
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 8
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
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,659
Rep Power: 65
seymourjames is a jewel in the rough
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.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is online now   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixing layout of the quick search sbhkma Technical Support 4 01-21-2009 10:18 AM
modifying the quick search bar cflo Modules / Plugins / Modifications 11 01-20-2009 07:08 PM
Quick Ad Search Problems bowers01 Technical Support 5 10-15-2008 03:54 AM


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


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