Can someone point me in the right direction for altering the path pulled by this code in the discussion forum theme files:
{path:member_profile}By default that outputs {site_url}forums/member/## (the author ID) What I need is {site_url}user/profile/## (the author ID)
Moved to Development and Programming by Moderator
After some searching, it looks like it’s one of those features planned for a future release, but it’s a bit buggy and untested.
Changing a few lines of code in 2 files will do the trick. Core files have to be hacked, so it’s not great at all; so if anyone knows of a better way, please share 😉
In ee/modules/forum/mod.forum.php, line 716, change
$this->preferences['member_profile_path'] = $this->EE->functions->create_url($this->EE->config->item('profile_trigger').'/');to
$this->preferences['member_profile_path'] = $this->EE->functions->create_url($this->EE->config->item('profile_trigger')).'/';Notice the slash at the end.
In ee/modules/forum/mod.forum.php, line 32, change
var $use_site_profile = FALSE;to
var $use_site_profile = TRUE;This is for ee version 2.1.1 build 20101020 forum version 3.1.0 build 20101018
I don’t seem to have any issues after making those changes, but will post here, if it turns out to be problematic.
Cheers, Johan
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.