Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > change url link to member profile in thread View modes: 
User avatar
Certified Marketer 13
Certified Marketer 13
bruce.williams-thundertech - 10/26/2012 6:29:14 AM
   
change url link to member profile in thread
i have changed the member profile path and i dont wnat the username to be linked to any longer. i want the username to be hidden in everything. i have that set, except for in posts/thread view where the url is actually displaying that information now when hover over. how do i change that?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/29/2012 8:27:35 AM
   
RE:change url link to member profile in thread
Hi,

the code generating forum post comes from the file ~/CMSModules/Forums/Controls/Posts/ForumPost.ascx(.cs). You need to chaneg it in order to change links.

Best regards,
Ivana Tomanickova

User avatar
Certified Marketer 13
Certified Marketer 13
bruce.williams-thundertech - 10/29/2012 8:59:19 AM
   
RE:change url link to member profile in thread
thanks for reply. i believe i see that, but i do not see the explicit definition function to alter for the
 <asp:HyperLink ID="lnkUserName" CssClass="PostUser" runat="server" />


i see this:
    lnkUserName.Text = HTMLHelper.HTMLEncode(fpi.PostUserName);


but does that also bring with it the actual hyperlink?

later in the code behind it also specifies how the link and avatar image to the member profile page is determined.
 userAvatar.Text = AvatarImage(fpi);


do i want to modify this or can we responsibly within the framework to recognize the new member profile url alias?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/31/2012 9:55:57 AM
   
RE:change url link to member profile in thread
Hi,

I am sorry for confusion.

The correct file is:
~/CMSModules/Forums/Controls/Layouts/Flat/Thread.ascx

And you can also change path to profile page in the settings:
Site Manager - Settings - <select site or global settings> - Community - Members - Member profile path.

Best regards,
Ivana Tomanickova