Script URL: http://www.hanspetertschupp.com/guestbook.htm
Version of script: latest
Hosting company: Inmotionhosting
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Guest book works fine in all regards. Excellent script!
Question: How can I change the 'vertical length' of the 'View Guestbook Page'. I assume after a certain number of posts or a certain number of text lines it will change to a new page...1 2 3 etc. Which parameter determines the vertical lenght before it switches to a new page?
Hanspeter Tschupp
Vertical length of 'View Guestbook' page
Thanks Henrie,
let's say I only want 3 postings per page, what would I have to change? I assume it will be somwhere here:
Could you help?
let's say I only want 3 postings per page, what would I have to change? I assume it will be somwhere here:
I tried to change the $end=10 from 10 to 3 but I assume there are other places which need a change so the page change-over works correctly. Just changing this value restricts it to 3 postings per page, but the page change-over is not happening when more than 3 posts are present.$page=gbook_isNumber($_REQUEST['page']);
if ($page>0) {
$start=($page*10)-9;$end=$start+9;
} else {
$page=1;$start=1;$end=10;
}
$lines=file($settings['logfile']);
$total = count($lines);
if ($total > 0) {
if ($end > $total) {$end=$total;}
$pages = ceil($total/10);
Could you help?
Hello Hanspeter,
See the following topics:
viewtopic.php?t=464
and
viewtopic.php?t=527
Greetings,
Henrie
See the following topics:
viewtopic.php?t=464
and
viewtopic.php?t=527
Greetings,
Henrie