RSS
Home
Welcome, Guest
Please Login or Register.    Lost Password?

Property Search Module JS
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Property Search Module JS
#5865
Property Search Module JS 2 Years, 7 Months ago Karma: 0
The module is at home, so it opens the site when the person clicks on localities appears all localities of all cities, I would not appear at all. Appeared only after choosing a city. Is to do this?

I am Brazilian, trying to communicate with you through the google translator. Thanks in advance.
Well
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5866
Re: Property Search Module JS 2 Years, 7 Months ago Karma: 14
this is possible just need to change the code a bit.

i will post this later (if no one else does) need to go to work now
wulfseidel
i simply love this component :D
Gold Boarder
Posts: 258
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hamburg GER Birthday: 08/28
The administrator has disabled public write access.
 
#5872
Re: Property Search Module JS 2 Years, 7 Months ago Karma: 0
i need it too, and i will it too for the category and type sistem...soo that the ugly double list is not show...like appartment appartment if i don't select one of rent or sale.
it is possibile??
Enzo
Expert Boarder
Posts: 123
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Italy Birthday: 11/08
The administrator has disabled public write access.
 
#5874
Re: Property Search Module JS 2 Years, 7 Months ago Karma: 14
ok first save your default.php!!!

this one
/modules/md_prop_search_js/tmpl/default.php


then rename the default.txt i provide in this post to default.php and upload it to

/modules/md_prop_search_js/tmpl/

see if it works as you whish, if not replace it with your backup again and let me know the error.

Greetings
File Attachment:
File Name: default-20101001.txt
File Size: 9713
wulfseidel
i simply love this component :D
Gold Boarder
Posts: 258
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hamburg GER Birthday: 08/28
The administrator has disabled public write access.
 
#6100
Re: Property Search Module JS 2 Years, 7 Months ago Karma: 0
How about, if I selected country and leave state for all states. Then the result for localities we can choose is locality in that country.

Now, the module will show all localities if we dont select state.
liekin
Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6166
Re: Property Search Module JS 2 Years, 7 Months ago Karma: 14
i will try to have a look at this again, in mine (which is really modified) i dont even have the chance to select a locality if i dont select a state in the first place ...

but this was kinda easy to find and figure out.. i will olook at this in the next 2 days. sorry that i cant help faster
wulfseidel
i simply love this component :D
Gold Boarder
Posts: 258
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hamburg GER Birthday: 08/28
The administrator has disabled public write access.
 
#6171
Re: Property Search Module JS 2 Years, 7 Months ago Karma: 14
open /modules/mod_prop_search_js/tmpl/default.php

(be sure to backup your file first)

look for
Code:

<?php if($States)
    {
    echo '<div class="combo_search">'.$States.'</div>';
    }
?>




replace with

Code:

<!--
<?php if($States)
    {
    echo '<div class="combo_search">'.$States.'</div>';
    }
?>
-->



look for

Code:

<!--
<div class="combo_search">
    <select class="select_search" name="sid" size="1" id="sid" onchange="changeLocalityList();" <?php if($Countries){ echo 'disabled="disabled"';}?> >
        <option value=""><?php echo JText::_('State'); ?></option>        
    </select>    
</div>    
-->



remove the <!-- and --!>

look for

Code:

<?php 
if($Localities){
echo '<div class="combo_search">'.$Localities.'</div>';
}
?>



replace with

Code:

<!--<?php 
if($Localities){
echo '<div class="combo_search">'.$Localities.'</div>';
}
?>-->



and last step look for

Code:

<!--
<div class="combo_search">
    <select class="select_search" name="lid" size="1" id="lid" <?php if(!$Hsid){ echo 'disabled="disabled"';}?>>
        <option value=""><?php echo JText::_('Locality'); ?></option>        
    </select>    
</div>   
-->



and again remove the leading <!-- and the --!> at the end
wulfseidel
i simply love this component :D
Gold Boarder
Posts: 258
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hamburg GER Birthday: 08/28
Last Edit: 2010/10/15 06:20 By wulfseidel.
The administrator has disabled public write access.
 
#6703
Re: Property Search Module JS 2 Years, 6 Months ago Karma: 0
i tryed this code it doesn't work please see the result in my website
www.immobilier.clicalgerie.com

locality is desabled and states are not uploaded to the list
moon
Junior Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dentifreeze Location: Algiers
Last Edit: 2010/11/03 05:18 By moon.
The administrator has disabled public write access.
 
#6922
Re: Property Search Module JS 2 Years, 6 Months ago Karma: 14
sorry i missed your post ...

you disabled the Landsearch? did you define a default country in the configuration?

the code makes the searchmodule get the State (ètat) after selecting the Country.

if you want to display all states you can just undo the steps for states

look for

Code:

<!--
<?php if($States)
    {
    echo '<div class="combo_search">'.$States.'</div>';
    }
?>
-->



replace with

Code:

<?php if($States)
    {
    echo '<div class="combo_search">'.$States.'</div>';
    }
?>



look for
Code:



<div class="combo_search">
    <select class="select_search" name="sid" size="1" id="sid" onchange="changeLocalityList();" <?php if($Countries){ echo 'disabled="disabled"';}?> >
        <option value=""><?php echo JText::_('State'); ?></option>        
    </select>    
</div>    





replace with

Code:



<!--<div class="combo_search">
    <select class="select_search" name="sid" size="1" id="sid" onchange="changeLocalityList();" <?php if($Countries){ echo 'disabled="disabled"';}?> >
        <option value=""><?php echo JText::_('State'); ?></option>        
    </select>    
</div> --!>   

wulfseidel
i simply love this component :D
Gold Boarder
Posts: 258
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hamburg GER Birthday: 08/28
The administrator has disabled public write access.
 
#6956
Re: Property Search Module JS 2 Years, 6 Months ago Karma: 0
yes i desabled in the search the contry and fixed a default contry, thank you for the code.
now the state list is displayed fine !

the next step is:
- to unabel and display localities of the selected state.
- to display off the type befor selecting the category (because type is repeated 2 times if we don't select a category)

please re visite to see the result www.immobilier.clicalgerie.com

and thank you for helping
moon
Junior Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dentifreeze Location: Algiers
The administrator has disabled public write access.
 
#7471
Re: Property Search Module JS 2 Years, 5 Months ago Karma: 59
modules\mod_prop_search_js\helper.php
line 260

function getTypes($Hcid,$Htid)
{
$db =& JFactory::getDBO();

if(!$Hcid){
$query = 'SELECT * FROM #__properties_type WHERE published = 1 ORDER BY name';

replace

published = 1

to

published = 2

then if category is not selected, no show types
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7473
Re: Property Search Module JS 2 Years, 5 Months ago Karma: 0
Admin, I need show subCategories in Search module JS. It is posible?
Thnaks for your reply.
Tommi
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7474
Re: Property Search Module JS 2 Years, 5 Months ago Karma: 59
to show cats and subcats in a select, without parent type and prices
modules\mod_prop_search_js\helper.php

search this function

function getCategories($Hcid)

and replace all code for this

function getCategories($Hcid)
{

$db =& JFactory::getDBO();
if ( $row->id ) {
} else {
$id = null;
}
if (!$row->parent) {
$row->parent = 0;
}
$query2 = 'SELECT count(p.id) as total ,c.name FROM `jos_properties_products` as p inner join jos_properties_category as c on c.id = p.parent group by c.id ';
$db->setQuery($query2);
$items = ($items = $db->loadObjectList())?$items:array();
$query = 'SELECT * ' .
' FROM #__properties_category as c' .
' WHERE published != -2' .
$id .
' ORDER BY parent, ordering';
$db->setQuery( $query );
$mitems = $db->loadObjectList();

$children = array();

if ( $mitems )
{
foreach ( $mitems as $v )
{
$pt = $v->parent;
$list = @$children[$pt] ? $children[$pt] : array();
array_push( $list, $v );
$children[$pt] = $list;
}
}
$list = JHTML::_('menu.treerecurse', 0, '', array(), $children, 9999, 0, 0 );

$mitems = array();
$mitems[] = JHTML::_('select.option', '', JText::_( 'All Categories' ) );

foreach ( $list as $item ) {
$mitems[] = JHTML::_('select.option', $item->id, ''. $item->treename );
}
$javascript = '';
$output = JHTML::_('select.genericlist', $mitems, 'cid', 'class="select_search_vertical" size="1"'.$javascript, 'value', 'text', $Hcid );
return $output;
}
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7508
_POST_RE Re: Property Search Module JS 2 Years, 5 Months ago Karma: 0
Admin please, where in code we could include Market Details in search module?
www.com-property.com/en/forum-v3/12-sear...et-on-module-js.html
meduljak
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7510
_POST_RE Re: Property Search Module JS 2 Years, 5 Months ago Karma: 0
thank you admin,

the last and the must important bug fixing is :
to enable and display localities of the selected state.

thanks for your reply
+1 karma
moon
Junior Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dentifreeze Location: Algiers
The administrator has disabled public write access.
 
#7519
Re:_POST_RE Re: Property Search Module JS 2 Years, 5 Months ago Karma: 59
moon, active localities in search params to show localities in module
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7521
Re:_POST_RE Re: Property Search Module JS 2 Years, 5 Months ago Karma: 59
Meduljak
sorry, but not will be work with SEF urls
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7534
Re:_POST_RE Re: Property Search Module JS 2 Years, 5 Months ago Karma: 0
Is there any way to make this to work? Any price?
meduljak
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7553
Re:_POST_RE Re: Property Search Module JS 2 Years, 5 Months ago Karma: 0
in search params localities is actived,
in the front-end it is shown but unabel to access (i used the hack of wulfseidel)
normally when i select a state, the localities have to be accessible, and have to upload the selected state's localities list
but nothing heppend. exuse my bad english
if i haven't goodly explain the probleme you can see it in www.immobilier.clicalgerie.com
thank's a lot admin
moon
Junior Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dentifreeze Location: Algiers
The administrator has disabled public write access.
 
#7555
Re:_POST_RE Re: Property Search Module JS 2 Years, 5 Months ago Karma: 59
i see a problem in your locality
'88' 'Arib
' );

edit this locality and delete chars after Arib in name
maybe you have \n or \r and cant see
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12