Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Hi Danny,

    as you may have recognized I was off for some other things for a while.
    Can you send me this bug again please.

    Thanks, Hans

    Thread Starter yezzz

    (@yezzz)

    I tried replicating the above, but right now I can’t.

    I did find another issue which might be related.

    When sending an ecard with multiple paragraphs from the form page, all text is concenated to a single paragraph and all text is shown inline. When sending from the preview page this bug does not occur.

    If it matters: using fetch ecard online. I did disable the js I added to the form to ensure that is not the cause. Using v4.7

    Any ideas?

    Thread Starter yezzz

    (@yezzz)

    Whoops, I screwed up. None of the ecards have </p> <p> between paragraphs. They are only present in tinymce.

    The difference in the cards is the number of break tags between paragraphs. In firebug when I do “Edit html” on a buggy card text, it looks formatted, but there are no actual break tags. On a correct card text it has 2 br tags: 1 at end of paragraph and one on a new line.

    On the hidden input after bad card submit there’s 2 br tags: 1 at end of p, and 1 more on new line. After correct card submit it has 4 br tags: 2 at end of p, and 2 more on new line, all with slash and formatted as ampersand gt/lt (html entities).

    Hope this helps. Are you doing sanitizing or processing differently between the 2 templates or something? Or should I reinspect my templates?

    Plugin Author tuxlog

    (@tuxlog)

    I hoperfully changed this to work the same. I sent you the fix. Please test it and let me know if it works for you 2.

    Cheers, Hans

    Thread Starter yezzz

    (@yezzz)

    Yes, working now ??

    I see that the mail footer I set up is now included in the email with the card link. No sure if that was intended behavior. v4.8 with the wpg-form.php you mailed me.

    Plugin Author tuxlog

    (@tuxlog)

    The mail footer was also inlcuded in the link mail before. I did not change the mail functions. But it may be cut off when the html was not valid before. ??

    Thread Starter yezzz

    (@yezzz)

    Ah didn’t even know that… so bug found and fixed ??

    Thread Starter yezzz

    (@yezzz)

    Ah one more thing, is it possible to use ecard fields (placeholders) in the ecard linkmail when using online ecard?

    Plugin Author tuxlog

    (@tuxlog)

    Yes it is possible just hover over the question mark in the admin dialog to see which placeholders are supported

    Thread Starter yezzz

    (@yezzz)

    I had the bug again that I initially reported. Under “your ecard was sent” message is the text that came after the first smiley. I had also done some text formatting. Hope you can reproduce it.

    Plugin Author tuxlog

    (@tuxlog)

    Can you send me the exact text you used for the message including smilies, etc. please.

    and can you test if it occurs too, when offer resend link is disabled

    I just tried several messages with formatting and smilies but can not reproduce the problem

    Thread Starter yezzz

    (@yezzz)

    I cannot send the exact text, but will do similar text later. This was on v4.8 and it was a bad time for updating. Will try to reproduce this on v4.8 and 5.0.

    Thread Starter yezzz

    (@yezzz)

    I haven’t been able to reproduce it either, so apparently it happens under specific conditions.

    Only thing I can think of right now is that on form submit I’m getting tinymce content (raw), add a div with textstring for my ecard styler, then set it back into tinymce (raw). I’m not using eg. preventDefault, but it seems to work fine. Maybe when the PC is slow it’s still writing to tinymce, causing trouble? It’s odd that it breaks on a smiley.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘bug with html content in card text’ is closed to new replies.