|
|
#1 |
|
Senior Member
Join Date: Nov 2006
Posts: 190
Rep Power: 14 ![]() |
Would anybody like to see the standard listings randomise, so that everybody get the same exposure, but also randomise the featured listing above the standard listings,
or if a advertiser changes/edits there advert the system sees it as a new listing and moves there advert up, but I think this could couse a lot more bandwidth to be used Maybe this can be inserted into V4 Thanks Glenn
__________________
Costa del Sol Spain v3.1.10 Dev V4.09 Dev sweeeet �Powerful you have become, the dark side I sense in you.� Last edited by CHRD; 04-13-2007 at 06:40 AM. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jun 2006
Posts: 172
Rep Power: 16 ![]() |
Change ASC or DESC in ORDER BY to RANDOM
__________________
Greg 3.1.4 Designer |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Nov 2006
Posts: 190
Rep Power: 14 ![]() |
Sorry Im looking in administration/searchsettings.php and I dont have random setting in the sort listing options.
__________________
Costa del Sol Spain v3.1.10 Dev V4.09 Dev sweeeet �Powerful you have become, the dark side I sense in you.� |
|
|
|
|
|
#4 | |||
|
Customer
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 737
Rep Power: 28 ![]() |
Quote:
Changed this: Quote:
Quote:
__________________
Chaslie V4.1 dev 68 Classifieds Important Links Customer Area | Issue Tracker | User Manuals & Documentation HTML Help W3 Schools |
|||
|
|
|
|
|
#5 | |
|
Senior Member
Join Date: Jun 2006
Posts: 172
Rep Power: 16 ![]() |
Quote:
UPDATE: My error... should be rand()
__________________
Greg 3.1.4 Designer Last edited by gregbatch; 04-16-2007 at 03:52 PM. |
|
|
|
|
|
|
#6 | |
|
Customer
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 737
Rep Power: 28 ![]() |
Quote:
__________________
Chaslie V4.1 dev 68 Classifieds Important Links Customer Area | Issue Tracker | User Manuals & Documentation HTML Help W3 Schools |
|
|
|
|
|
|
#7 |
|
Customer
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 737
Rep Power: 28 ![]() |
Greg. Have you exhausted your ideas about this one yet?
__________________
Chaslie V4.1 dev 68 Classifieds Important Links Customer Area | Issue Tracker | User Manuals & Documentation HTML Help W3 Schools |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Jun 2006
Posts: 172
Rep Power: 16 ![]() |
Im not sure what is taking place in the "MAIN_PRODUCT_SORT" and "MAIN_PRODUCT_SORT_OPTION". I assume it would be the "field to sort on" and the "order" options from within the admin panel, then the second level sort within that by default is date added. I think you would need to kill one of the order options. I'm not so sure rand() plays well with others. Since you are basically throwing the main sort options out the window anyway, I would try kiling that.
Code:
$sSQL .= " ORDER BY ".MAIN_PRODUCT_SORT." ".MAIN_PRODUCT_SORT_OPTION.", p.dateadded DESC"; Code:
$sSQL .= " ORDER BY p.dateadded rand()";
__________________
Greg 3.1.4 Designer |
|
|
|
|
|
#9 | ||
|
Customer
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 737
Rep Power: 28 ![]() |
Quote:
If you then replace DESC with rand(), you get SQL errors. Quote:
This certainly is a feature I would like to add to our own site so the topics is still open for solving.
__________________
Chaslie V4.1 dev 68 Classifieds Important Links Customer Area | Issue Tracker | User Manuals & Documentation HTML Help W3 Schools |
||
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Jun 2006
Posts: 172
Rep Power: 16 ![]() |
Yep. Don't know, as I use rand() on another site to pull featured ads randomly. I'm sure it's clashing with other code somewhere. Unfortunatley, I don't have developer to look deeper.
UPDATE: OK. Had to look at my own code (ahem ) to remember what I did. Rand() must be used alone, i.e. ORDER BY rand() . So, the result would be TOTALLY random.
__________________
Greg 3.1.4 Designer Last edited by gregbatch; 04-16-2007 at 09:41 PM. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Price checking by Listing Package | Bucketman | v3.0 Questions & Support | 25 | 12-03-2007 04:48 AM |
| Problems with updateOrder function | flyingpylon | v3.1 Questions & Support | 3 | 11-06-2006 08:58 PM |
| User: See's Membership listing package | garysr | v3.1 Questions & Support | 23 | 11-04-2006 01:08 PM |
| Problem in ACP with messed up Listing Extras | pat01 | v3.1 Questions & Support | 0 | 07-18-2006 01:32 PM |
| View Listing (404 Error) | Scooter | v3.1 Questions & Support | 7 | 06-08-2006 02:09 PM |