[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 07-20-2008, 02:58 AM   #1 (permalink)
New Member
 
Join Date: Jan 2008
Posts: 12
0.00 NP$ (Donate)

HawaiiSteve is an unknown quantity at this point


DomainSellerPro - Home Page Category Box sorting

This is for RJ:

I have a 2x2 Category Box matrix on the home page of my DSP. I can't figure out how to control/specify the default sorting within the 4 Category Boxes on the Home Page.

1 - What lines of code in which files control the default sorting order?

2 - I would VERY much like to be able to specify/control the sorting within each individual Category Box differently. Can DSP be made to do this? If so, what lines of code in which files control the sorting order for each Category Box individually?

Thanks!

Steve
HawaiiSteve is offline  
Old 07-22-2008, 07:54 AM   #2 (permalink)
Positive Hacker


 
DomainReseller's Avatar
 
Join Date: Jun 2007
Location: In your PC eating your cookies //3
Posts: 173
90.50 NP$ (Donate)

DomainReseller is a glorious beacon of lightDomainReseller is a glorious beacon of lightDomainReseller is a glorious beacon of lightDomainReseller is a glorious beacon of lightDomainReseller is a glorious beacon of light


Providing a code sample would help. Not all users are familiar with the script, although they may have the knowledge required to assist you with this issue.
__________________
New blog launched! - MattPress.com

Have you tried a Virtual Remote Desktop yet? EvenOverHere.com
DomainReseller is offline  
Old 07-22-2008, 09:34 AM   #3 (permalink)
New Member
 
Join Date: Jan 2008
Posts: 12
0.00 NP$ (Donate)

HawaiiSteve is an unknown quantity at this point


Quote:
Originally Posted by DomainReseller
Providing a code sample would help. Not all users are familiar with the script, although they may have the knowledge required to assist you with this issue.
Hi. I'm familiar enough with RJ's code in DSP to be able to try several changes already that the PHP shows as being what controls sort order, but the changes don't do anything. That's why I'm asking for RJ's help to simply point out what code in which files that I must be missing, controls the sort order for the Category Boxes on the Home Page.
HawaiiSteve is offline  
Old 07-22-2008, 01:57 PM   #4 (permalink)
RJ
NamePros Founder

Administrator

 
Join Date: Feb 2003
Location: Bay Area, CA
Posts: 13,173
102,201.68 NP$ (Donate)

RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness

Find Marrow Donors! Cystic Fibrosis
I believe what you're looking for is in the functions_inc.php file, in the display_sample() function.

Specifically, this part of the mysql query string:
Code:
ORDER BY rand()
You can change to ORDER by what ever column of the mysql database you like.

RJ
RJ is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:21 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85