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

searching for psrking spaces does function correct
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: searching for psrking spaces does function correct
#4770
searching for psrking spaces does function correct 1 Year, 5 Months ago Karma: 0
I am implementing the component in conjunction with the search module js.
I notice that when seraching for properties with e.g. plus 3 parking spaces, I still get all properties also the ones with lesser parking spaces. What do i have to change to correct that ?
I tried the fix mentioned here on the forum for the bedrooms search but that doesn't do the trick.
gerpol
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/21 10:01 By gerpol.
The administrator has disabled public write access.
 
#4803
Re:searching for psrking spaces does function correct 1 Year, 5 Months ago Karma: 59
\components\com_properties\models\properties.php
line 240


if(JRequest::getVar('garage', 0, '', 'int')){
if(JRequest::getVar('garage', 0, '', 'int')<5){
$this->sqlparking = ' AND p.garage >= '.JRequest::getVar('garage', 0, '', 'int');
}else{
$this->sqlparking = ' AND p.garage >= '.JRequest::getVar('garage', 0, '', 'int');
}
}


replace for this code


if(JRequest::getVar('parking', 0, '', 'int')){
if(JRequest::getVar('parking', 0, '', 'int')<5){
$this->sqlparking = ' AND p.garage >= '.JRequest::getVar('parking', 0, '', 'int');
}else{
$this->sqlparking = ' AND p.garage >= '.JRequest::getVar('parking', 0, '', 'int');
}
}
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4804
Re:searching for psrking spaces does function correct 1 Year, 5 Months ago Karma: 0
thanks, i'm gonna try this. Be back soon.
gerpol
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4805
Re:searching for psrking spaces does function correct 1 Year, 5 Months ago Karma: 0
thank you very much admin. It works like a charm now. As i am doing this as a translation service for DutchJoomla i'll be back in a few days to hand you not only the translation but also some enhancements in the searching possibilities (i.e. added the option pool).

Thanks again for the quick and adequate help!
gerpol
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5087
Re:searching for psrking spaces does function correct 1 Year, 5 Months ago Karma: 0
Hello este8an.

took a bit longer then expected, but as promised : here is the adapted version of the component and the module mod_prop_search_js. Dutch translation is included.

I have changed some search-options. i.e. I expanded the number of rooms and added a search option for swimming pool. Search for pools maybe not perfect but it gets the job done.

Also I've added some missing language strings in (of course) the Dutch ini files. I didn't however added those missing strings in the other language files, since I don't speak Spanish etc.

Keep up the good work !

Kind regards,

Gert van de Pol
Translation Team DutchJoomla.
gerpol
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/02 16:16 By gerpol.
The administrator has disabled public write access.
 
#5088
Re:searching for psrking spaces does function correct 1 Year, 5 Months ago Karma: 59
Thanks Gert van de Pol.
here is language files for component
www.com-property.com/en/download.html?func=fileinfo&id=30

and here module search js
www.com-property.com/en/download.html?func=fileinfo&id=31
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/02 17:18 By administrator.
The administrator has disabled public write access.
 
#5090
Re:searching for psrking spaces does function correct 1 Year, 5 Months ago Karma: 0
wow, that's fast. I gather you find the enhancement useful and checked if it proper works for you ? When you find some bugs in my little reprogramming i would like to hear it.
gerpol
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1