abcd_12345 wrote:I just added this in the new ascx file:
<asp:PlaceHolder runat="server" ID="phTotalPosts">
<div class="totalposts">
<%=GetLocaleResourceString("Forum.TotalPosts")%>:
<asp:Label runat="server" ID="lblTotalPosts" CssClass="statvalue" />
</div>
</asp:PlaceHolder>
and i am getting an error message with underlines"GetLocaleResourceString"
"GetLocaleResourceString" does not exist in the current context ? why ?
Ok i fixed this error
but i wanted to add a new tab which will give total forum posts of the user
there is already a module that gives this value "ForumPost.ascx"
I added this in Account.aspx page:
<%@ Register TagPrefix="nopCommerce" TagName="ForumPost" Src="~/Modules/ForumPost.ascx" %>
Created Resource in database as MyTopic.UserPosts
Added this tab in account.aspx
<ajaxToolkit:TabPanel runat="server" ID="TabPanel1" HeaderText="<% $NopResources:MyTopic.UserPosts %>">
<ContentTemplate>
<nopCommerce:ForumPost ID="RewardPoints1" runat="server" />
</ContentTemplate>
</ajaxToolkit:TabPanel>
Re-build the project
The good part is i am getting a new tab saying User Posts
but when i click on the new tab i see this:
Total Posts:
Joined:
Location:
I don't see any values for these fields...why ?