User.Config File For Use At CSU

It’s typically a very good idea to employ a user.config file for each of your mojoPortal installations.  An example of such a file that is tailored for use at CSU can be found below; alternatively, you can also see for another example config file.  Note: make sure you test your site search after applying these settings, as there’s a good chance your site search index will need to be rebuilt.

Download the file


<?xml version="1.0" encoding="utf-8"?>

    <!– **********************************************************************************************
         Custom settings.  Change the following keys with every mojoPortal instance
         Check for notes about
         necessary changes to web.config when upgrading your site(s).
         ********************************************************************************************** –>
    <!– Database connection string.  –>
    <add key=”MSSQLConnectionString” value=”;UID=cwisXXX;PWD=XXX;database=CWISXXXMojoPortal” />
    <!– For low activity sites. When set to true, a background thread is created that makes a request to the site often enough to keep the app pool from
    shutting down due to inactivity. See for alternatives.–>
    <add key=”UseAppKeepAlive” value=”true” />
    <add key=”AppKeepAliveUrl” value=”” />
    <!– **********************************************************************************************
         Static settings. Each of the settings below should largely be the same from site to site, so alter with caution!
         ********************************************************************************************** –>
    <!– Disable setup page by default. If logged in as admin, can still get to setup page –>
    <add key=”DisableSetup” value=”true” />
    <!– The following should be disabled on a development server only!
        Setting these values to false will make skin/CSS development and
        debugging much easier –>
    <add key=”CombineCSS” value=”true” />
    <add key=”MinifyCSS” value=”true” />
    <add key=”CacheCssOnServer” value=”true”/>
    <add key=”CacheCssInBrowser” value=”true”/>
    <!– Use extensionless urls in site (pagename.aspx versus just pagename) –>
    <add key=”AllowChangingFriendlyUrlPattern” value=”true” />
    <!– Place galleries under media folder. Recommended for new sites –>
    <add key=”ImageGalleryUseMediaFolder” value=”false” />
    <!– use the newer crypto helper methods –>
    <add key=”UseLegacyCryptoHelper” value=”false” />
    <!– Disable other login protocols –>
    <add key=”EnableOpenIDAuthentication” value=”false” />
    <add key=”EnableWindowsLiveAuthentication” value=”false” />
    <!– Should we keep the Remember Me option on the login page? –>
    <add key=”AllowPersistentLoginCookie” value=”false” />
    <!– Notify administrators when new users register on the system –>
    <add key=”NotifyAdminsOnNewUserRegistration” value=”false” />
    <!– Turn on content versioning globally throughout the site –>
    <add key=”EnforceContentVersioningGlobally” value=”true” />
    <!– Leave this out of user.config if you simply use web.config defaults –>
    <add key=”AllowedUploadFileExtensions” value=”.gif|.jpg|.jpeg|.png|.flv|.swf|.wmv|.mp3|.mp4|.tif|.asf|.asx|.avi|.mov|.mpeg|.mpg|.zip|.pdf|.doc|.docx|    .xls|.xlsx|.ppt|.pptx|.csv|.txt|.dwg”/>
    <!– Take advantage of latest search improvements –>
    <add key=”DisableSearchFeatureFilters” value=”false” />
    <add key=”SearchUseBackwardCompatibilityMode” value=”false” />
    <add key=”EnableSearchResultsHighlighting” value=”true” />
    <!– Allow admins to easily rebuild search index when needed –>
    <add key=”ShowRebuildSearchIndexButtonToAdmins” value=”true” />
    <!– Prevent leaking of hidden information through search –>
    <add key=”SearchIncludeModuleRoleFilters” value=”true” />
    <!– SMTP Settings –>
    <!– Note you also need to specify smtp settings further below in the section; the settings here apply to features but
    the settings in the section are used by site registration and password recovery. –>
    <add key=”DisableDotNetOpenMail” value=”true” />
    <add key=”SMTPServer” value=”” /> <!– eg, try either or –>
    <add key=”SMTPRequiresAuthentication” value=”false” />
    <add key=”SMTPUseSsl” value=”false” />
    <add key=”SMTPPort” value=”25″ />
    <add key=”SMTPUser” value=”UserName” />
    <add key=”SMTPPassword” value=”UPassword” />
    <add key=”SMTPTimeoutInMilliseconds” value=”30000″ />
    <!– leave this blank for ascii encoding –>
    <add key=”SmtpPreferredEncoding” value=”” />
    <add key=”SearchResultsPageSize” value=”20″ />
    <add key=”FolderGalleryPreviewWidth” value=”800″ />
    <!– Customize hiding/unhiding of menus throughout different parts of the site –>
    <add key=”HideMenusOnLoginPage” value=”true” />
    <add key=”HideMenusOnRegisterPage” value=”true” />
    <add key=”HideMenusOnPasswordRecoveryPage” value=”true” />
    <add key=”HideMenusOnChangePasswordPage” value=”true” />
    <add key=”HideAllMenusOnProfilePage” value=”false” />
    <add key=”HidePageMenuOnProfilePage” value=”true” />
    <add key=”HideAllMenusOnMyPage” value=”false” />
    <add key=”HideMenusOnSiteMap” value=”false” />
    <add key=”HidePageMenusOnSiteMap” value=”true” />
    <add key=”SuppressMenuOnBuiltIn404Page” value=”false”/>
    <!– For which user agents should the mobile version of the site be rendered.  WARNING: must have Mobile Kit Pro installed to use this setting –>
    <add key=”MobilePhoneUserAgents” value=”iphone,ipod,android,iemobile,blackberry” />
    <!– Google Maps key which works across the .colostate domain (so it should work on every hosted site) –>
    <add key=”GoogleMapsAPIKey” value=”ABQIAAAAq5oqjWvkLHDeNjRKghK3UxRrww16dbqehmjnxY88ZQbsosRt7RSkj2MYYPMAh_7vQH56cIEyhMC6zg” />
    <!– Multi site installation settings –>
    <add key=”AllowMultipleSites” value=”true” />
    <add key=”AllowDeletingChildSites” value=”false” />
    <add key=”UseFoldersInsteadOfHostnamesForMultipleSites” value=”false” />
    <!– Time zone setting for Mountain Time –>

    <add key=”PreferredGreenwichMeantimeOffset” value=”-7.00″ />

<!– Mojo’s built-in SQL Query tool – Enable at your discretion –>

    <add key=”EnableDeveloperMenuInAdminMenu” value=”true” />
<add key=”EnableQueryTool” value=”true” /><!– Override ASP.NET limit of 1000 form elements –>
<!– IMPORTANT: Please see to read about the following key.  You may not need it for you site, but I often do. –>
<add key=”aspnet:MaxHttpCollectionKeys” value=”1500″/>