|
|
#1 |
|
Member
Join Date: Aug 2008
Posts: 68
Rep Power: 5 ![]() |
Hi,
I would like to add the advanced search options on every page of my site. Currently, the out of the box solution places just the Search input box on every page. However, i would like to also place the List of Categories drop down, City and Country. Can someone provide me with the approach to take. I'm not looking for all the code, just the approach. For example, do I combine the current code that is in search.php and search.tpl into my layout.tpl file? If so, can I have statements that are present in a php file in a tpl file? Or do I merely place the search.php code into my init.php file, since I want to make this available to all files? Thanks in advance,
__________________
Many Thanks, Nagrap2 Developer Version 4.1 |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,847
Rep Power: 111 ![]() |
What I would probably do is take the code from search.php and add it to a plugin. Then you could just call the plugin which would give you the form.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#3 | |
|
Moderator
Join Date: Mar 2006
Posts: 4,227
Rep Power: 103 ![]() ![]() |
Quote:
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
|
#4 |
|
Member
Join Date: Aug 2008
Posts: 68
Rep Power: 5 ![]() |
Larry / Eric,
Thanks for the prompt response. Just so I'm clear, I would create a php file to setup the form and then call that php file from within a tpl file. What is the correct syntax for calling the php file from within the tpl file? Is it any of the following? {include_php file='/path/to/file.php'} OR {php} include("/home/.../public_html/includes/file.php"); {/php}
__________________
Many Thanks, Nagrap2 Developer Version 4.1 |
|
|
|
|
|
#5 | |
|
Moderator
Join Date: Mar 2006
Posts: 4,227
Rep Power: 103 ![]() ![]() |
Quote:
But in short, any file in the plugin folder is automatically accessible by just dropping the plugins name in any template ie {myplugin} There are different kinds of plugins but using the featured listing horizontal thats called by home.tpl should offer enough guidance to get ya started.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Mar 2008
Posts: 839
Rep Power: 22 ![]() |
There is a search module for this 68 Classified Modules For Sale which has already been styled and provides full search on any page where you place it. Here is an example where the module comes up because there are no search results so it gives the user another opportunity to search again.
http://www.globalboatsales.com/searc...&Submit=Search |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding search option to main site search page? | scott17b | v3.1 Modules & Modifications | 4 | 07-28-2008 07:39 PM |
| Modification: Display Search String on Search Results Page | jonahcoyote | v4 Modules / Modifications | 22 | 07-26-2008 06:08 AM |
| Adding date search to search.php | abkeller | v3.1 Modules & Modifications | 5 | 07-03-2007 10:28 AM |
| Adding a new page | spaceboy | v3.1 Questions & Support | 6 | 09-24-2006 07:45 AM |
| Adding Search to | sleepy | HTML, CSS, and Design Help | 8 | 04-09-2006 12:12 PM |