PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost How do I...?

ReviewPost How do I...? Wondering how to do something in ReviewPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 18th, 2006, 11:44 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
Change default Per Page value and modify a sort order

Hi,

1. How do I change the default "Per Page" value? We'd like 24 instead of 12 as a default.

2. How do I modify the Product Title sort order to first sort by Manufacturer Name, then Title. I noticed these sorts are defined in upgrade.php and install.php:

Code:
Content visible to verified customers only.
Is there a way to modify code that has already been installed/upgraded?

Thanks,
Zig

Last edited by Zigw; July 18th, 2006 at 11:51 AM.
Zigw is offline   Reply With Quote
Old July 19th, 2006, 07:21 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,937
That might work if thats what you want to do

There is already a sort by manufacturer sort and one for title you want one combined so your second query looks fine. I would use just to be safe though this

ORDER BY disporder,manu DESC, title DESC
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 19th, 2006, 10:00 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
Quote:
That might work if thats what you want to do There is already a sort by manufacturer sort and one for title
Yes, we are already using Manufacturer Name, but would like them sorted by Product Title as well. Currently it sorts by Manufacturer fine, but then by date (earliest to latest), which makes finding specific products difficult if there are lots from the same manufacturer. It would really be great if we could sort by Title after Manufacturer.

Quote:
you want one combined so your second query looks fine. I would use just to be safe though this

ORDER BY disporder,manu DESC, title DESC
So is there a way to do it without having to run install.php or upgrade.php?

Also, how about the default number of products per page in showcat? I didn't see an option in admin to change it from 12.

Thanks!
Zig
Zigw is offline   Reply With Quote
Old July 19th, 2006, 11:42 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
Chuck,

By looking at the showcat.php code, I could see perpage uses thumcols, so I changed "Number of columns for thumbnail pages" in Show Categories admin settings from 4 to 8, and now we have 24 as a default Per Page value.

I'd still like to know how to change that sort without having to reinstall or re-upgrade.

Thanks,
Zig

Quote:
Originally Posted by Zigw
Yes, we are already using Manufacturer Name, but would like them sorted by Product Title as well. Currently it sorts by Manufacturer fine, but then by date (earliest to latest), which makes finding specific products difficult if there are lots from the same manufacturer. It would really be great if we could sort by Title after Manufacturer.



So is there a way to do it without having to run install.php or upgrade.php?

Also, how about the default number of products per page in showcat? I didn't see an option in admin to change it from 12.

Thanks!
Zig
Zigw is offline   Reply With Quote
Old July 19th, 2006, 03:14 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,937
Just use phpmyadmin and modify the sort in the sort table of reviewpost

The REPLACE command will replace what is in there
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 19th, 2006, 11:54 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
Thanks. I'm a *total* newbie to MySQL. Is phpmyadmin a 3rd party front-end I need to install, or does it come with RP? Would I also be able to edit post dates with it?

Quote:
Originally Posted by Chuck S
Just use phpmyadmin and modify the sort in the sort table of reviewpost

The REPLACE command will replace what is in there
Zigw is offline   Reply With Quote
Old July 20th, 2006, 09:26 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,937
phpmyadmin is available below or may already be in your hosting control panel and all you do is issue that query to the database


http://www.phpmyadmin.net
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 20th, 2006, 09:48 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Location: Toronto
Posts: 205
Thanks!

BTW, is there any reason why Per Page is limited to 90 in showcat.php? When we use 48 as a default, the 96 entry in the Per Page pull-down is reset to 90 when selected. We don't show any thumbnails at that level, so there is no performance issue with listing 100's of products per page.


Quote:
Originally Posted by Chuck S
phpmyadmin is available below or may already be in your hosting control panel and all you do is issue that query to the database

http://www.phpmyadmin.net
Zigw is offline   Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change default sort in members gallery? Carolem Photopost Pro How Do I...? 3 June 1st, 2006 09:58 PM
Default sort order for search Ginslinger ReviewPost How do I...? 1 April 12th, 2006 11:00 AM
How to change order of Members -Sort by? mjm Photopost Pro How Do I...? 1 June 10th, 2005 04:08 AM
Change default ad display order kontrabass Classifieds Installation & Upgrades 12 February 26th, 2005 10:45 AM


All times are GMT -5. The time now is 11:54 PM.

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