Form_helper and links
Posted: 04 October 2006 07:18 PM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  120
Joined  12-10-2004

Hi,

I am using the form_helper plugin to create a SAEF. Two of my fields contain email addresses and urls respectively. The auto-code function of EE appears to interfere with the form_helper function when the user edits their record. Without turning off the auto-code link function in weblog preferences, I have managed to resolve the problem with the url field through the use of the ‘strip_html’ plugin, and by defining the field as text-area. However the strip_html pluging/tag does not have the desired effect the field containing email addresses.

Here is the code I am using:

{exp:weblog:entries weblog="{segment_3}" status="not closed" show_expired="no" rdf="off"}
{exp
:form_helper:member_is_author author_id="{author_id}"}

{exp
:weblog:entry_form weblog="{segment_3}" return="{segment_3}/editlist/{entry_id}"}

<input type="hidden" name="entry_id" value="{entry_id}" />
<
input type="hidden" name="entry_date" value="{entry_date format='%Y-%m-%d %g:%i %A'}" />
...
<
p>Contact_email:<br />
<
textarea name="{exp:form_helper:field_grabber field_name='contact_email'}"  rows="1" cols="55" />
{exp:form_helper:field_parser}{exp:html_strip convert='Y'}{contact_email}{/exp:html_strip}{/exp:form_helper:field_parser}</textarea>
<
input type="hidden" name="{exp:form_helper:field_grabber field_name='contact_email' which='format'}" value="br" />
<
br>

<
p>Website:<br />
<
textarea name="{exp:form_helper:field_grabber field_name='website'}"  rows="1" cols="55" />
{exp:form_helper:field_parser}{exp:html_strip convert='Y'}{website}{/exp:html_strip}{/exp:form_helper:field_parser}</textarea>
<
input type="hidden" name="{exp:form_helper:field_grabber field_name='requirements' which='format'}" value="br" />
<
br>
...
{/exp:weblog:entry_form}
{
/exp:form_helper:member_is_author}
{
/exp:weblog:entries}

Does anyone know how I can resolve the issue with fields containing email addresses without resorting to disabling the auto-code function in weblog preferences?

Thanks

Profile
 
 
Posted: 05 October 2006 09:51 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  24513
Joined  05-20-2002

I wonder why strip_html is having trouble with that one in particular?  I might try a few variations on that, and if I had no luck, give the Solspace crew a yell and see if they have an idea.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 18 October 2006 12:53 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  64
Joined  01-31-2002

have you found a solution for this, dpotter?

Profile
 
 
Posted: 18 October 2006 03:42 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
RankRank
Total Posts:  120
Joined  12-10-2004

I ended up just disabling the autocoding of links in the weblog preferences, and hard-coding the links in my template.

Profile
 
 
Posted: 18 October 2006 08:07 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  64
Joined  01-31-2002

not really satisfying but a solution. thank you for this information.
martin

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 77459 Total Logged-in Users: 40
Total Topics: 101503 Total Anonymous Users: 21
Total Replies: 544234 Total Guests: 243
Total Posts: 645737    
Members ( View Memberlist )