Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Please send a sample message to [email protected] then leave a note here and I will attempt to help.

    Is your “Preferred Text Type” plain or html?

    Thread Starter HandyWebGuy

    (@handywebguy)

    Thanks. Sending now

    PG

    Thread Starter HandyWebGuy

    (@handywebguy)

    Ok i just sent it. Thank you very much Wayne

    PG

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Is your “Preferred Text Type” plain or html?

    Also, can you send an example of a real email, not just the image.

    Thread Starter HandyWebGuy

    (@handywebguy)

    it is

    HTML

    and i will send a real example right now

    Many thanks

    PG

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Put “<div class="moz-signature">--” into the “Text for Message End” setting

    Thread Starter HandyWebGuy

    (@handywebguy)

    Thanks it worked – except for one small problem! the closing “</div>” was removed (there’s a blank div always posted at the start of the post. i’ll try switching to plain text and see what happens

    Thread Starter HandyWebGuy

    (@handywebguy)

    yes it cuts off the closing divs! if there’s a way to put these in manually?

    example below

    https://www.dropbox.com/s/mbmu0zzh6zfq2e9/Cuts%20off%20div.jpg?dl=0

    Thread Starter HandyWebGuy

    (@handywebguy)

    i tried something a little different

    on my signature i have

    ==================================================================

    BEFORE the picture

    so on the signature patterns line i have the RegExp:

    /^==================================================================$/

    but when i run it i get

    Warning: preg_match(): Unknown modifier ‘^’ in /home/obesity/public_html/wp-content/plugins/postie/postie-functions.php on line 1568

    Warning: preg_match(): Unknown modifier ‘^’ in /home/obesity/public_html/wp-content/plugins/postie/postie-functions.php on line 1583

    Warning: preg_match(): Unknown modifier ‘^’ in /home/obesity/public_html/wp-content/plugins/postie/postie-functions.php on line 1568

    (and many more i didn’t put here) and it didn’t remove it! frustrated! Any thoughts?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Postie automatically adds the / and ^.

    Thread Starter HandyWebGuy

    (@handywebguy)

    Ah yes this does work, but removes only the equal signs!

    <div class=”moz-signature”> really did work great except for that inital <div> that POSTIE makes.

    Any way to not have this initial <div> in that seems to do nothing at all? so that when the code is removed, then there’s no need for an ending </div> which is removed by the <div class=”moz-signature”> end text?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Postie doesn’t add any html, at most it replaces any <body> element with a <div>. If there is an extra <div> then your email client is adding it.

    If all you emails are the same you might be better off writing a Postie AddOn that finds the signature div and removes it.

    https://postieplugin.com/extending/

    Thread Starter HandyWebGuy

    (@handywebguy)

    Great thanks i will do just that. I actually modified the code this morning but that would be swept away by the next update

    Thread Starter HandyWebGuy

    (@handywebguy)

    Thanks. that worked GREAT!

    i wrote in filterPostie.PHP: and i even have it show when it strips the signature using preg_replace. Great plugin with TONS of potential. I will donate when i have a cahnce

    function filter_content($post) {
    if (strstr( $post[‘post_content’],'<div class=”moz-signature”>’ )) {
    echo “
    Signature found-stripping now”;
    }
    $post[‘post_content’] = preg_replace(‘#<div class=”moz-signature”>(.*?)</div>#’, ‘ ‘, $post[‘post_content’]);
    return $post;
    }

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Nice.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘How do i strip an signature that is purely an image ?’ is closed to new replies.