Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter buttonmatt

    (@buttonmatt)

    ah. there is code showing in the email so looks like email markup issue

    My memory is pretty fuzzy on this, but I believe I saw this problem at one point. I think I fixed it by putting paragraph tags around the part where EBD does a str_replace and puts its code in.

    Around line 255 and 256 of email-before-download.php, you should see a couple of str_replace commands. One is for the ebd tag and the other is for the ebd_left tag (those are the two tags you use for the checkboxes when you’re doing multiple downloads).

    Change those two lines to put an opening and closing html paragraph around them like this (this is the ebd_left tag, the other is basically the same but ebd so make the same change for it of course):

    $contact_form = str_replace("<p><ebd_left /></p>", $chekboxesL, $contact_form);

    See if that works.

    Thread Starter buttonmatt

    (@buttonmatt)

    Thanks a lot for that dtynan. That’s sorted the downloads showing in a more useful list.

    My problem is that, in the email, the first Url in the list of downloads is always broken.

    Here’s how the email comes through: https://postimg.org/image/idsqlmlvl/ note the url fr the first link is bad.

    Here’s the source code of the resultant email: https://postimg.org/image/w4o472319/

    Looks like it should be simple to fix but just can’t find the bits of code to correct. I’ll keep going ??

    Putting it inside the paragraph tags didn’t fix it? Try changing them to div and /div and see if that works.

    If you want to debug it better, you might try using a gmail address for the email to go to, then log in to gmail using your webbrowser (chrome) and view the email. Then, open the devtools. Most likely you’ll see an html error right where it substitutes in the text. In my case (and a couple of other people if you go back through a bunch of previous support posts on here) the first link wasn’t a link because there was an unclosed paragraph tag right before the substituted text … that was then getting closed by a closing paragraph tag inside the substituted text & it borked up the first link but then the rest worked. I seem to recall someone else fixing it by doing the extra paragraph thing as I mentioned, but doing div’s instead. Try that. Do it in the 2 str_replace lines just as I said before and try again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘First hyperlink in emailed list of downloads doesnt work’ is closed to new replies.