Script URL:
Version of script:
Version of PHP:
Hosting company: OCS Solutions
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try: Guest Book Size Adjust, and looked at all "guestbook" forum titles)
Write your message below: I am really happy with the script (THANK YOU), but wondered if there's a way to have more entries PER PAGE. In other words, can we adjust the page be longer vertically?
Thanks for your help
Will
Guestbook---more entries per page?
Yes it is possible but not yet with a setting in settings.php
To change the number of entries on a page you have to edit the gbook.php file.
Find the following code (starting at line 106):
To change for example to 15 entries per page it would look like:
And you should change the following code at line 124:
To change for example to 15 entries per page it would look like:
Hope this helps.
Greetings,
Henrie
To change the number of entries on a page you have to edit the gbook.php file.
Find the following code (starting at line 106):
Code: Select all
$page=gbook_isNumber($_REQUEST['page']);
if ($page>0) {
$start=($page*10)-9;$end=$start+9;
} else {
$page=1;$start=1;$end=10;
}
Code: Select all
$page=gbook_isNumber($_REQUEST['page']);
if ($page>0) {
$start=($page*15)-14;$end=$start+14;
} else {
$page=1;$start=1;$end=15;
}
Code: Select all
$pages = ceil($total/10);
Code: Select all
$pages = ceil($total/15);
Greetings,
Henrie
Hi,
What if you wanted 25 per page? Would it be this?
Thanks
What if you wanted 25 per page? Would it be this?
Code: Select all
$page=gbook_isNumber($_REQUEST['page']);
if ($page>0) {
$start=($page*25)-24;$end=$start+24;
} else {
$page=1;$start=1;$end=25;
}
Code: Select all
$pages = ceil($total/25);