Support Forums

Sorting listings based on JavaScript values

This is a discussion on Sorting listings based on JavaScript values within the Customizations forums, part of the Developer Forums category; (This was already posted in the templates/design forum, sorry about the duplicate post..) I'm using javascript to calculate how far ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-04-2010, 01:30 PM   #1
Customer
 
Join Date: Dec 2009
Posts: 6
Rep Power: 0
modworldwide is on a distinguished road
Default Sorting listings based on JavaScript values

(This was already posted in the templates/design forum, sorry about the duplicate post..)

I'm using javascript to calculate how far away each listing is, then displaying the distance in miles - this is all in a loop in showlistings.tpl. Now I'm trying to sort the listings from nearest to farthest.

Someone said to modify the getAllListings function in "includes/classes/kernel/Listings.php" - I haven't had much luck so far and was wondering if anyone here could give more specific advice?
modworldwide is offline   Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting listings by JavaScript values modworldwide Templates, HTML, CSS, and Design Help 1 03-02-2010 11:58 AM
Getting extrafield values in JavaScript modworldwide Templates, HTML, CSS, and Design Help 6 01-11-2010 06:21 PM
V4.1.x How to create TWO Featured Listings based upon Group ID? Bronxgodzilla Modules / Plugins / Modifications 1 07-15-2009 09:10 AM
Caegory values ryanreed71 Technical Support 7 02-13-2009 10:27 PM
Listings Order & Remove Sorting Greg H Technical Support 6 02-09-2009 07:42 PM


All times are GMT -4. The time now is 04:43 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0