In order to install the Compfy Folders ASP.NET User Control, copy directories "/_compfyfolders" and "/js" into the root folder of your web site. Copy the files from the "/bin" directory in your "/bin" folder. Register the user control and use it in your .aspx file as shown in the following example:
<%@ Register TagPrefix="cmpfy" TagName="compfy" Src="~/_compfyfolders/UI_Compfy.ascx" %>
<cmpfy:compfy id="compfy" runat="server" />
Many of the User Controls included in the "_compfyfolders" folder can be used independently. Controls like UI_Recent.ascx, UI_Captcha.ascx, user account management controls, and other can be placed directly onto the master page or embedded into other pages. This is demonstrated by www.compfy.com.
Create Compfy Folders database tables and other objects using the SQL script "create database.sql" located in the "/_compfyfolders/_sql" directory. You can do it conveniently by using Microsoft SQL Server Management Studio. Compfy Folders tables can be located in the ASP.NET services database or placed into a separate database.
Provide a Connection String to your Compfy Folders database in the "DataBaseConnectionString" element of the Compfy_AppSettings.config file located in the "/_compfyfolders/_config" directory as shown in the following example:
<DataBaseConnectionString> Server=yourhost.com; Database=yourdb;User ID=youruser; Password=yourpassword; Trusted_Connection=False; </DataBaseConnectionString>
To allow users attach files to posts, create a folder designated for storage of the attached files. Make sure that the "network service" user has read, write, and execute permissions for that folder. Provide virtual path to this folder in the Compfy_AppSettings.config file for example as follows:
<AttachmentStoreFolderPath>/attachments</AttachmentStoreFolderPath>
If you will use user management embedded into the Compfy Folders User Control or woud like Compfy Folders to send you error reports, provide mail settings in the Web.config of your web site as shown in the following example:
<system.net>
<mailSettings>
<smtp from="yourusername@yourdomain.com">
<network host="mail.yourdomain.com" password="yourpassword" port="yourproviderssmtpport" userName="yourusername@yourdomain.com" />
</smtp>
</mailSettings>
</system.net>
Add the following sections to the Web.config file in the root directory of your web site:
<siteMap>
<providers>
<add name="CompfySiteMapProvider"
type="System.Web.XmlSiteMapProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="~/_compfyfolders/SiteMap.sitemap" />
</providers>
</siteMap>
<anonymousIdentification enabled="true" />
<profile enabled="true">
<properties>
<group name="Compfy">
<add name="UserProfile" type="Compfy.UserProfile" serializeAs="Xml"/>
<add name="UserSettings" type="Compfy.UserSettings" serializeAs="Xml" allowAnonymous="true"/>
</group>
</properties>
</profile>
<roleManager enabled="true" />
For error reporting, provide additionally an email address to send error reports to in the Compfy_AppSettings.config file located in the "/_compfyfolders/_config" directory:
<ErrorMessageEmail>youruser@yourdomain.com</ErrorMessageEmail>
Let the Compfy Folders User Control know which ASP.NET role is the administrator role of the Forum. Administrator(s) can set all other permissions on the forum, can edit, lock and unlock user profiles, can edit and delete any of the folders or posts. The administrator role is set in the Compfy_AppSettings.config as follows:
<AdministratorRole>Administrator</AdministratorRole>
If you have any questions, please post them in the Q&A section and we do our best to answer them. (You would need to create an account and to login in order to post.)
|