YAFLogo

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
12 years ago
Is there a way to show Active Discussion topics on the log-in page? Maybe just below the login. It would function as sort of a preview of interesting topics to encourage new member registration.
Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

Is there a way to show Active Discussion topics on the log-in page? Maybe just below the login. It would function as sort of a preview of interesting topics to encourage new member registration.

Originally Posted by: janusz 

Sure you can do this you only have to place the ForumActiveDiscussion Control to the login.ascx Page.

<%@ Register TagPrefix="YAF" TagName="ForumActiveDiscussion" Src="../controls/ForumActiveDiscussion.ascx" %>

<YAF:ForumActiveDiscussion ID="ActiveDiscussions" runat="server" />
janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
12 years ago
Thanks, that gets it on the login page but it is not displaying latest post -- only one that is 2 days old. How can I set this to show 5 of the latest posts?
v1rusxx
  • v1rusxx
  • 50.2% (Neutral)
  • YAF Forumling
12 years ago
what if i want to include active forum post in a web site on the root directory? not on the forum root folder?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

Thanks, that gets it on the login page but it is not displaying latest post -- only one that is 2 days old. How can I set this to show 5 of the latest posts?

Originally Posted by: janusz 

The Control shows only the Topics which the current user as access to. If you want an guest user to see all posts you need to allow the Guest Role View access to all Forums. I think the Best way would be to clone the control and make a separate control for this where all topics are shown but the links to the topics would been disabled.

what if i want to include active forum post in a web site on the root directory? not on the forum root folder?

Originally Posted by: v1rusxx 

Well most of the controls in yaf are work only inside of yaf, however if you understand the yaf code you could easily make this control work outside of yaf. I already did this for the DNN Module maybe i should include the YAF WhatsNew Control in to my YAF.SampleWebApplication

v1rusxx
  • v1rusxx
  • 50.2% (Neutral)
  • YAF Forumling
12 years ago

Thanks, that gets it on the login page but it is not displaying latest post -- only one that is 2 days old. How can I set this to show 5 of the latest posts?

Originally Posted by: tha_watcha 

The Control shows only the Topics which the current user as access to. If you want an guest user to see all posts you need to allow the Guest Role View access to all Forums. I think the Best way would be to clone the control and make a separate control for this where all topics are shown but the links to the topics would been disabled.

what if i want to include active forum post in a web site on the root directory? not on the forum root folder?

Originally Posted by: janusz 

Well most of the controls in yaf are work only inside of yaf, however if you understand the yaf code you could easily make this control work outside of yaf. I already did this for the DNN Module maybe i should include the YAF WhatsNew Control in to my YAF.SampleWebApplication

Originally Posted by: v1rusxx 

That would be great if you did that so i could see how to go about implementing this. Also thanks so much for all your help you sir are a warrior.

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
12 years ago

The Control shows only the Topics which the current user as access to. If you want an guest user to see all posts you need to allow the Guest Role View access to all Forums. I think the Best way would be to clone the control and make a separate control for this where all topics are shown but the links to the topics would been disabled.

Thanks! I'll give it a go!

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago
I updated my YAF.SampleWebApplication it now can be found on the documentation on CodePlex

http://yafnet.codeplex.com/wikipage?title=YAF.NET%20Integration%20in%20to%20an%20existing%20ASP.NET%20Application&referringTitle=Documentation .

I put the ForumActiveDiscussion control directly on the default page.