Forgot your password? Forgot your username? Create an account

 
Welcome, Guest
Username: Password: Remember me

TOPIC: Apostrophes not formatted correctly when form sent by email

Apostrophes not formatted correctly when form sent by email 3 years 2 months ago #4128

  • Alex
  • Alex's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 7778
  • Thank you received: 241
  • Karma: 60
madbrad76 wrote:
No offense, but I'd rather not give you access to my site. It's just that it's hard to trust anyone these days. I'm not saying you would, but I'd hate for my site to be hacked. I'd really hate to have to do that work all over again, if you know what I mean. If this is the only solution to this issue, it might be a last resort to give you access.
As you wish. :)
madbrad76 wrote:
Also wanted to let you know that this same issue occurs with the apostrophes in the field type: checkbox - list as well. One of the listed items has an apostrophe in it. When the message is forwarded to my Gmail, I get the same type of characters as mentioned before. Also, the apostrophe shows up just nothing after it in the aiContactSafe message and the message forwarded to my other email. There seems to be some common issue with the apostrophe character somewhere.
There is no problem with apostrophes unless you create one in the configuration.
If you used the parameters of the fields make sure you closed all the apostrophes you opened and you don't have strange styles or html attributes.
The administrator has disabled public write access.

Apostrophes not formatted correctly when form sent by email 3 years 2 months ago #4129

  • madbrad76
  • madbrad76's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
Here is the code that is in the mail template section. There might be some issue here.
<?php
/**
 * @version     $Id$ 2.0.7 0
 * @package     Joomla
 * @copyright   Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
 * @license     GNU/GPL, see LICENSE.php
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// don't remove anything above this text

// you have in the array "$fields" all the information entered in the contact form ( including values in fld_value )
// use <?php echo $fields&#91;'field_name'&#93;->fld_value; ? > to display the value of the field "field_name" ( remove the space between "?" and ">" )
?>

<table border="0" cellpadding="0" cellspacing="2">
	<?php foreach($fields as $field) { ?>
		<tr>
			<td><span <?php echo $field->label_message_parameters; ?> > <?php echo $field->field_label_message; ?></span></td>
			<td> </td>
			<td> <?php echo ($field->field_type == 'FL')?$field->fld_link&#58;$field->fld_value; ?></td>
		</tr>
	<?php } ?>
</table>
The administrator has disabled public write access.

Apostrophes not formatted correctly when form sent by email 3 years 2 months ago #4130

  • madbrad76
  • madbrad76's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
Also, here is the CSS code for the profile in which this error is occurring. I hope this helps as well.
/* 
	align - all left
	make sure you have the corect aiContactSafe_mainbody_9 set everywhere on this CSS code
	the number following aiContactSafe_mainbody_ is the id of the profile
	if not properly set, the changes affecting this tag will not take effect
*/

/* display into the center of the page */
div#aiContactSafe_mainbody_9 {
	margin-left&#58;auto;
	margin-right&#58;auto;
}

/*

set the width of some of the fields
add here any of the fields of aiContactSafe

// Textbox
		div#aiContactSafe_mainbody_9 input#nume_field
// Combobox
		div#aiContactSafe_mainbody_9 select#nume_field
// Editbox
		div#aiContactSafe_mainbody_9 textarea#nume_field
// Checkbox - List
		div#aiContactSafe_mainbody_9 input.nume_field
// Radio - List
		div#aiContactSafe_mainbody_9 input.nume_field
// Date
		can't modify the width
// Email
		div#aiContactSafe_mainbody_9 input#nume_field
// Email - List
		div#aiContactSafe_mainbody_9 select#nume_field
// Joomla Contacts
		div#aiContactSafe_mainbody_9 select#nume_field
// Joomla Users
		div#aiContactSafe_mainbody_9 select#nume_field
// SOBI2 Entries
		div#aiContactSafe_mainbody_9 select#nume_field
// Hidden
		nothing to set
// Separator
		div#aiContactSafe_mainbody_9 div#sp_nume_field
// File
		only a very complex solution will fix this problem
// Number
		div#aiContactSafe_mainbody_9 input#nume_field
// Hidden Email
		nothing to set

*/
div#aiContactSafe_mainbody_9 input#aics_name {
	width&#58;240px;
}
div#aiContactSafe_mainbody_9 input#aics_email {
	width&#58;240px;
}
div#aiContactSafe_mainbody_9 input#aics_phone {
	width&#58;240px;
}
div#aiContactSafe_mainbody_9 input#aics_subject {
	width&#58;240px;
}
div#aiContactSafe_mainbody_9 textarea#aics_message {
	width&#58;240px;
	height&#58;80px;
}

/* set the way labels and fields are displayed */
div#aiContactSafe_mainbody_9 div.aiContactSafe_row {
	clear&#58;both;
	padding&#58;2px 0px;
}
div#aiContactSafe_mainbody_9 div.aiContactSafe_contact_form_field_label_left {
	clear&#58;both;
}
div#aiContactSafe_mainbody_9 div.aiContactSafe_contact_form_field_right {
	clear&#58;both;
}

div#aiContactSafe_mainbody_9 div.aiContactSafe_contact_form_field_label_right {
	float&#58;left;
}
div#aiContactSafe_mainbody_9 div.aiContactSafe_contact_form_field_left {
	float&#58;left;
}

/* center the contact form */
div#aiContactSafe_mainbody_9 #aiContactSafeForm {
	margin-left&#58;auto;
	margin-right&#58;auto;
}

/* set the space between the notification for the required fields to the contact form */
div#aiContactSafe_mainbody_9 div#aiContactSafe_info {
	margin-bottom&#58;10px;
}

/* set the div containing the captcha */
div#aiContactSafe_mainbody_9 div#div_captcha {
	clear&#58;both;
	margin&#58;5px 0px;
	padding-top&#58;10px;
}
div#aiContactSafe_mainbody_9 div#div_captcha_info {
	margin-bottom&#58;5px;
}

/* set the way the text counting the characters in the edit box */
div#aiContactSafe_mainbody_9 div.countdown_div {
	font-size&#58;9px;
}
div#aiContactSafe_mainbody_9 input.countdown_editbox {
	font-size&#58;9px;
	text-align&#58;center;
	border&#58;none;
	overflow&#58;visible;
	background&#58;transparent;
}

/* set the cells containig the contact form and the contact information */
div#aiContactSafe_mainbody_9 table#aiContactSafeForm td, div#aiContactSafe_mainbody_9 div#aiContactSafeForm {
	padding&#58;5px;
	vertical-align&#58;top;
}

/* modify the cursor of the labels to let the user know they can click on them */
div#aiContactSafe_mainbody_9 label {
	cursor&#58;pointer;
}
/* set the label tag containing the character that marks the required fields */
div#aiContactSafe_mainbody_9 label.required_field {
	text-align&#58;left;
	vertical-align&#58;top;
	margin-left&#58;5px;
}

/* hide the hidden rows */
div#aiContactSafe_mainbody_9 div.aiContactSafe_row_hidden {
	display&#58;none;
}

/* make the buttons higher */
div#aiContactSafe_mainbody_9 div#aiContactSafeBtns input {
	padding&#58;5px;
	margin&#58;0px;
}

/* set the way the date is displayed */
div#aiContactSafe_mainbody_9 table.aiContactSafe_date td {
	padding&#58;0px 0px 0px 0px;
	vertical-align&#58;middle;
}
div#aiContactSafe_mainbody_9 table.aiContactSafe_date td select {
	margin&#58;0px 2px 0px 0px;
}

/* set the space between field sufix and the field and between the field prefix and the field */
div#aiContactSafe_mainbody_9 span.aiContactSafe_sufix {
	margin-right&#58;3px;
}
div#aiContactSafe_mainbody_9 span.aiContactSafe_prefix {
	margin-left&#58;3px;
}
The administrator has disabled public write access.

Apostrophes not formatted correctly when form sent by email 3 years 2 months ago #4131

  • Alex
  • Alex's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 7778
  • Thank you received: 241
  • Karma: 60
Seams you want the error to be in the code and you don't want to consider checking your changes.
I, of course, have those files since I wrote them, but as you could see in the demo page ( if you checked the option to receive the message as well ) there is no problem with the code.
Sorry. Can't help you with this. You have to check your settings and make sure you don't have some strange code into the fields parameters.
The administrator has disabled public write access.

Apostrophes not formatted correctly when form sent by email 3 years 2 months ago #4132

  • madbrad76
  • madbrad76's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
Sorry, I wasn't saying the error was in the code. I'm new to Joomla and the whole web site design thing. I didn't know if a new CSS code was generated for each unique profile or field created. I figured if that was the case, then that was where the error was.

I did try sending the message to myself using the site you provided earlier and it did in fact work. I guess I will go ahead and provide you access to my site via administrator. I'll send the info in a PM.
The administrator has disabled public write access.

Apostrophes not formatted correctly when form sent by email 3 years 2 months ago #4133

  • Alex
  • Alex's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 7778
  • Thank you received: 241
  • Karma: 60
madbrad76 wrote:
I guess I will go ahead and provide you access to my site via administrator. I'll send the info in a PM.
You don't have to do that. I'm creating a temporary hosting account now and we'll discuss on it. :)
The administrator has disabled public write access.