NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page DomainSellerPro - Home Page Category Box sorting

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-20-2008, 03:58 AM THREAD STARTER               #1 (permalink)
Account Closed
Join Date: Jan 2008
Posts: 14
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, 08:54 AM   #2 (permalink)
Positive Hacker
 
DomainReseller's Avatar
Join Date: Jun 2007
Location: In your PC eating your cookies //3
Posts: 195
DomainReseller is a name known to allDomainReseller is a name known to allDomainReseller is a name known to allDomainReseller is a name known to allDomainReseller is a name known to allDomainReseller is a name known to all
 




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, 10:34 AM THREAD STARTER               #3 (permalink)
Account Closed
Join Date: Jan 2008
Posts: 14
HawaiiSteve is an unknown quantity at this point
 



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, 02:57 PM   #4 (permalink)
RJ
NamePros Webmaster


 
RJ's Avatar
Join Date: Feb 2003
Posts: 12,930
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 Parkinson's Disease
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
__________________
@DomainBuyer facebook
RJ is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:41 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger