ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SAEF and "email" button in formatting buttons

December 19, 2008 6:32pm

Subscribe [2]
  • #16 / Dec 23, 2008 6:29pm

    Shannon Smith

    161 posts

    Yep, I know the code is different for the entry form and for the edit form. I’m having TWO problems occur with inputting encoded emails. One problem for the entry form and one problem for the edit form. I am using Solspace’s form helper for my edit form. However, I’m NOT using that plugin for my entry form… See the code I pasted above… it is pretty much the basic stand alone entry form code with minor modifications (eg., where the preview points to, a hidden URL_title field… as well as a couple of other minor things).

    1. Problem with entry form:
    When using “email” button, nothing gets pasted in the field that the cursor is in. “Link” and all other buttons paste in code just fine. As mentioned, the windows popup and ask for the email address and such, but then nothing is put in the field once you’ve entered the information.

    2. Problem with edit form:
    Takes an encoded email entry (in this case one entered using the control panel) and converts it to code as in entry above. This form also shares the above problem with entry form… that is, “email” button doesn’t work on the edit form either. 

    I hope this makes more sense. I don’t want the first problem to be labeled an “edit” form problem, because it is happening in the entry form. I know the second problem is possibly related to the form helper plugin, but I don’t see how the first problem can be.

  • #17 / Dec 23, 2008 6:36pm

    Sue Crocker

    26054 posts

    The problem is that I can’t replicate the problem you’re having with a vanilla SAEF (edit) form. It works just fine on my end. Tried in both summary and body fields, which in my case are set to xhtml instead of br, but that shouldn’t be an issue.

  • #18 / Dec 23, 2008 7:18pm

    Shannon Smith

    161 posts

    I wonder what is up with mine then? Should I try removing plugins? Any other ideas for me? It just seems like such an odd problem. I’m running this in a development environment at the moment. Is it possible there is something up in terms of my server settings?

  • #19 / Dec 23, 2008 8:07pm

    Greg Aker

    6022 posts

    Shannon:

    Plugins shouldn’t be affecting this since you don’t appear to be calling them on the page.

    I know you have tested disabling some extensions, but instead of disabling one at a time, can you go to Admin -> Utilities -> Extensions Manager and click the green button at the top right.  This will disable all the extensions you have, but you will not loose your settings.

    Give that a shot & report back.  😊

    -greg

  • #20 / Dec 23, 2008 8:25pm

    Shannon Smith

    161 posts

    I did try that too and no luck. Still no go with all extensions set to disabled.

    Would it matter that this is an embedded template. The call to it is pretty simple and there isn’t anything special in the page that calls it.

    Thanks for all the help so far! Not sure if either of you will be responding tomorrow or not. If not, happy holidays!

  • #21 / Dec 23, 2008 8:36pm

    Greg Aker

    6022 posts

    Shannon:

    Let’s try this.

    Please make a blank template and *only* put the SAEF code on it.  After you submit, are things still messing up?

    -greg

  • #22 / Dec 23, 2008 8:50pm

    Shannon Smith

    161 posts

    ok…. I just tried that. I pasted just the code from the documentation into a blank template, changed the weblog name so that it would match mine, and still no go. No joy!

  • #23 / Dec 23, 2008 8:53pm

    Greg Aker

    6022 posts

    okay, what were your results?  exactly what went wrong?

  • #24 / Dec 23, 2008 9:06pm

    Shannon Smith

    161 posts

    Oh sorry… same thing as before. I click the “email” button, the popup windows come up and ask me to input the email address and text for the link, I input an email address and text for the link, and nothing gets put in the field once I’m done.

    I double checked today that this very same thing works just fine if I use the control panel and it does indeed work just fine. But, doesn’t work in the SAEF.

  • #25 / Dec 23, 2008 9:09pm

    Greg Aker

    6022 posts

    Do you have your cursor in a field?  What happens if you highlight text and then click the email link button?

    Also, what browser are you using?

  • #26 / Dec 23, 2008 9:26pm

    Shannon Smith

    161 posts

    Yes, definitely my cursor is in the field. If I highlight text and then hit the email button, it shows the popups (I have to enter an email address, but it uses the highlighted text as the link title) and then it actually REMOVES the highlighted text from the field.

    Firefox 3.0.5 AND Internet Explorer 7… doesn’t work for either browser.

  • #27 / Dec 23, 2008 10:15pm

    Greg Aker

    6022 posts

    Since you’re running in a dev environment, can you please download a fresh zip of ExpressionEngine backup your current files and follow the build update instructions so we can try to rule out file corruption.

    Thank you,

    -greg

  • #28 / Dec 24, 2008 12:58pm

    Shannon Smith

    161 posts

    Hi Greg,

    I tried that this morning and it still does not work. I’m having the same problems occur as before on both the entry and edit forms.

    In talking to Pieman on Solspace, he mentioned that the edit form will convert the encoded emails into that code unless you set “Automatically turn URLs and email addresses into links?” to “off”. Only other way around it is to install TinyMCE or one of the other editors. I want this setting set to “on” (which is how I have it set now). So, I guess I will have to install one of the editors. I tried turning off this setting to see if it would help my problem with the entry form and it didn’t. I still get the same behavior of it not putting anything into the field.

    Shannon

  • #29 / Dec 26, 2008 12:50pm

    Sue Crocker

    26054 posts

    Shannon, just let us know what happens.

  • #30 / Jan 05, 2009 5:02pm

    Shannon Smith

    161 posts

    Hi Greg and Sue,

    Sorry I haven’t updated you on my progress yet. The holidays were quite busy, but now it is back to the grind.

    I still haven’t found a solution to either problem yet. I’ve tried the TinyMCE editor now and it seems somewhat helpful for the issue with the edit form… instead of converting an encoded email to javascript, it puts a message up saying “javascript must be enabled to view this email address”. However, when I submitted the entry, it no longer showed up in the listing of my entries on my webpage, but was still viewable in “edit” within the control panel. I don’t know why this would have happened. This isn’t the perfect solution either, as I just want it to work as the “edit” in the control panel works…. that is, I want it to display the {encode} tags, not give a message about javascript needing to be enabled.

    Plus, the MCE editor definitely doesn’t help me with my entry form problem. I still can’t get the email formatting button to put anything in the field. Any other ideas for me on that one??? Please help if possible. This entry form issue seems to be specific to me I guess. I’m using a development server. Any thoughts on what settings I might have wrong that could be causing this?

    Thanks again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases