Duplicate entry \'0\' for key 1 SQL=INSERT INTO jos_fb_whoisonline (`userid` , `time`, `what`, `task`, `do`, `func`,`link`, `userip`, `user`) \n VALUES (\'0\', \'1223895998\', \'Is possible to set PRICE DESCENDING by default?\',\'\',\'\',\'view\',\'/index.php?option=com_fireboard&Itemid=42&func=view&id=5713&catid=8\', \'38.103.63.59\', \'0\')
Is possible to set PRICE DESCENDING by default? (0 viewing)
Favoured: 0
|
|
|
TOPIC: Is possible to set PRICE DESCENDING by default?
|
|
|
|
Is possible to set PRICE DESCENDING by default? 6 Months, 1 Week ago
|
Karma: 0
|
|
When I see a list of objects I can view this list by PRICE DESCENDING, but I must do this manually, is possible to set this by default?
Regards
Marco
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
dyhex (User)
Expert Boarder
Posts: 146
|
|
Re:Is possible to set PRICE DESCENDING by default? 6 Months, 1 Week ago
|
Karma: 4
|
Hi!
To change the default listing you have to alter the code in:
../components/com_estateagent/estateagent.php
on line 402 you will find this
| Code: |
$direction = mosGetParam( $_POST, 'direction', mosGetParam( $_REQUEST, 'direction', 'ASC' ) );
|
Change it to this
| Code: |
$direction = mosGetParam( $_POST, 'direction', mosGetParam( $_REQUEST, 'direction', 'DESC' ) );
|
Now the default listing is descending. And as always: Backup your files you're changeing 
Dyhex
|
|
|
|
|
|
|
Last Edit: 2008/04/08 20:58 By dyhex.
|
|
|
Dont be afraid of the opposition: remember a kite rises against not with the wind!
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Is possible to set PRICE DESCENDING by default? 6 Months, 1 Week ago
|
Karma: 0
|
|
ok but to have by default the PRICE???
Thanks
Marco
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
dyhex (User)
Expert Boarder
Posts: 146
|
|
Re:Is possible to set PRICE DESCENDING by default? 6 Months, 1 Week ago
|
Karma: 4
|
Must ne somewhere in line 494:
| Code: |
$query = "SELECT id, obj_id, type, title, description, rent, price, country, state, town, district, hot"
|
Have no time to test it right now, sorry.
Dyhex
|
|
|
|
|
|
|
Dont be afraid of the opposition: remember a kite rises against not with the wind!
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Is possible to set PRICE DESCENDING by default? 6 Months, 1 Week ago
|
Karma: 0
|
|
I don't understand how can I do to select by default PRICE...
Thanks
Marco
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
cartex (User)
Fresh Boarder
Posts: 3
|
|
Re:Is possible to set PRICE DESCENDING by default? 6 Months ago
|
Karma: 0
|
file: estateagent.php
line: 401
| Code: |
$ordering = mosGetParam( $_POST, 'ordering', mosGetParam( $_REQUEST, 'ordering', '[b]price[/b]' ) );
|

|
|
|
|
|
|
|
Last Edit: 2008/04/11 17:45 By cartex.
|
|
|
The administrator has disabled public write access.
|
|
|
|
|
|