MyBB 1.4.2
Profile links in archive mode target to '/archive/member.php' when SEO-links are off. Although I have SEO off archive version uses it (e.g. http://forum.pcformat.pl/archive/index.p...12639.html), so links "../member.php" are relative to "/archive/".
In file functions.php FIND:
Profile links in archive mode target to '/archive/member.php' when SEO-links are off. Although I have SEO off archive version uses it (e.g. http://forum.pcformat.pl/archive/index.p...12639.html), so links "../member.php" are relative to "/archive/".
In file functions.php FIND:
if(IN_ARCHIVE == 1)
{
global $mybb;
if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && $_SERVER['SEO_SUPPORT'] == 1))
{
return "<a href=\"../../".get_profile_link($uid)."\"{$target}{$onclick}>{$username}</a>";
}
return "<a href=\"../".get_profile_link($uid)."\"{$target}{$onclick}>{$username}</a>";
}
Replace with: if(IN_ARCHIVE == 1)
{
global $mybb;
// KK: bad_profile_link_in_archive_without_seo - always return '../../'.
return "<a href=\"../../".get_profile_link($uid)."\"{$target}{$onclick}>{$username}</a>";
}
www.kozik.net.pl
- So... Maybe you shouldn't have hacked it.
- And why don't you try not breathing. Hurts, dunnit. (userfriendly.org)
- So... Maybe you shouldn't have hacked it.
- And why don't you try not breathing. Hurts, dunnit. (userfriendly.org)