[Solved] Guestbook all the way to the bottom?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
libralion
Forum Members
Forum Members
Posts: 191
Joined: Fri Jul 11, 2008 4:11 pm

[Solved] Guestbook all the way to the bottom?

Post by libralion »

Hi everybody,
I have a guestbook on my testsite and for some reason it is all the way to the bottom of the page. I thought maybe it was too wide, so I changed the right column, but that didnot change it.
Anybody know why it is all the way down?
This is my testsite:
http://www.jomedio.nl/cmsmadesimple/index.php?page=gastenboek
Last edited by Anonymous on Mon Jul 21, 2008 12:04 pm, edited 1 time in total.
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: Guestbook all the way to the bottom?

Post by christiaans »

First of all, this seems to be an IE only error.

The first entry in the guestbook, by Johanna, is wider then the rest of the guestbook, and might be interfering (for ie).

I'll take a better look at it later tonight, and if I find the answer, I'll let you know. :)
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Guestbook all the way to the bottom?

Post by Dee »

The guestbook messages are shown underneath the form to post a new message, this is default behaviour.
You can call the module with the showaddform parameter set to false to show a button for a new message instead of the whole form.

Code: Select all

{cms_module module=Guestbook showaddform="0"}
To change the place where the form appears, edit the Guestbook template (Content -> Guestbook -> Guestbook Templates -> Guestbook Template)
This block shows the button if showaddform="0":

Code: Select all

{if $show_insertbutton}
{$insertbutton}
{/if}
This block shows the form:

Code: Select all

{if $show_form}
{$form}
{/if}
And this block shows the messages (so put that above the previously mentioned 2 blocks to have the form underneath the messages for example):

Code: Select all

{if $show_entries}
{$entrylist}
{/if}
libralion
Forum Members
Forum Members
Posts: 191
Joined: Fri Jul 11, 2008 4:11 pm

Re: Guestbook all the way to the bottom?

Post by libralion »

@christiaans, I removed the entry in the guestbook, but still the guestbook is at the bottom of the page

@ dee, I don't know exactly what you mean with your post. I don't want the submitbutton on the page, I only want the guestbookform to appear at the top of the page instead of at the bottom. I see it is alright in FF so the width of the guestbook is ok. I have no clue why it is behaving like that in IE. In another templated that I tested it shows up ok in IE, so it must be template related.
Last edited by libralion on Sun Jul 20, 2008 6:16 pm, edited 1 time in total.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Guestbook all the way to the bottom?

Post by Dee »

Yes sorry - I don't have IE here, so I thought you meant you didn't want the guestbook (entries) to appear underneath the form.
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: Guestbook all the way to the bottom?

Post by christiaans »

Hey, I was going to check once again, and found out it displays properly now. I reckon you fixed it?

I reckon it had to do with either margins or paddings?

Please go ahead and let us know what it was, it might help solving future problems.
libralion
Forum Members
Forum Members
Posts: 191
Joined: Fri Jul 11, 2008 4:11 pm

Re: Guestbook all the way to the bottom?

Post by libralion »

christiaans wrote: Hey, I was going to check once again, and found out it displays properly now. I reckon you fixed it?

I reckon it had to do with either margins or paddings?

Please go ahead and let us know what it was, it might help solving future problems.
Wel I am not exactly sure what happened, because the last time I looked it was not ok. This is what I did: I added this to the guestbook stylesheet:

Code: Select all

textarea {
width: 300px;
}
I think that must have done it.
The odd thing is, that my contactform has the same problem. I made a new stylesheet and added that textarea code also, but so far the contactform is still at the bottom.
See: http://www.jomedio.nl/cmsmadesimple/index.php?page=contact
Maybe in an hour or so it is ok too? ;D
libralion
Forum Members
Forum Members
Posts: 191
Joined: Fri Jul 11, 2008 4:11 pm

Re: Guestbook all the way to the bottom?

Post by libralion »

Well it didnot solve itself  ;D, so I searched further and found it!
The problem most likely is that there is too little space in the main window for the form, so therefore the form goes to the bottom of the page.
When I choose in the form template the Default template or the Template from Sample form it works, because it puts the text above the fields and that way the form can be displayed normally. So solved! ;D
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: [Solved]Guestbook all the way to the bottom?

Post by christiaans »

I see, I thought it'd be something with the width and/or margins/paddings. Good thing you solved it. :)

Topic closed.
Locked

Return to “Layout and Design (CSS & HTML)”