Home arrow Forum
Home
About
Demo
Forum
FAQ
Live Sites
Feedback

Login





Lost Password?
No account yet? Register
Stay Tuned!
 
Who's Online
We have 3 guests and 1 member online

powered_by Joomla
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\')
ME Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Is possible to set PRICE DESCENDING by default? (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Is possible to set PRICE DESCENDING by default?
#5713
Monacchi (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5716
dyhex (User)
Expert Boarder
Posts: 146
graphgraph
User Offline Click here to see the profile of this user
Gender: Male
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
 
Report to moderator   Logged Logged  
 
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.
#5717
Monacchi (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5719
dyhex (User)
Expert Boarder
Posts: 146
graphgraph
User Offline Click here to see the profile of this user
Gender: Male
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
 
Report to moderator   Logged Logged  
 
Dont be afraid of the opposition: remember a kite rises against not with the wind!
  The administrator has disabled public write access.
#5720
Monacchi (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5730
cartex (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
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]' ) );
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/11 17:45 By cartex.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop