Forums

email results skewed

deafbiz 18 Jun, 2007
First of all, thanks so much for this great component!

I sucessfully installed the form and ran a test last week and the email results showed like this:

Email:answer

Too close but I can live with it.

I didn't do any additional work.

Today, someone else filled out the form and the result is like this:

email:...........................................answer
(please ignore the dots but it's the only way to make it look like that.)

Wonder why it's so far apart?

JSG

Post edited by: deafbiz, at: 2007/06/18 19:23 <br><br>Post edited by: deafbiz, at: 2007/06/18 19:25
GreyHead 18 Jun, 2007
Hi deafbiz,

I think there is a little buglet that throws the e-mail formatting off. In line 95 of chronocontact.php there is an extra <td> which pushes the third column way off to the right. Corrected code is here (merges the second and third tds).

$html_message .= "<tr height='10'>
<td width='40%' class='tablecell1'>$field_namex</td>
<td width='60%' class='tablecell2'>".$_POST[$name]."</td>
</tr>";

Bob
deafbiz 19 Jun, 2007
This is what I've done:

$html_message.= "<tr height='10'><td width='40%' class='tablecell1'>";
$html_message.= $field_namex."</td><td width='60%' class='tablecell2'>";
$html_message.= $_POST[$name]."</td></tr>";
$i++;
}

Result is still the same.

Could you please paste the entire code,or was I supposed to remove the html_message?

JSG
GreyHead 19 Jun, 2007
Hi deafbiz,

That looks OK. (It fixed a similar problem for me.) Can you post few lines from the source of one of your test e-mails so that I can see what's being output by ChronoForms?

Bob
deafbiz 19 Jun, 2007
Can you clarify? What is exactly the source and where?

FWIW, I created another form, and still had the same problems with results being far apart.

Update: Found out the file wasn't updated. I ran another test and it's much closer, just half the distance between being next to the Elemental Fields and the far right.

So keeping fingers crossed that they stay that way!

JSG<br><br>Post edited by: deafbiz, at: 2007/06/19 02:15
Max_admin 19 Jun, 2007
Hi,

You will find more than 1 occurance of this piece of code at the chronocontact.php file :


$html_message.= "<tr height='10'><td width='40%' class='tablecell1'>";
				$html_message.= $field_namex."</td><td width='60%'></td><td class='tablecell2'>";
				$html_message.= $_POST[$name]."</td></tr>";


Please replace them all with :


$html_message.= "<tr height='10'><td width='40%' class='tablecell1'>";
				$html_message.= $field_namex."</td><td width='10%'></td><td align="left" class='tablecell2'>";
				$html_message.= $_POST[$name]."</td></tr>";


Please note that this is a small issue at V2.0 and is fixed at V2.1 which should be out very soon!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.