﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / InstantForum.NET 4.x / Modifications / Community Support  / Where are the "active users" stored? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 09 Jan 2009 03:05:49 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Where are the "active users" stored?</title><link>http://community.instantasp.co.uk/Topic10225-58-1.aspx</link><description>[quote][b]Jimmy Stuart (3/11/2006)[/b][hr]Just throwing thisout there but if you import the right things onto an aspx page, couldn't you just use the exact same user controls the the forum is using? Or if the colors/format won't work, then maybe dissect the user control and then use those same individual pieces with custom CSS.[/quote]&lt;br&gt;&lt;br&gt;Thats exactly what I want to do. But I dont know what to Import. I try to import the same things which the master page uses etc.. but I always get error.</description><pubDate>Fri, 17 Mar 2006 14:57:34 GMT</pubDate><dc:creator>Vistaforums2</dc:creator></item><item><title>RE: Where are the "active users" stored?</title><link>http://community.instantasp.co.uk/Topic10225-58-1.aspx</link><description>Just throwing this out there but if you import the right things onto an aspx page, couldn't you just use the exact same user controls the the forum is using?  Or if the colors/format won't work, then maybe dissect the user control and then use those same individual pieces with custom CSS.</description><pubDate>Sat, 11 Mar 2006 20:19:54 GMT</pubDate><dc:creator>Jimmy Stuart</dc:creator></item><item><title>RE: Where are the "active users" stored?</title><link>http://community.instantasp.co.uk/Topic10225-58-1.aspx</link><description>anyone? I just want to display the "active users" stuff like it does inside the forum (near the bottom) on my homepage which is outside of the forum.</description><pubDate>Fri, 10 Mar 2006 22:46:04 GMT</pubDate><dc:creator>Vistaforums2</dc:creator></item><item><title>RE: Where are the "active users" stored?</title><link>http://community.instantasp.co.uk/Topic10225-58-1.aspx</link><description>[quote][b]Ryan Healey (3/1/2006)[/b][hr]Hi,&lt;br&gt;&lt;br&gt;Good question. Active users are held within the InstantForum_WhosOn database table. This tablecontains field called CurrentActivity which corresponds to the InstantASP.InstantForum.Enumerations. EnumTask enumeration.&lt;/FONT&gt;&lt;br&gt;&lt;br&gt;To add data to this table you can use our existing API. For example say you wanted to show users as viewing your homepage you could use something similar to the following...&lt;br&gt;&lt;br&gt;First add a ViewingHomepage option to the InstantASP.InstantForum.Enumerations. EnumTask enumeration like so...&lt;/FONT&gt;&lt;br&gt;&lt;br&gt;Public Enum EnumTask&lt;br&gt; None = 1&lt;br&gt; ViewingHomePage = 2&lt;br&gt; ViewingForum = 3&lt;br&gt; ViewingForumGroup = 4&lt;br&gt; ViewingTopic = 5&lt;br&gt; ViewingMembersList = 6&lt;br&gt; ViewingCalendar = 7&lt;br&gt; ViewingControlPanel = 8&lt;br&gt; ViewingLogin = 9&lt;br&gt; ViewingRegistration = 10&lt;br&gt; ViewingPrivateMessage = 11&lt;br&gt; ViewingWhosOn = 12&lt;br&gt; ViewingPermissionDenied = 13&lt;br&gt; &lt;STRONG&gt;ViewingHomepage = 14&lt;/STRONG&gt;&lt;br&gt;End Enum&lt;br&gt;&lt;br&gt;Then call the method to add information to the InstantForum_WhosOn table on your homepagelike so...&lt;br&gt;&lt;br&gt;InstantASP.InstantForum.Business.WhosOn.InsertWhosOn( _&lt;br&gt;InstantASP.InstantForum.Enumerations.EnumTask.&lt;STRONG&gt;ViewingHomePage&lt;/STRONG&gt;, _&lt;br&gt;InstantASP.InstantForum.HttpContext.Current.Current)&lt;/FONT&gt;&lt;br&gt;&lt;br&gt;You will then need to modify the Resource.xml language filefile to ensure the correct text is displayed on the Who's On page for your new ViewingHomepage option again i've provided an example of this below...&lt;/FONT&gt;&lt;br&gt;&lt;br&gt;&amp;lt;item name="EnumTask_DeleteOwnTopics"&amp;gt;Deleting Own Topic&amp;lt;/item&amp;gt;&lt;br&gt;&amp;lt;item name="EnumTask_DeleteAnyTopic"&amp;gt;Deleting a Topic&amp;lt;/item&amp;gt;&lt;br&gt;&amp;lt;item name="EnumTask_ViewingRedirectForumLink"&amp;gt;Viewing Forum Redirect&amp;lt;/item&amp;gt;&lt;br&gt;&amp;lt;item name="&lt;STRONG&gt;EnumTask_ViewingHomepage&lt;/STRONG&gt;"&amp;gt;Viewing Homepage&amp;lt;/item&amp;gt;&lt;/FONT&gt;&lt;br&gt;&lt;br&gt;Notice how the name of the string is the same as that of the enumeration. This is important to ensure the correct text is displayed on the Who's On page.&lt;/FONT&gt;&lt;br&gt;&lt;br&gt;Does this make sense? Have i understood your question correctly?. Please don't hesitate to respond if you need any further information or have any further questions.&lt;/FONT&gt;&lt;br&gt;&lt;br&gt;I hope it helps a little :)&lt;/FONT&gt; &lt;/FONT&gt;[/quote]&lt;br&gt;&lt;br&gt;Although that wasnt exactly what I was talking about, I will be doing that as well! What I was talking about was just displaying on my homepage, the same statistics which are available when your on the forum. &lt;br&gt;ex. Active Users: 9 (8 guests, 1 member, 0 anonymous members)&lt;br&gt;I want to display that on my homepage. So I could just grab it from the Whos_on table? Which columns coorespond to a member/guest/or annoymous member? Thanks a lot for the help.</description><pubDate>Fri, 03 Mar 2006 14:00:50 GMT</pubDate><dc:creator>Vistaforums2</dc:creator></item><item><title>RE: Where are the "active users" stored?</title><link>http://community.instantasp.co.uk/Topic10225-58-1.aspx</link><description>Hi,&lt;P&gt;Good question. Active users are held within the InstantForum_WhosOn database table. This table contains field called CurrentActivity which corresponds to the InstantASP.InstantForum.Enumerations. EnumTask enumeration.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;To add data to this table you can use our existing API. For example say you wanted to show users as viewing your homepage you could use something similar to the following...&lt;/P&gt;&lt;P&gt;First add a ViewingHomepage option to the InstantASP.InstantForum.Enumerations. EnumTask enumeration like so...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Public Enum EnumTask&lt;BR&gt;        None = 1&lt;BR&gt;        ViewingHomePage = 2&lt;BR&gt;        ViewingForum = 3 &lt;BR&gt;        ViewingForumGroup = 4 &lt;BR&gt;        ViewingTopic = 5 &lt;BR&gt;        ViewingMembersList = 6&lt;BR&gt;        ViewingCalendar = 7&lt;BR&gt;        ViewingControlPanel = 8&lt;BR&gt;        ViewingLogin = 9&lt;BR&gt;        ViewingRegistration = 10&lt;BR&gt;        ViewingPrivateMessage = 11&lt;BR&gt;        ViewingWhosOn = 12&lt;BR&gt;        ViewingPermissionDenied = 13&lt;BR&gt;        &lt;STRONG&gt;ViewingHomepage = 14&lt;/STRONG&gt;&lt;BR&gt;End Enum&lt;/P&gt;&lt;P&gt;Then call the method to add information to the InstantForum_WhosOn table on your homepage like so...&lt;/P&gt;&lt;P&gt;InstantASP.InstantForum.Business.WhosOn.InsertWhosOn( _&lt;BR&gt;InstantASP.InstantForum.Enumerations.EnumTask.&lt;STRONG&gt;ViewingHomePage&lt;/STRONG&gt;, _&lt;BR&gt;InstantASP.InstantForum.HttpContext.Current.Current)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;You will then need to modify the Resource.xml language file file to ensure the correct text is displayed on the Who's On page for your new ViewingHomepage option again i've provided an example of this below...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;item name="EnumTask_DeleteOwnTopics"&amp;gt;Deleting Own Topic&amp;lt;/item&amp;gt;&lt;BR&gt;&amp;lt;item name="EnumTask_DeleteAnyTopic"&amp;gt;Deleting a Topic&amp;lt;/item&amp;gt;&lt;BR&gt;&amp;lt;item name="EnumTask_ViewingRedirectForumLink"&amp;gt;Viewing Forum Redirect&amp;lt;/item&amp;gt;&lt;BR&gt;&amp;lt;item name="&lt;STRONG&gt;EnumTask_ViewingHomepage&lt;/STRONG&gt;"&amp;gt;Viewing Homepage&amp;lt;/item&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Notice how the name of the string is the same as that of the enumeration. This is important to ensure the correct text is displayed on the Who's On page.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Does this make sense? Have i understood your question correctly?. Please don't hesitate to respond if you need any further information or have any further questions.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I hope it helps a little :)&lt;/FONT&gt; &lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Wed, 01 Mar 2006 07:38:04 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>Where are the "active users" stored?</title><link>http://community.instantasp.co.uk/Topic10225-58-1.aspx</link><description>I want to display the forum "Active Users" information of what memebers and how many quests are on outside of the forum, like on my homepage. How should I do this? Are they stored in some table or can I somehow reuse the control?</description><pubDate>Tue, 28 Feb 2006 18:56:19 GMT</pubDate><dc:creator>Vistaforums2</dc:creator></item></channel></rss>