This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
Hi Joe !!
When MojoPortal is configured with ShowForumPostsInMemberList = false, the column data is not shown but the column Header is!!
From what I could understand, we should use the same approach used in ShowWebSiteColumn:
if (!ShowWebSiteColumn) { //thTitle.ColSpan = 4; //divNewUser.ColSpan = 4; //tdModulePager.ColSpan = 4; thWebLink.Visible = false; }
if (!ShowWebSiteColumn) { //thTitle.ColSpan = 4; //divNewUser.ColSpan = 4; //tdModulePager.ColSpan = 4; thWebLink.Visible = false;
}
With this in mind, I renamed t4 to thForumPosts in the aspx, added a runat="server" and added the logic to make it invisible:
<th id="thForumPosts" runat="server"> <mp:SiteLabel id="lblTotalPosts" runat="server" ConfigKey="MemberListUserTotalPostsLabel" UseLabelTag="false"></mp:SiteLabel> </th>
and in the CS
if (!ShowForumPostColumn) { thForumPosts.Visible = false; }
Everything worked like a charm :). Could you please confirm this?
Thanks Bruno,
This is now fixed in the repository.
Best,
Joe