|
|
#1 |
|
Member
Join Date: Jun 2008
Location: Maldives
Posts: 59
Rep Power: 7 ![]() |
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 |
|
|
|
|
|
#2 |
|
Coder
Join Date: Mar 2006
Posts: 4,808
Rep Power: 117 ![]() ![]() ![]() |
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. |
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2008
Location: Maldives
Posts: 59
Rep Power: 7 ![]() |
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 |
|
|
|
|
|
#4 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,572
Rep Power: 39 ![]() |
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. |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Apr 2009
Posts: 242
Rep Power: 6 ![]() |
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" |
|
|
|
|
|
#6 |
|
Member
Join Date: Jun 2008
Location: Maldives
Posts: 59
Rep Power: 7 ![]() |
simply including search.tpl in home.tpl does not work.
__________________
v 4.1.3 Developer |
|
|
|
|
|
#7 |
|
Genius At Work
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 910
Rep Power: 24 ![]() |
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 |
|
|
|
|
|
#8 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,572
Rep Power: 39 ![]() |
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. |
|
|
|
|
|
#9 |
|
Member
Join Date: Jun 2008
Location: Maldives
Posts: 59
Rep Power: 7 ![]() |
thanks Nick.. renaming the files worked the way I want.
__________________
v 4.1.3 Developer |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |