The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
May 22, 2012, 06:30:53 PM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,604 Posts in 625 Topics by 1,179 Members
Latest Member: bobsteam
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto, iRealty and iLister v.4.x
| |-+  General iRealty Discussions
| | |-+  Listing ID Search
« previous next »
Pages: [1] Print
Author Topic: Listing ID Search  (Read 1030 times)
infoseeker
Newbie
*

Karma: 0
Posts: 30


View Profile
« on: November 15, 2009, 04:24:09 PM »

Hi all,

I have been figuring it out how to add listing ID search on every page. So visitors can find a listing by only entering listing ID. I have tried to modify my_listings.tpl and add few code on index and main.tpl on templates\default\main directory but it still didn't work.

Can anybody share and solve this?!

Thanks in advance.
Logged
JohnT
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #1 on: November 26, 2009, 10:11:24 AM »

Hi infoseeker,

Did you get your answer?  If so, let us know what it was.
Logged
Smart Girl
Administrator
Full Member
*****

Karma: 5
Posts: 224


View Profile
« Reply #2 on: November 26, 2009, 04:09:03 PM »

You can use {search property="id"}.
Logged

JohnT
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #3 on: November 28, 2009, 12:24:05 AM »

Thanks Lena.
Logged
infoseeker
Newbie
*

Karma: 0
Posts: 30


View Profile
« Reply #4 on: November 29, 2009, 06:59:55 PM »

Thanks Lena. It works awesome.

Did you know how to add option list? Search ID you told me was for Home for sale. I wish to enable users to choose between fro sale and rent.

I believe this will make much better.

Thanks in advance.
Logged
infoseeker
Newbie
*

Karma: 0
Posts: 30


View Profile
« Reply #5 on: November 30, 2009, 04:17:37 PM »

Dudes..I believe many of you expect to add search id feature.

Here I will explain below

I. FIND HOME (FOR SALE) PAGE (search_form.tpl)

Add this code above city input form

<!--NEW ID SEARCH FEATURE-->   <tr>   <td class="searchFormCaption" >[[$form_fields.id.caption]]:</td><td>{search property=id}</td>
      </tr><!--END OF NEW ID SEARCH FEATURE-->

II. FIND RENTAL PAGE (search_rent_form.tpl)

Add this code above city input form

<!--NEW ID SEARCH FEATURE-->   <tr>   <td class="searchFormCaption" >[[$form_fields.id.caption]]:</td><td>{search property=id}</td>
      </tr><!--END OF NEW ID SEARCH FEATURE-->

III. QUICK SEARCH (quick_search.tpl)
Add this code if you want to add Listing ID Search on Quick Search

<!--NEW ID SEARCH FEATURE-->
         <tr><td>{$form_fields.id.caption} :</td><td colspan=3>{search property=id}</td></tr>
         
      <!--END OF NEW ID SEARCH FEATURE-->

IV. You can also add this great feature to users' menu (left block) on each page by simply adding this code on main.tpl & index.tpl

<div class="pollBlock">

            {module name="classifieds" function="search_form" form_template="id_search_sale.tpl" listing_type_id="HomesForSale"}</div>      
<div class="pollBlock">

            {module name="classifieds" function="search_form" form_template="id_search_rent.tpl" listing_type_id="HomesForRent"}</div>      


Note: Make sure you add these codes AFTER " {module name="poll" function="poll_form"} </div>". I am now trying to locate better position but I have yet to find best solution.

Finally, you must create 2 (two) file to support the function.

id_search_sale.tpl >> Save this file to templates\yourtheme\classifieds

<form action="{$GLOBALS.site_url}/search_results/">
<input type="hidden" name="listing_type[equal]" value="{$listing_type_id}" />
<input type="hidden" name="action" value="search">
   <table border="0" cellpadding="2" cellspacing="0">
   
      
         
<!--NEW ID SEARCH FEATURE-->
            <tr>

                    <td align="left" style="font-weight:bold" colspan="2">Seacrh Listing by IDl</td>

            </tr>
         <tr><td align="left" width="10">{$form_fields.id.caption} </td><td colspan=1>{search property=id}</td>
         <td align="right" colspan="2">
            <input type="submit" class="button" value="[[GO:raw]]"/>
         </td>
         
         </tr>
         
      
         <!--END NEW SEARCH ID-->
         
      
         

   </table>

</form>

id_search_rent.tpl


Dudes..I believe many of you expect to add search id feature.

Here I will explain below

I. FIND HOME (FOR SALE) PAGE (search_form.tpl)

Add this code above city input form

<!--NEW ID SEARCH FEATURE-->   <tr>   <td class="searchFormCaption" >[[$form_fields.id.caption]]:</td><td>{search property=id}</td>
      </tr><!--END OF NEW ID SEARCH FEATURE-->

II. FIND RENTAL PAGE (search_rent_form.tpl)

Add this code above city input form

<!--NEW ID SEARCH FEATURE-->   <tr>   <td class="searchFormCaption" >[[$form_fields.id.caption]]:</td><td>{search property=id}</td>
      </tr><!--END OF NEW ID SEARCH FEATURE-->

III. QUICK SEARCH (quick_search.tpl)
Add this code if you want to add Listing ID Search on Quick Search

<!--NEW ID SEARCH FEATURE-->
         <tr><td>{$form_fields.id.caption} :</td><td colspan=3>{search property=id}</td></tr>
         
      <!--END OF NEW ID SEARCH FEATURE-->

IV. You can also add this great feature to users' menu (left block) on each page by simply adding this code on main.tpl & index.tpl

<div class="pollBlock">

            {module name="classifieds" function="search_form" form_template="id_search_sale.tpl" listing_type_id="HomesForSale"}</div>      
<div class="pollBlock">

            {module name="classifieds" function="search_form" form_template="id_search_rent.tpl" listing_type_id="HomesForRent"}</div>      


Note: Make sure you add these codes AFTER " {module name="poll" function="poll_form"} </div>". I am now trying to locate better position but I have yet to find best solution.

Finally, you must create 2 (two) file to support the function.

id_search_sale.tpl >> Save this file to templates\yourtheme\classifieds

<form action="{$GLOBALS.site_url}/search_results/">
<input type="hidden" name="listing_type[equal]" value="{$listing_type_id}" />
<input type="hidden" name="action" value="search">
   <table border="0" cellpadding="2" cellspacing="0">
   
      
         
<!--NEW ID SEARCH FEATURE-->
            <tr>

                    <td align="left" style="font-weight:bold" colspan="2">Seacrh Listing by IDl</td>

            </tr>
         <tr><td align="left" width="10">{$form_fields.id.caption} </td><td colspan=1>{search property=id}</td>
         <td align="right" colspan="2">
            <input type="submit" class="button" value="[[GO:raw]]"/>
         </td>
         
         </tr>
         
      
         <!--END NEW SEARCH ID-->
         
      
         

   </table>

</form>

Hopefully you enjoy this.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Classified Software by Worksforweb Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!