How to preserve the @ symbol in email addresses
Posted: 09 April 2008 06:22 AM   [ Ignore ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  105
Joined  2008-03-04

I am within inches of completely wrapping up the use of Form Helper to edit a weblog entry.

I have a problem though with email addresses that come in. The @ symbol wreaks havoc, causing code to spill out onto the page. I don’t want to escape it since it is an important piece of information. Is there some way to have the @ symbol and edit too?

Thanks,

Forrest

Profile
 
 
Posted: 09 April 2008 07:06 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2692
Joined  2006-10-18

Unfortunately, that’s the nature of the beast rasberry

ExpressionEngine that is.

Those there’s a couple workarounds: smile

http://www.fckeditor.net/
http://tinymce.moxiecode.com/

 Signature 
Profile
 
 
Posted: 09 April 2008 07:10 AM   [ Ignore ]   [ # 2 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  105
Joined  2008-03-04

Alas, you can’t win them all I guess. Fortunately, this is not a field that will need to be changed, so maybe I can just have it included as an invisible element and come along for the ride.

Again, thanks for the timely assistance.

Forrest

Profile
 
 
Posted: 09 April 2008 07:19 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2692
Joined  2006-10-18

Forrest, if this is something that is a seperate field (that contains only the email address), and will never be changed, I would NOTinclude it in the form AT ALL
Just cut that line out of the form (this goes for ALL custom fields you aren’t “using”

Of course, you could generate it for appearance just as {custom_field} without using it in a form or anything smile

 Signature 
Profile
 
 
Posted: 09 April 2008 07:22 AM   [ Ignore ]   [ # 4 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  105
Joined  2008-03-04

Good. This confirms a lingering idea I had on that. I’ll go with that.

Thanks.

Profile
 
 
Posted: 09 April 2008 07:39 AM   [ Ignore ]   [ # 5 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  105
Joined  2008-03-04

Pie Man,

I think this may actually help with a lot of the information as not all of the fields need to be edited. So basically I would use the form helper section only for the fields that might need modification and enter the rest as I would on any other template? For example I tried to show the email field with in the form and it came out with the brackets around it: Email: {user_email}. Is there better syntax for that?

Thanks,

Forrest

Profile
 
 
Posted: 09 April 2008 07:44 AM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2692
Joined  2006-10-18

Correct! Though only do this with Custom Fields… if you leave something out like Category, Status, etc - it will wipe out the data for them (when submitted)

As for the {user_email}

Nope.... that should work rasberry

That’s for sure the correct short_name for the custom field?

 Signature 
Profile
 
 
Posted: 09 April 2008 07:54 AM   [ Ignore ]   [ # 7 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  105
Joined  2008-03-04

Works perfectly. This case is closed. Thanks.

Profile
 
 
   
 
 
‹‹ Error when submitting Form      Value=br ? ››