New active topics page - displays each thread twice

Community Server

Group for Content about my AlexCrome.CS addon package for Community Server 2008

New active topics page - displays each thread twice

Not Answered This question is not answered

I've just implemented the new active topics page, but the problem is that it displays each thread twice whenever I select the "Forum Posted In" option. It works fine with the "normal" options.

Best regards,
Erik P. Ernst
  • Post Points: 20
All Replies
  • Are you doing this on a test site with only a few posts.  I have seen this happen occasionally on test sites where I've only had 3 or 4 posts.

    • Top 10 Contributor
    • Male
    • Post Points: 20
  • No this is my my production site.

    The "funny" thing is that it doesn't seem to happen upon the initial opening of the page. Only when you manually clicks the "Forum Posted In".

    You can try it on my site.

    Best regards,
    Erik P. Ernst
    • Top 10 Contributor
    • Male
    • Post Points: 20
  • Are you using the forum-filteredthreadlist.aspx page from the most recent download of my addons?  Some earlier versions did have issues with displaying threads twice, but that was fixed in more recent versions.

    • Top 10 Contributor
    • Male
    • Post Points: 20
  • I am using my own modified version - got a few extra columns (posted by, views and last post).

    But I just tested your version and I get the same error with that.

    Best regards,
    Erik P. Ernst
    • Top 10 Contributor
    • Male
    • Post Points: 20
  • Can you post the markup of your modified version.

    • Top 10 Contributor
    • Male
    • Post Points: 20
  • Hi Alex,

    I've attached it here (well not you don't allow to attach aspx files).

    <%@ Page EnableViewState="false" Language="C#" AutoEventWireup="true" Inherits="CommunityServer.Discussions.Controls.CSForumThemePage" MasterPageFile="..\forums\forums.Master" %>
    <%@ Register Assembly="AlexCrome.CS" Namespace="AlexCrome.CS.Controls" TagPrefix="ACControl" %>
    <%@ Import Namespace="CommunityServer.Components" %>
    <%@ Import Namespace="CommunityServer.Discussions.Components" %>
    <script runat="server" type="text/C#" >
       
        protected override void OnLoad(EventArgs e)
        {
            if (!GroupByForum)
                FilteredThreadList.QueryOverrides.QueryImplementation = null;
        }

        protected override void OnInit(EventArgs e)
        {
            CSContext context = CSContext.Current;
            User user = context.User;

            // If the user has changed view, save the change to their profile as an Extended Attribute
            string currentSortOrder = context.QueryString["Sort"];
            if (!user.IsAnonymous && !String.IsNullOrEmpty(currentSortOrder) && currentSortOrder != user.GetExtendedAttribute("FilteredThreadListSort"))
            {
                user.SetExtendedAttribute("FilteredThreadListSort", context.QueryString["Sort"]);
                CommunityServer.Users.UpdateUser(user);
            }

            // If we're grouping by forum, show more results per page
            if (GroupByForum)
                FilteredThreadList.QueryOverrides.PageSize = 30;
            else
                FilteredThreadList.QueryOverrides.PageSize = 20;

            // Moved this from conditional actions to OnInit as it removes over complicated markup
            // and doesn't cause the repeater to be databound twice
            switch (context.RewrittenUrlName)
            {
                case "forums.post_Unanswered":
                    FilteredThreadList.QueryOverrides.UnAnsweredOnly = true;
                    break;
                case "forums.post_Active":
                    FilteredThreadList.QueryOverrides.ActiveTopics = true;
                    break;
                case "forums.post_NotRead":
                    FilteredThreadList.QueryOverrides.UnReadOnly = true;
                    break;
                case "forums.post_Videos":
                    FilteredThreadList.QueryOverrides.PostMedia = PostMediaType.Video;
                    break;
                case "forums.user_MyForums":
                    FilteredThreadList.QueryOverrides.UserFilter = ThreadUsersFilter.ShowTopicsParticipatedIn;
                    break;
            }
        }
       
        void FilteredThreadList_DataBinding(object sender, EventArgs e)
        {
            /* For some reason, chameleon repeaters get databound twice
             * which means if only posts form one forum or group are displayed
             * when the control is databound for the second time, the fist
             * item does not register as being of a new group / forum. */
            lastForumID = -1;
            lastGroupId = -1;
            previousPostID = -1;
            previousIsAlternatingTemplate = false;
        }
       
        int lastGroupId = -1;
        /// <summary>
        /// Compares the provided GroupID value with the GroupID of the previous post
        /// </summary>
        /// <param name="forumID">The GroupId to compare to.</param>
        /// <returns>Returns true if the GroupID value has changed, otherwise false.</returns>
        public bool ShowGroupHeader(int groupID)
        {
            if (groupID != lastGroupId && GroupByForum)
            {
                lastGroupId = groupID;
                return true;
            }
            else return false;
        }

        int lastForumID = -1;
        /// <summary>
        /// Compares the provided ForumID value with the ForumID of the previous post
        /// </summary>
        /// <param name="forumID">The ForumID value to compare to.</param>
        /// <returns>Returns true if the ForumID value has changed, otherwise false.</returns>
        public bool ShowForumHeader(int forumID)
        {
            if (forumID != lastForumID && GroupByForum)
            {
                //Update the lastForumID value
                lastForumID = forumID;
                //Reset Alternating Template value
                previousIsAlternatingTemplate = false;
                return true;
            }
            else
                return false;
        }

        int previousPostID;
        bool previousIsAlternatingTemplate = false;
        /// <summary>
        /// Determines whether the current item should be rendered as an
        /// alternating item template
        /// </summary>
        /// <param name="postID">the ID of the current post</param>
        /// <returns></returns>
        bool IsAlternatingTemplate(int postID)
        {
            /* For group rendering, can't rely on item / alternating item template of
             * filtered thread list as otherwise individual forums may not always have
             * first row the same colour as each other which just looks odd
             */
           
            /* Have to compare against the ID of the previous post as the condition
             * is evaluated twice, which would leave as all rows rendering as a
             * normal item template */
            if (postID == previousPostID)
                return previousIsAlternatingTemplate;

            else
            {
                previousIsAlternatingTemplate = !previousIsAlternatingTemplate;
                return !previousIsAlternatingTemplate;
            }
        }

        /// <summary>
        /// Are we grouping posts by forum they were posted to
        /// </summary
        bool GroupByForum
        {
            get
            {
                CSContext context = CSContext.Current;
                if (context.User.IsAnonymous)
                    return context.QueryString["Sort"] == "SortOrder";
                else
                    return CSContext.Current.User.GetExtendedAttribute("FilteredThreadListSort") == "SortOrder";
            }
        }
       
    </script>

    <asp:Content ContentPlaceHolderID="bbcr" runat="server">
        <CSForum:BreadCrumb runat="server" Tag="Div" CssClass="CommonBreadCrumbArea">
            <LeaderTemplate><div class="Common"></LeaderTemplate>
            <TrailerTemplate></div></TrailerTemplate>
        </CSForum:BreadCrumb>
    </asp:Content>

    <asp:Content ContentPlaceHolderID="tr" runat="server">
        <%-- Set the title based on the URL we're viewing --%>
        <CSControl:Title ResourceName="ViewUnansweredThreads_Title" IncludeSiteName="true" EnableRendering="true" Tag="H1" CssClass="CommonTitle" runat="server">
            <DisplayConditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_Unanswered" /></DisplayConditions>
        </CSControl:Title>
        <CSControl:Title ResourceName="ViewActiveThreads_Title" IncludeSiteName="true" EnableRendering="true" Tag="H1" CssClass="CommonTitle" runat="server">
            <DisplayConditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_Active" /></DisplayConditions>
        </CSControl:Title>
        <CSControl:Title ResourceName="ViewNotReadThreads_Title" IncludeSiteName="true" EnableRendering="true" Tag="H1" CssClass="CommonTitle" runat="server">
            <DisplayConditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_NotRead" /></DisplayConditions>
        </CSControl:Title>
        <CSControl:Title ResourceName="ViewVideos_Title" IncludeSiteName="true" EnableRendering="true" Tag="H1" CssClass="CommonTitle" runat="server">
            <DisplayConditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_Videos" /></DisplayConditions>
        </CSControl:Title>
        <CSControl:Title ResourceName="Forums_YourDiscussions" IncludeSiteName="true" EnableRendering="true" Tag="H1" CssClass="CommonTitle" runat="server">
            <DisplayConditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.user_MyForums" /></DisplayConditions>
        </CSControl:Title>
    </asp:Content>

    <asp:Content ContentPlaceHolderID="bcr" runat="server">

        <%-- If the user is not logged in and we're looking at the 'not read' or 'my forums' page, redirect to the login page --%>
        <CSControl:ConditionalAction runat="server">
            <Conditions runat="server" Operator="And">
                <CSControl:UserPropertyValueComparison UseAccessingUser="true" ComparisonProperty="IsAnonymous" Operator="IsSetOrTrue" runat="server" />
                <CSControl:Conditions Operator="Or" runat="server">
                    <CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_NotRead" />
                    <CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.user_MyForums" />
                </CSControl:Conditions>
            </Conditions>
            <Actions>
                <CSControl:GoToSiteUrlAction runat="server" UrlName="login">
                    <Parameter1Template><CSControl:ModifiedUrl runat="server" Encoding="URL" RenderRawUrl="true" /></Parameter1Template>
                </CSControl:GoToSiteUrlAction>
            </Actions>
        </CSControl:ConditionalAction>

        <%-- Set the appropriate options on the thread list control based on the URL we're viewing
        <CSControl:ConditionalAction runat="server">
            <Conditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_Unanswered" /></Conditions>
            <Actions>
                <CSControl:SetQueryOverridePropertyAction runat="server" ListControlId="FilteredThreadList" QueryOverrideProperty="UnAnsweredOnly" QueryOverrideValue="true" />
                <CSControl:ClearAndDataBindRepeaterAction runat="server" RepeaterId="FilteredThreadList" />
            </Actions>
        </CSControl:ConditionalAction>
        <CSControl:ConditionalAction runat="server">
            <Conditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_Active" /></Conditions>
            <Actions>
                <CSControl:SetQueryOverridePropertyAction runat="server" ListControlId="FilteredThreadList" QueryOverrideProperty="ActiveTopics" QueryOverrideValue="true" />
                <CSControl:ClearAndDataBindRepeaterAction runat="server" RepeaterId="FilteredThreadList" />
            </Actions>
        </CSControl:ConditionalAction>
        <CSControl:ConditionalAction runat="server">
            <Conditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_NotRead" /></Conditions>
            <Actions>
                <CSControl:SetQueryOverridePropertyAction runat="server" ListControlId="FilteredThreadList" QueryOverrideProperty="UnReadOnly" QueryOverrideValue="true" />
                <CSControl:ClearAndDataBindRepeaterAction runat="server" RepeaterId="FilteredThreadList" />
            </Actions>
        </CSControl:ConditionalAction>
        <CSControl:ConditionalAction runat="server">
            <Conditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_Videos" /></Conditions>
            <Actions>
                <CSControl:SetQueryOverridePropertyAction runat="server" ListControlId="FilteredThreadList" QueryOverrideProperty="PostMedia" QueryOverrideValue="Video" />
                <CSControl:ClearAndDataBindRepeaterAction runat="server" RepeaterId="FilteredThreadList" />
            </Actions>
        </CSControl:ConditionalAction>
        <CSControl:ConditionalAction runat="server">
            <Conditions><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.user_MyForums" /></Conditions>
            <Actions>
                <CSControl:SetQueryOverridePropertyAction runat="server" ListControlId="FilteredThreadList" QueryOverrideProperty="UserFilter" QueryOverrideValue="ShowTopicsParticipatedIn" />
                <CSControl:ClearAndDataBindRepeaterAction runat="server" RepeaterId="FilteredThreadList" />
            </Actions>
        </CSControl:ConditionalAction> --%>

        <div class="CommonContentBox">
            <div class="CommonContentBoxHeaderForm">
                <CSForum:ThreadListFilterForm runat="server"
                    Tag="Div"
                    CssClass="CommonFormArea"
                    ApplyChangesImmediately="true"
                    DateFilterDropDownListId="DateFilter"
                    ForumFilterDropDownListId="ForumFilter"
                    ThreadListId="FilteredThreadList">
                    <FormTemplate>
                        <div class="CommonFormFieldName">
                            Forum/Group:
                            <asp:DropDownList runat="server" ID="ForumFilter" />
                            <asp:DropDownList runat="server" ID="DateFilter" />
                        </div>
                    </FormTemplate>
                </CSForum:ThreadListFilterForm>
                <CSControl:ResourceControl runat="server" ResourceName="UserSearchControl_SortBy" />:

                <CSControl:ConditionalContent runat="server">
                    <ContentConditions runat="server" Operator="Not"><CSControl:CustomCondition CustomResult='<%# GroupByForum %>' runat="server" /></ContentConditions>
                    <TrueContentTemplate><CSControl:ModifiedUrl Tag="B" Text="Date Posted" QueryStringModification="Sort=Date&amp;PageIndex=1" runat="server" /></TrueContentTemplate>
                    <FalseContentTemplate><CSControl:ModifiedUrl Text="Date Posted" QueryStringModification="Sort=Date&amp;PageIndex=1" runat="server" /></FalseContentTemplate>
                </CSControl:ConditionalContent> |
               
                <CSControl:ConditionalContent runat="server">
                    <ContentConditions runat="server"><CSControl:CustomCondition CustomResult='<%# GroupByForum %>' runat="server" /></ContentConditions>
                    <TrueContentTemplate><CSControl:ModifiedUrl Tag="B" Text="Forum Posted In" QueryStringModification="Sort=SortOrder&amp;PageIndex=1" runat="server" /></TrueContentTemplate>
                    <FalseContentTemplate><CSControl:ModifiedUrl Text="Forum Posted In" QueryStringModification="Sort=SortOrder&amp;PageIndex=1" runat="server" /></FalseContentTemplate>
                </CSControl:ConditionalContent>
               
            </div>
            <div class="CommonContentBoxContent">
           
                <%-- Set the description of the page based on the URL we're viewing --%>
                <CSControl:ResourceControl runat="server" Tag="Div" CssClass="CommonDescription" ResourceName="ViewUnansweredThreads_Description">
                    <DisplayConditions runat="server"><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_Unanswered" /></DisplayConditions>
                </CSControl:ResourceControl>
                <CSControl:ResourceControl runat="server" Tag="Div" CssClass="CommonDescription" ResourceName="ViewActiveThreads_Description">
                    <DisplayConditions runat="server"><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_Active" /></DisplayConditions>
                </CSControl:ResourceControl>
                <CSControl:ResourceControl runat="server" Tag="Div" CssClass="CommonDescription" ResourceName="ViewNotReadThreads_Description">
                    <DisplayConditions runat="server"><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_NotRead" /></DisplayConditions>
                </CSControl:ResourceControl>
                <CSControl:ResourceControl runat="server" Tag="Div" CssClass="CommonDescription" ResourceName="ViewVideos_Description">
                    <DisplayConditions runat="server"><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.post_Videos" /></DisplayConditions>
                </CSControl:ResourceControl>
                <CSControl:ResourceControl runat="server" Tag="Div" CssClass="CommonDescription" ResourceName="ViewMyForumsThreads_Description">
                    <DisplayConditions runat="server"><CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.user_MyForums" /></DisplayConditions>
                </CSControl:ResourceControl>

                <CSForum:ThreadList runat="server" ID="FilteredThreadList" ShowHeaderFooterOnNone="false" OnDataBinding="FilteredThreadList_DataBinding">
                    <QueryOverrides runat="server" PagerID="ThreadsPager" PageSize="20">
                        <ACControl:SortThreadsByGroupForumSortOrderQueryImplementation CacheQuery="true" SortBySortOrder="true" runat="server" />
                    </QueryOverrides>
                    <HeaderTemplate>
                        <div class="CommonListArea">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <CSControl:PlaceHolder runat="server">
                                <DisplayConditions runat="server" Operator="Not"><CSControl:CustomCondition CustomResult='<%# GroupByForum %>' runat="server" /></DisplayConditions>
                                <ContentTemplate>
                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                    <thead>
                                    <tr>
                                        <th class="CommonListHeader" colspan="2"><CSControl:ResourceControl runat="server" ResourceName="ViewThreads_Posts" /></th>
                                        <th class="CommonListHeader ForumMyRepliesHeader">Author</th>
                                        <th class="CommonListHeader ForumMyRepliesHeader"><CSControl:ResourceControl runat="server" ResourceName="ViewThreads_TitleViews" /></th>
                                        <th class="CommonListHeader ForumMyRepliesHeader"><CSControl:ResourceControl runat="server" ResourceName="ViewThreads_TitleReplies" /></th>
                                        <th class="CommonListHeader ForumMyRepliesHeader">Last Post</th>
                                    </tr>
                                    </thead>                           
                                </ContentTemplate>
                            </CSControl:PlaceHolder>
                            <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                            <CSControl:PlaceHolder runat="server">
                                <DisplayConditions runat="server"><CSControl:CustomCondition CustomResult='<%# ShowForumHeader((int)Eval("SectionId")) %>' runat="server" /></DisplayConditions>
                                <ContentTemplate>
                                    <%-- Putting in a second Condition Control screws up using Eval, so have to nest two placeholder cotnrols --%>
                                    <CSControl:PlaceHolder runat="server">
                                        <DisplayConditions runat="server"><CSControl:ControlVisibilityCondition ControlId="GroupHeader" ControlVisiblilityEquals="false" runat="server" /></DisplayConditions>
                                        <ContentTemplate>
                                </tbody>
                                </table>
                                <CSForum:ForumData runat="server" Property="Name" LinkTo="HomePage" Tag="H4" CssClass="CommonListTitle" />

                                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                <thead>
                                <tr>
                                    <th class="CommonListHeader" colspan="2"><CSControl:ResourceControl runat="server" ResourceName="ViewThreads_Posts" /></th>
                                        <th class="CommonListHeader ForumMyRepliesHeader">Author</th>
                                        <th class="CommonListHeader ForumMyRepliesHeader"><CSControl:ResourceControl runat="server" ResourceName="ViewThreads_TitleViews" /></th>
                                        <th class="CommonListHeader ForumMyRepliesHeader"><CSControl:ResourceControl runat="server" ResourceName="ViewThreads_TitleReplies" /></th>
                                        <th class="CommonListHeader ForumMyRepliesHeader">Last Post</th>
                                </tr>
                                </thead>
                                <tbody>
                                        </ContentTemplate>
                                    </CSControl:PlaceHolder>
                                </ContentTemplate>
                            </CSControl:PlaceHolder>
                            
                            <tr class="<%# IsAlternatingTemplate((Container.DataItem as Post).PostID) ? "CommonListRowAlt" : "CommonListRow" %>">
                                <CSForum:ThreadStatusIcon runat="server" Tag="Td" CssClass="CommonListCell ForumMyImageColumn" />
                                <td class="CommonListCell ForumMyNameColumn dug_column">
                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td class="ForumSubListCellLeftMost">
                                                <CSForum:ThreadEmoticon runat="server" />
                                                <CSForum:ThreadData Property="Subject" TruncateAt="65" LinkTo="Thread" LinkCssClass="ForumNameRead" runat="server"><DisplayConditions><CSForum:ThreadPropertyComparison ComparisonProperty1="HasRead" Operator="IsSetOrTrue" runat="server" /></DisplayConditions></CSForum:ThreadData>
                                                <CSForum:ThreadData Property="Subject" TruncateAt="65" LinkTo="Thread" LinkCssClass="ForumNameUnRead" runat="server"><DisplayConditions Operator="Not"><CSForum:ThreadPropertyComparison ComparisonProperty1="HasRead" Operator="IsSetOrTrue" runat="server" /></DisplayConditions></CSForum:ThreadData>
                                            </td>
                                            <td class="ForumSubListCell" align="right" nowrap="nowrap">
                                                <CSForum:ThreadRating runat="server" IsReadOnly="true" RatingCssClass="CommonRateControl" RatingReadOnlyCssClass="CommonRateControlReadOnly" RatingActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/hawaii/images/common/" />

                                                <CSControl:PlaceHolder runat="server">
                                                    <DisplayConditions runat="server" Operator="And">
                                                        <CSForum:ForumConfigurationPropertyValueComparison ComparisonProperty="EnableThreadStatus" Operator="IsSetOrTrue" runat="server" />
                                                        <CSForum:ThreadPropertyValueComparison ComparisonProperty="Status" Operator="EqualTo" ComparisonValue="NotAnswered" runat="server" />
                                                        <CSForum:ThreadPropertyValueComparison runat="server" ComparisonProperty="ThreadType" ComparisonValue="QuestionAndAnswer" Operator="EqualTo" />
                                                    </DisplayConditions>
                                                    <ContentTemplate><CSControl:ThemeImage ImageUrl="~/images/status_NotAnswered.gif" runat="server" AlternateTextResourceName="Unanswered" /></ContentTemplate>
                                                </CSControl:PlaceHolder>

                                                <CSControl:PlaceHolder runat="server">
                                                    <DisplayConditions runat="server" Operator="And">
                                                        <CSForum:ForumConfigurationPropertyValueComparison ComparisonProperty="EnableThreadStatus" Operator="IsSetOrTrue" runat="server" />
                                                        <CSForum:ThreadPropertyValueComparison ComparisonProperty="Status" Operator="EqualTo" ComparisonValue="Answered" runat="server" />
                                                        <CSForum:ThreadPropertyValueComparison runat="server" ComparisonProperty="ThreadType" ComparisonValue="QuestionAndAnswer" Operator="EqualTo" />
                                                    </DisplayConditions>
                                                    <ContentTemplate><CSControl:ThemeImage ImageUrl="~/images/status_Answered.gif" runat="server" AlternateTextResourceName="Status_VerifiedAnswer" /></ContentTemplate>
                                                </CSControl:PlaceHolder>
                                               
                                                <CSControl:PlaceHolder runat="server">
                                                    <DisplayConditions Operator="And">
                                                        <CSForum:ForumConfigurationPropertyValueComparison ComparisonProperty="EnableThreadStatus" Operator="IsSetOrTrue" runat="server" />
                                                        <CSForum:ThreadPropertyValueComparison ComparisonProperty="Status" Operator="EqualTo" ComparisonValue="AnsweredNotVerified" runat="server" />
                                                        <CSForum:ThreadPropertyValueComparison runat="server" ComparisonProperty="ThreadType" ComparisonValue="QuestionAndAnswer" Operator="EqualTo" />
                                                    </DisplayConditions>
                                                    <ContentTemplate><CSControl:ThemeImage ImageUrl="~/images/status_SuggestedAnswer.gif" runat="server" AlternateTextResourceName="Status_SuggestedAnswer" /></ContentTemplate>
                                                </CSControl:PlaceHolder>
                                            </td>
                                        </tr>
                                    </table>
                                    <CSControl:PlaceHolder runat="server" >
                                        <DisplayConditions runat="server" Operator="Not"><CSControl:CustomCondition CustomResult='<%# GroupByForum %>' runat="server" /></DisplayConditions>
                                        <ContentTemplate>
                                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                <tr>
                                                    <td class="ForumSubListCellLeftMost ForumLastPost">
                                                        <CSForum:ForumData runat="server" LinkTo="HomePage" Property="Name"><LeaderTemplate>Posted to </LeaderTemplate></CSForum:ForumData>
                                                    </td>
                                                    <td class="ForumSubListCellPager">
                                                        <CSForum:ThreadPostPageLinks runat="server" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </ContentTemplate>
                                    </CSControl:PlaceHolder>
                                </td>
                            <td class="CommonListCell ForumMyAuthorColumn dug_column_c">
                                <CSControl:UserData runat="server" LinkTo="Profile" TruncateAt="16" Property="DisplayName" />
                            </td>
                            <td class="CommonListCell ForumMyRepliesColumn dug_column_c">
                                <CSForum:ThreadData Property="Views" runat="server" />
                            </td>
                            <td class="CommonListCell ForumMyRepliesColumn dug_column_c">
                                <CSForum:ThreadData Property="Replies" runat="server" />
                            </td>
                            <td class="CommonListCell ForumMyLastPostColumn dug_column">
                                <CSControl:PlaceHolder runat="server">
                                    <DisplayConditions runat="server"><CSForum:ThreadPropertyValueComparison ID="ThreadPropertyValueComparison1" ComparisonProperty="ThreadDate" ComparisonValue="6/8/1980" Operator="GreaterThan" runat="server" /></DisplayConditions>
                                    <ContentTemplate>
                                        <CSForum:ThreadData LinkTitleText="Show the last post" LinkTo="MostRecentPost" Property="ThreadDate" runat="server" IncludeTimeInDate="true"></CSForum:ThreadData>
                                        <CSForum:ThreadData LinkTitleText="Show the users profile" LinkTo="MostRecentPostAuthor" Property="MostRecentPostAuthor" runat="server" TruncateAt="15" ><LeaderTemplate><br />by </LeaderTemplate></CSForum:ThreadData>
                                    </ContentTemplate>
                                </CSControl:PlaceHolder>                       
                            </td>
                            </tr>               
                    </ItemTemplate>
                    <FooterTemplate>
                        </tbody>
                        </table>
                        </div>
                    </FooterTemplate>
                    <NoneTemplate>
                        <div class="CommonMessageWarning">
                            <CSControl:ResourceControl runat="server" ResourceName="ViewThreads_NoTopics" />
                        </div>
                    </NoneTemplate>
                </CSForum:ThreadList>                       
            </div>           
            <div class="CommonContentBoxFooter">
                <CSControl:Pager runat="server" ID="ThreadsPager" ShowTotalSummary="true" />
               
                <CSForum:AggregateRss runat="server">
                    <DisplayConditions Operator="Not">
                        <CSControl:CurrentSiteUrlCondition runat="server" SiteUrlName="forums.user_MyForums" />
                    </DisplayConditions>
                    <ContentTemplate><CSControl:ResourceControl runat="server" ResourceName="Rss" CssClass="dug_rss_button_small" /></ContentTemplate>
                </CSForum:AggregateRss>
            </div>
        </div>
    </asp:Content>

     

    PS: Why did Telligent remove the [ CODE ][ /CODE ] tag?

    Best regards,
    Erik P. Ernst
    • Top 10 Contributor
    • Male
    • Post Points: 5
Page 1 of 1 (7 items)