Optionally provide private feedback to help us improve this article...

Thank you for your feedback!


Showing & hiding columns within topic lists

Within InstantForum we present all topic lists via the ViewTopics server control. You can find this control within the Skins/{YourSkinName}/Controls directory. The ViewTopics control also has a "Column" property that allows you to easily show or hide specific columns within your list of topics. This can be particularly helpful if you trying to incorporate InstantForum within a narrow fixed width design.

Removing Last Poster Column From Latest & Popular Posts on the Homepage

For example let's say we wanted to remove the last poster column from the list of topics presented when you click the "Latest" or "Popular" tabs from the InstantForum homepage. To achieve this we would follow the steps below...

1. Open Skins/{YourSkinName}/Default.ascx

2. Locate the ViewTopics server control as shown below. Note there are two instances of this on

<InstantForum:ViewTopics ID="ctlViewTopics" Collapseable="false" 
PageSize="20" Text="Default_LatestPosts" PagerRowCssClass="i-row if-pager-row-inverted" EnableHeaderPaging="false" EnableSortOptions="true"
RenderOnLoad="false" Columns="TopicType,FirstPost,Title,Replies,Views,LastPost"
UseWebService="true" EnablePaging="true" runat="server">
<searcheventargs ParentID="0" SortBy="LastPosterDate" />
</InstantForum:ViewTopics>

Notice the Columns property has a comma delimited list of column names.,

To remove our last post column we would simply change this to...

<InstantForum:ViewTopics ID="ctlViewTopics" Collapseable="false" 
PageSize="20" Text="Default_LatestPosts" PagerRowCssClass="i-row if-pager-row-inverted" EnableHeaderPaging="false" EnableSortOptions="true"
RenderOnLoad="false" Columns="TopicType,FirstPost,Title,Replies,Views"
UseWebService="true" EnablePaging="true" runat="server">
<searcheventargs ParentID="0" SortBy="LastPosterDate" />
</InstantForum:ViewTopics>

Column Names

You can see a screen grab below showing the forum columns you can easily hide via the Columns property...

The column names corrospond as following...

  1. TopicType
  2. FirstPost
  3. Title
  4. Replies
  5. Views
  6. Last Post

In addition to these default columns you can also add additional columns names into the ViewTopics column property to display additional columns we don't display by default. You can find a list of additional column names below...

  • Icon
  • Likes
  • TotalAnswers

Topic Lists Appear Elsewhere

Please remember the ViewTopics control is also elsewhere. For example when you view a forum we use this same control to show you the list of topics within that forum. Similar when you perform a search we use the same ViewTopics control to present the search results. You may wish to modify the Columns property for the ViewTopics control in these other locations to ensure lists appear consistent.

You can find the ViewTopics control used within the following additional skin files....

  • Search.ascx
  • Messages.ascx
  • UserInfo.ascx