We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Changing the member profile path in Discussion Forum module

Development and Programming

Kevin Miller's avatar
Kevin Miller
11 posts
15 years ago
Kevin Miller's avatar Kevin Miller

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

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
15 years ago
Sue Crocker's avatar Sue Crocker

Hi, Kevin. That’s more of a programming question than a support question.. moving to the Programming section.

       
JohanD's avatar
JohanD
59 posts
15 years ago
JohanD's avatar JohanD

I’m looking for this as well. Does anyone know?

Maintaining both the forum module profile and the member module profile pages is quite a lot of work, and it would be a lot easier if the forum would integrate seamlessly with the members module…

       
JohanD's avatar
JohanD
59 posts
15 years ago
JohanD's avatar JohanD

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.