Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[Solved] Email verification has link to non-embedded URL.. how to fix?

edited January 2012 in Vanilla 2.0 - 2.8

Our forum is embedded (www.xyz.com/forum) however the link that comes through to the end users in the email verification during registration points to where vanilla is installed (www.xyz.com/vanilla). When a user clicks on it, it takes them to the forum, un-embedded. How can we change the URL to use the Embedded site URL instead?

Answers

  • This only works when you resend the verification email. The original verification email doesn't use the embedded URL.

    The original emails gives the verification link of:
    http://www.xyz.org/vanilla/index.php?p=/entry/emailconfirm/5/H86B5MC0

    While if I click resend from the forum, the resent email shows the verfication link as:
    http://www.xyz.org/content.php?page=forum#/entry/emailconfirm/4/ZGLDRQCL

    which is what we want. must be a bug in sending the original verification email that doesn't respect the externalUrlFormat setting.. workarounds?

  • I had update class.usermodel.php in the applications/dashboard/models directory. Added the following line below line 2111. Works fine now.

    $Message = str_replace('vanilla/index.php?p=','content.php?page=forum#',$Message);

  • peterdemo said:
    I had update class.usermodel.php in the applications/dashboard/models directory. Added the following line below line 2111. Works fine now.

    $Message = str_replace('vanilla/index.php?p=','content.php?page=forum#',$Message);

    This did not work at all.

  • I'm also having the same issue with what peterdemo is mentioning. The first confirmation email goes with the domain.com/vanilla whereas the second confirmation email request pulls the correct location at domain.com/community I've set up the config.php in this way http://vanillaforums.org/discussion/comment/148472#Comment_148472 where the it is set up for domain.com/community instead of the standard vanilla. I am using the forum embedded into Wordpress so I need to forward all traffic there. I'm not sure what the bug is that causes it to send all the other email links correctly yet on the first confirmation email it sends the default. Any idea what is going on here?

Sign In or Register to comment.