Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Devon Ostendorf

    (@devonostendorf)

    Hi Hans,

    Would you please re-post with your HTML source enclosed in a code tag? (It is hard to tell what your source is literally as I believe the forum software is interpreting and transforming it.)

    In general, the usage of the @@unsubscribeurl variable is nothing particularly special. It is only usable in the context of a post notification email to a specific subscriber as it references that subscriber’s individualized URL (containing email address and authcode).

    Thanks,
    Devon

    Thread Starter hansbl

    (@hansbl)

    Hi,

    Thanks for your reaction.

    HTML code

    
    Geen berichten: <a href="@@unsubscribeurl">Afmelden</a>
    

    This is te result in the mail:

    Geen berichten? https://www.loozermarsnoord.nl/post_notif/unsubscribe/[email protected]&authcode=jsG4jdpa3wlc4TH38gTeMjOFpRzXY3C4″>Afmelden

    There is a quote after the authcode.

    Thanks in advance.

    Regards,
    hans

    Plugin Author Devon Ostendorf

    (@devonostendorf)

    Hi Hans,

    The code that handles the @@unsubscribeurl variable is contained on a single line (line 689) of post-notif/admin/class-post-notif-admin.php and merely replaces the variable with the current subscriber’s individualized URL (containing email address and authcode), using the literal URL as BOTH the anchor tag’s href attribute value AND the anchor’s (visible) text. I think this is what is tripping you up, as it looks, from your last note, like you are attempting to provide your own anchor text following the literal @@unsubscribeurl. As I recall, the rationale for why I implemented this to behave this way may have had to do with issues, during testing, where some email clients didn’t render the hyperlinks as such and therefore made them impossible to click or copy-and-paste. Since providing one-click unsubscribe is a big deal, for simplicity’s sake, I chose the approach I you see today.

    However, I can see that it might be nice to offer admins the ability to configure the anchor text separately, so I have added it to my list of future potential enhancements.

    Hope this helps,
    Devon

    Thread Starter hansbl

    (@hansbl)

    Hi Devon,

    Thanks for your reaction.
    Although it doesn’t help me much at this time, I’m glad you will put it on your enhancement list.

    I am just wondering why it is going wel with the @@permalinkurl.
    The code beneath works like a charm:

    
    <!--[if mso]>
      <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft- 
       com:office:word" href="@@permalinkurl" style="height:40px;v-text- 
       anchor:middle;width:200px;" arcsize="10%" stroke="f" fillcolor="#0C71C3">								 
       w:anchorlock/>
    <center style="color:#ffffff;font-family:sans-serif;font-size:16px;font-weight:bold;">
      Ga naar het bericht!
    </center>
    </v:roundrect>
    <![endif]-->
    <![if !mso]>
      <table cellspacing="0" cellpadding="0"> 
      <tr> 
        <td align="center" width="200" height="40" bgcolor="#0C71C3" style="-webkit-border- 
        radius: 5px; -moz-border-radius: 5px; border-radius: 5px; color: #ffffff; display: 
        block;">										 
        <a href="@@permalinkurl" style="font-size:16px; font-weight: bold; font- 
        family:sans-serif; text-decoration: none; line-height:40px; width:100%; 
        display:inline-block"><span style="color: #ffffff;">Ga naar het bericht!</span></a>
        </td> 
      </tr>
      </table> 
    <![endif]>
    

    Thanks again for your reaction.

    Regards,
    Hans

    Plugin Author Devon Ostendorf

    (@devonostendorf)

    Hi Hans,

    You have revealed the annoying inconsistency in my naming of the @@ variables. ??

    The reason your use case works with @@permalinkurl is because it resolves to only the literal URL text, NOT the full anchor tag (as @@permalink does). This clearly shows my need to be both more consistent with my variable naming and more clear in the documentation of how these can(/should?) be used. I will be addressing this in Post Notif’s successor!

    Thanks,
    Devon

    Thread Starter hansbl

    (@hansbl)

    Hi Devon,

    Thanks for your reaction.

    Regards,
    Hans

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘@@unsubscribeurl’ is closed to new replies.