PDA

View Full Version : Guestbook Issue!! Help Needed


picman
20th of January 2009 (Tue), 12:25
Hi all,

I have just done an upgrade for a friend and everything went just fine. However, when looking at the guestbook page only three columns show where there should be four.

I have tried replacing all the template files from a known good site, all files were uploaded in the correct format. I even uploaded good copies of guestbook.php and SCRIPT_guestbook.php.

Attached is a small screen shot of the problem. If anyone has any ideas I would love to hear from you.

The url to the page is:
http://www.johnelliseone.co.uk/gallery/guestbook.php

Overshot
21st of January 2009 (Wed), 06:38
Try adding a few more comments. Pekka's code appears to change the column count depending on the overall number of guest comments to be shown and the selected number to show on each page.

picman
21st of January 2009 (Wed), 10:48
Sorry Overshot, I don't think that will make a difference.

Here is a link to a site with less entries in the guestbook running on the same server.

http://www.daftdogdesigns.co.uk/guestbook.php?ee_lang=eng

As you can see they line up perfectly.

Thanks for trying.

Any other suggestions?

Overshot
21st of January 2009 (Wed), 11:06
I don't use the guestbook on my site and was suspicious until I tried it. When I had 5 guest comments it behaved exactly as yours... as I increased the comments it went back up to 4 comments per row.

The code appears to display the comments column by column... with four comments only 1 row is required so you get 1 row of four comments. Five comments will not fit in 1 row so the columns are displayed with 2 comments in each column so you only reach the third column before the comments run out.

I think increasing the comments would be worth a try.

picman
21st of January 2009 (Wed), 12:08
Hi Overshot,

You were quite right. I went to my friends site and added another guestbook entry - nothing changed so, I added another and that did the trick.

It is obviously an issue that needs looking into by someone with more knowledge than me.

Another site that has one entry looks extremely odd:

http://www.barrysgallery.co.uk/guestbook.php?ee_lang=eng

Thanks fo the help.