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 March 27th, 2006, 04:41 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 73
Change default No of products on showcat

Hi
I would like on showcat to make 24 products per page as default instead of 12.
I checked - Admin - showcat.php - rp_categories in MySQL - but i guess i'm going blind or searching at the wrong place
Thank you
nassau is offline   Reply With Quote
Old March 27th, 2006, 05:17 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,649
perpage is always 3 times the number of thumbnail columns you want absolute.

Only way for you to do that without having 8 thumbs across would be to put some hardcoded variable at the top of your showcat template after this opening tag

Code:
Content visible to verified customers only.
__________________
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 March 27th, 2006, 07:31 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 73
Question Something's missing...

Quote:
Originally Posted by Chuck S
perpage is always 3 times the number of thumbnail columns you want absolute.

Only way for you to do that without having 8 thumbs across would be to put some hardcoded variable at the top of your showcat template after this opening tag

Code:
Content visible to verified customers only.
Hi Chuck and thank you for your reply. I've got 6 .tmpl and i edited all of them like this:


<?
$perpage="24";

include( "{$Globals['TMPL_PATH']}/cathead.tmpl" );
include( "{$Globals['TMPL_PATH']}/categories.tmpl" );

No errors and the "Per page" drop down box is set on 24 but... i still get 12 products per page. I would extremely appreciate a bit more help if you have a free minute.
Thanks again
nassau is offline   Reply With Quote
Old March 27th, 2006, 07:42 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,649
Try putting it in showcat.php

Code:
Content visible to verified customers only.
__________________
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 March 27th, 2006, 09:30 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 73
A bit more specific if possible please

Quote:
Originally Posted by Chuck S
Try putting it in showcat.php

Code:
Content visible to verified customers only.
Thank you very much for the effort Chuck but there are quite a few $perpage in the file - i guess it should go somewhere in here:

}

$perpage1x = $Globals['thumbcols'];
$perpage3x = ($perpage1x * 3);
$perpage4x = ($perpage1x * 4);
$perpage5x = ($perpage1x * 5);
$perpage6x = ($perpage1x * 6);

if ( !empty($perpage) ) {
if ( $perpage > 90 ) $perpage = 90;
if ($perpage < $perpage1x) $perpage = $perpage1x;
}
else {
if ( isset($rpperpage) ) $perpage = $rpperpage;
else $perpage = $perpage3x;
}

if ( isset($page) && $page > 0 ) {
$startnumb = ($page*$perpage)-$perpage+1;
}

Hate to be a pain but could you please mark with red which one i should replace - or does it have to be added somewhere else? I guess i have to keep the:
<?
$perpage="24";
in the templates
Thank you
nassau is offline   Reply With Quote
Old March 27th, 2006, 09:44 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,649
No if you place it where I said it works fine.
__________________
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 March 28th, 2006, 12:33 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 73
Thumbs up Works Great

Quote:
Originally Posted by Chuck S
No if you place it where I said it works fine.
THANK YOU VERY MUCH CHUCK
nassau 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
change notify by email default to yes? scrapster Photopost Pro How Do I...? 15 July 7th, 2010 09:18 AM
RP311 - Change Number of Products per Page InterFX ReviewPost How do I...? 6 February 20th, 2010 01:15 PM
Change default view? eastestuary Photopost Pro How Do I...? 6 September 7th, 2005 09:03 PM
Increase number of products shown in /showcat.php?cat=1 criscokid Photopost Pro How Do I...? 6 April 25th, 2005 04:15 AM
default image for products without uploaded images Khashyar ReviewPost Suggestions 1 April 20th, 2005 10:45 PM


All times are GMT -5. The time now is 09:03 AM.

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