azarbara
  •  azarbara
  • 81.2% (Honored)
  • YAF Lover Topic Starter
2015-02-25T20:04:58Z
hello i need some tokens to use in whats new submodules.
i want to show: number of views, number of replies and original author in this area.
please help to add these features.
Mathematics site in Persian language: http://rayeshmand.ir 
Sponsor
azarbara
  •  azarbara
  • 81.2% (Honored)
  • YAF Lover Topic Starter
2015-02-26T13:34:23Z
Originally Posted by: azarbara 

.
i want to show: number of views, number of replies and original author in this area.



can i add these features to yaf active discussions section?
Mathematics site in Persian language: http://rayeshmand.ir 
azarbara
  •  azarbara
  • 81.2% (Honored)
  • YAF Lover Topic Starter
2015-02-27T09:10:51Z
i customized the ForumActiveDiscussion.ascx under controls for my purpose
now i want to add the number of post and number of topics to ForumActiveDiscussion
i found the

<%#  Topics(Container.DataItem) %>
and

				<%# Posts(Container.DataItem) %>
under forum list but how to add something to ForumActiveDiscussion?
thanks
Mathematics site in Persian language: http://rayeshmand.ir 
tha_watcha
2015-02-27T12:52:38Z
all you need to add would be something like this inside the ItemTemplate in the LatestPosts Repeater

<br>Views: <%# DataBinder.Eval(Container.DataItem, "Views") %>
<br>Posts: <%# DataBinder.Eval(Container.DataItem, "NumPosts") %>
<br>Topic Starter: <%# DataBinder.Eval(Container.DataItem, "UserName") %>

UserPostedImage
azarbara
  •  azarbara
  • 81.2% (Honored)
  • YAF Lover Topic Starter
2015-02-27T20:45:59Z
thanks for your great help,

Mathematics site in Persian language: http://rayeshmand.ir 

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved