Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4.1 Questions & Support

Notices

 
LinkBack Thread Tools Display Modes
Old 09-14-2009, 01:58 PM   #1
Member
 
Join Date: Jun 2008
Location: Maldives
Posts: 59
Rep Power: 7
business is on a distinguished road
Default include advanced search on home page

I have been trying to include the advanced search (search.php) in the homepage. i tried to included the file search.tpl in home.tpl [[ {include file="search.tpl"} ]]. but it does not work this way. in another topic it stated that we need to include part of search.php in index.php ..... but which part? any help?
__________________
v 4.1.3 Developer
business is offline   Reply With Quote
Old 09-14-2009, 02:25 PM   #2
Coder
 
Join Date: Mar 2006
Posts: 4,808
Rep Power: 117
Lhotch is a glorious beacon of lightLhotch is a glorious beacon of lightLhotch is a glorious beacon of light
Default

Are you referring to a 3rd party product when you say "Advanced Search" or are you trying to custom code something?
__________________
Larry

What I post here should be used only as a guide to point you in the right direction. If the code I post doesnt make any sense or work as posted then you should spend more time reading the various manuals and tutorials so it does make sense and you can tweak it to work. A sure fire way to get yourself in trouble is to implement changes you dont have an intimate understanding of. Im happy to help, but I am not here to teach you to code or create your site for you.
Lhotch is offline   Reply With Quote
Old 09-14-2009, 02:35 PM   #3
Member
 
Join Date: Jun 2008
Location: Maldives
Posts: 59
Rep Power: 7
business is on a distinguished road
Default

i mean the search page in 68C which we reach by going to search.php page.
it shows the category, city, price etc in the search form.
__________________
v 4.1.3 Developer
business is offline   Reply With Quote
Old 09-14-2009, 02:56 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,572
Rep Power: 39
seymourjames has a spectacular aura about
Default

It is not so easy to do this directly by custom coding without the developer version and a knowledge of php and smarty. You would also need to do it for each page you wish to have search on. However, we do offer a module to put search on any page of your template. One line of code in showlistings or on the home page or whatever.

TemplateCodes | 68 Classifieds Global Search Module

I use this module personally on the home page of one classifieds site that I run and I also use it when a category is empty or their are empty search results from an initial search. It means search is provided directly to the visitor without them having to hit the menu search button again.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 09-15-2009, 05:51 AM   #5
Senior Member
 
 
Join Date: Apr 2009
Posts: 242
Rep Power: 6
damiun is on a distinguished road
Default

Hi,

You can also include the search .tpl template,
__________________
68 Classifieds Dev. 4.1.6 - www.damiun.nl

"The best you can do is to never stop working on what you love to do"
damiun is offline   Reply With Quote
Old 09-15-2009, 06:46 AM   #6
Member
 
Join Date: Jun 2008
Location: Maldives
Posts: 59
Rep Power: 7
business is on a distinguished road
Default

simply including search.tpl in home.tpl does not work.
__________________
v 4.1.3 Developer
business is offline   Reply With Quote
Old 09-15-2009, 07:56 AM   #7
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 910
Rep Power: 24
bowers01 is on a distinguished road
Default

Did you want the categories to display on the home page? or are you happy with the dropdown?
If you are happy with just the dropdown rename search.php to index.php
If you want both templatecodes module would be a lot better.
Cheers
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 09-15-2009, 08:28 AM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,572
Rep Power: 39
seymourjames has a spectacular aura about
Default

Thank you Nick,

Guys, it will not work properly with an advanced search without modifications to core files. Modifying core files is not smart - (upgrades). The only stable way to do this is through a module. Write your own or purchase one.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 09-15-2009, 08:50 AM   #9
Member
 
Join Date: Jun 2008
Location: Maldives
Posts: 59
Rep Power: 7
business is on a distinguished road
Default

thanks Nick.. renaming the files worked the way I want.
__________________
v 4.1.3 Developer
business 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
Add variables to Advanced Search samhadr v4.1 Questions & Support 3 09-02-2009 09:20 AM
I'm wanting to put quick horse search on home page jaybarber1 v4.1 Questions & Support 0 07-19-2009 11:14 PM
Custom Home Page with Search stuarthutchinson v3.1 Questions & Support 3 03-14-2007 05:49 PM
Login Box and search Box Home for page 3.1 zman78 v3.1 Modules & Modifications 0 07-03-2006 09:09 AM


All times are GMT -4. The time now is 12:48 AM.


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