[resolved] Add Subject Line in CryptX template tag (5 posts)

  1. katart17
    Posted 3 years ago #

    I am using the Template Tag function to hide an email address and I would like to add in a predefined Subject Line. I've tried it using this:
    $mail = $user_info->user_email."?subject=Message from carmelcinema8.com";
    $mail."?subject=Message from carmelcinema8.com";
    But the template tag is stripping out the Subject Line and adding after the Javascript link.

    I am using the AntiSpamBot function to hide emails.

    Any ideas on how to fix this?


  2. Ralf Weber
    Plugin Author

    Posted 3 years ago #

    Hi katart17,

    the problem should be solved with the new version 3.1.1.
    Pls try the new version and give me a feedback.


  3. katart17
    Posted 3 years ago #

    Thanks for the update but it seems to break the template tag. I haven't add the subject line yet.

    Does line 663 need to change from
    $content = explode("?", $content);
    $tmp = explode("?", $content);

    I made this change and the template tag worked, but when I added the following line:
    $mail."?subject=Message from carmelcinema8.com"
    The generate quotes are misplaced.

    Is this a preg_replace error?

  4. Ralf Weber
    Plugin Author

    Posted 3 years ago #

    Ok, my mistake!

    I fixed the wrong variable and other problems found.
    Please update to version 3.1.2.

    PS: Feedback pls :-)

  5. katart17
    Posted 3 years ago #

    Thanks, works great!

    You can see it in action here: http://www.carmelcinema8.com/beta/

    The email icon at the bottom of the page is created by that the template tag.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic