Posts: 33
Threads: 9
Joined: Mar 2012
I was wanting to know how the form could be reformatted. I'm working on my uncles website and there's not alot of space. Is there anyway of having the form that users fill out that would remain on the left side of the page and then have users comments appear to the right of the page instead of under the form?
Here's the site. Not much space to work with.
wmckconst
Posts: 2,904
Threads: 59
Joined: Jun 2010
To save on vertical space, you could make the following change. The form would be initially hidden and a link clicked to expand it.
http://www.commentics.org/forum/showthread.php?tid=439
Have
you completed
the interview?
Posts: 33
Threads: 9
Joined: Mar 2012
Is there no way really of having the comments display to the right of the page and have the form sit to the left?
Posts: 33
Threads: 9
Joined: Mar 2012
I guess this is a no go then.
Posts: 2,904
Threads: 59
Joined: Jun 2010
In general I don't recommend this change, which is why I've been a bit reluctant to provide it. Very few sites (possibly including yours) have the width to be able to do this.
In /comments/includes/commentics.php, there is this (line 125):
PHP Code:
<?php
require_once $path_to_comments_folder . "includes/template/form.php"; //display form
echo "<div class='height_for_divider'></div>"; //display divider
require_once $path_to_comments_folder . "includes/template/comments.php"; //display comments
Replace with this:
PHP Code:
<?php
echo "<div style='float:left;width:40%;border-style:solid;border-width:1px;'>";
require_once $path_to_comments_folder . "includes/template/form.php"; //display form
echo "</div>";
echo "<div style='float:left;width:59%;border-style:solid;border-width:1px;'>";
require_once $path_to_comments_folder . "includes/template/comments.php"; //display comments
echo "</div>";
I've added some border styling so you can see exactly how the two sections are split and adjust it if necessary. When you're ready just remove this bit:
border-style

olid;border-width:1px;