Hello!
This my first posting here. My name is Stephan and I'm from germany.
We're testing YAF since a few weeks and all seems to be good. Great work to the developers ;)
For our project, we need a portal site, which shows the active topics, latest user, additional infos and so on. We've named it portal.aspx and imported the YAF.Classes. In one section we implemented the Control "ForumActiveDiscussion.ascx". It works fine so far, but the links won't be rewritten and they linked to "/portal.aspx?g=posts&m=1#post1" but "/default.aspx?g=posts&m=1#post1".
How can we achieve that the link in our news Webfrom will be rewritten and how can we link them corrrectly?
The code of the portal.aspx, the portal.aspx.cs is empty:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="portal.aspx.cs" Inherits="portal" %>
<%@ Register TagPrefix="yaf" Namespace="YAF" Assembly="YAF" %>
<%@ Register TagPrefix="yc" Namespace="YAF.controls" Assembly="YAF" %>
<%@ Register TagPrefix="HEADER" TagName="YAFHeader" Src="/controls/YafHeader.ascx" %>
<%@ Register TagPrefix="ACTVE" TagName="ActiveDiscussion" Src="/controls/ForumActiveDiscussion.ascx" %>
<%@ Import Namespace="YAF.Classes" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create(YafContext.Current.Get<YafInitializeDb>().Initialized ? (int?)YafContext.Current.PageUserID : null , this, x );
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="YafHead" runat="server">
<meta id="YafMetaScriptingLanguage" http-equiv="Content-Script-Type" runat="server" name="scriptlanguage" content="text/javascript" />
<meta id="YafMetaStyles" http-equiv="Content-Style-Type" runat="server" name="styles" content="text/css" />
<meta id="YafMetaDescription" runat="server" name="description" content="Yet Another Forum.NET -- A bulletin board system written in ASP.NET" />
<meta id="YafMetaKeywords" runat="server" name="keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
<link href="themes/soclean/theme.css" type="text/css" rel="stylesheet" />
<link href="resources/css/forum.css" rel="stylesheet" type="text/css" />
<title></title>
</head>
<body style="margin:0; padding:0px">
<form id="form1" runat="server" enctype="multipart/form-data">
<asp:ScriptManager ID="scmMain" runat="server"></asp:ScriptManager>
<HEADER:YAFHeader ID="Header" runat="server" />
<div class="Center">
<div class="ContentLinks">
LINKS
</div>
<div class="ContentMitte">
WILLKOMMEN
<ACTVE:ActiveDiscussion runat="server" ID="ActiveDiscussions" />
</div>
<div class="ContentRechts">
RECHTS
</div>
<div style="clear: both"></div>
</div>
</form>
</body>
</html>
Thanks so far and many greetings,
Stephan