Warning! The code will fail in some cases (General)
Hello
find code into file: register.inc.php
change from
$lang['new_user_email_txt'] = str_replace("[activate_link]", $settings['forum_address'] ."index.php?mode=register&id=".$new_user_id."&key=".$activate_code, $lang['new_user_email_txt']);to:
$lang['new_user_email_txt'] = str_replace("[activate_link]","http://". $_SERVER['SERVER_NAME'] ."/index.php?mode=register&id=".$new_user_id."&key=".$activate_code, $lang['new_user_email_txt']);
What's the reason to do it?In many cases the forum is not installed in the root of a domain but in a subfolder. Thatswhy
$settings['forum_address']
contains the full path to the forum folder. In your case the forum has to be directly installed in example.com so the URL has to behttp://example.com/index.php
. But what is when the forum is installed in the subfolder "forum"? The correct URL ishttp://example.com/forum/index.php
. But that will fail with your code that generateshttp://example.com/index.php?mode=register...
.Tschö, Auge
if you have sub subfolder "forum" you just to add "forum in to link here like:
fisrt into line here:
"/forum/index.php?mode=register&id=".......
so you know what to do ?