YAFLogo

Posted by: janusz - Monday, 6 August 2012 19:53:43
[size=6]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. [/size]

Posted by: tha_watcha - Tuesday, 7 August 2012 00:12:40
[quote=janusz;55908]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. [/quote] Sure you can do this you only have to place the ForumActiveDiscussion Control to the login.ascx Page. [code=css;-1]<%@ Register TagPrefix="YAF" TagName="ForumActiveDiscussion" Src="../controls/ForumActiveDiscussion.ascx" %> [/code]

Posted by: janusz - Tuesday, 7 August 2012 02:23:52
[size=6]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?[/size]

Posted by: v1rusxx - Tuesday, 7 August 2012 05:49:58
what if i want to include active forum post in a web site on the root directory? not on the forum root folder?

Posted by: tha_watcha - Tuesday, 7 August 2012 14:24:05
[quote=janusz;55915][size=6]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?[/size][/quote] 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. [quote=v1rusxx;55917]what if i want to include active forum post in a web site on the root directory? not on the forum root folder?[/quote] 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

Posted by: v1rusxx - Tuesday, 7 August 2012 14:55:14
[quote=tha_watcha;55924][quote=janusz;55915][size=6]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?[/size][/quote] 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. [quote=v1rusxx;55917]what if i want to include active forum post in a web site on the root directory? not on the forum root folder?[/quote] 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 [/quote] 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.

Posted by: janusz - Tuesday, 7 August 2012 16:44:28
[quote]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.[/quote] [size=6]Thanks! I'll give it a go![/size]

Posted by: tha_watcha - Saturday, 11 August 2012 16:27:17
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.