Yussi Ariefiyono
YAF forum multiple boards stand alone
Problem:
you want 2 diffrent forum with 1 login
Solution:
YAF is just a control so call it using the boardid as a parameter. For
instance, if you look at the default.aspx it has code that looks like
this:
<form runat="server" enctype="multipart/form-data">
<yaf:forum runat="server"/>
</form>
Now
go into admin and create a new board (Boards) and make note of the ID.
Make another file called "secondboard.aspx" (or whatever) and change
call to YAF to include the boardid #:
<form runat="server" enctype="multipart/form-data">
<yaf:forum boardid="2" runat="server"/>
</form>
(Boardid
is whatever you want… you could have it reference a million different
boards if you create them — categoryid is also supported.)
| Print article | This entry was posted by yussi ariefiyono on April 20, 2009 at 5:07 pm, and is filed under asp.net, yaf forum. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |