• SharePoint Forums使用


    SharePoint Forums 是为WSS2.0开发的一个论坛组件,在MOSS2007和2010上一样可以使用。
    每个站点会生成自己的论坛数据源,子站点也一样。所以开启变体的网站,会出现2个论坛,所以不适用于我们的情况。 
     
    使用方法:
    1. Recover individual files from installer program
    The individual files must be recovered from the .msi file. There are several way to do this. I used the free utility Windows Installer (MSI – MSM) Unpacker from www.jsware.net. This creates a new archive file, which can be unpacked using WinRAR or any similar program. These are the resulting files:
    可以直接使用msiexec /a xxx.msi /qb targetdir=X:\XXXX 命令。
    1033.lng.xml
    BilSimser.SharePoint.Common.dll
    BilSimser.SharePoint.WebParts.Forums.dll
    Manifest.xml
    SharePointForums.dwp

    2. Install runtime library to GAC
    The runtime libraries must be installed to the Global Assembly Cache. This is normally found in:
    C:\WINDOWS\assembly
    Copy the files directly to this directory.

    3. Upload webpart
    To upload the webpart to SharePoint, go to Site Settings – Web Parts and choose Upload. Upload the dwp file.

    4. Registrer webpart as secure
    The webpart is registered as secure by editing the correct web.config file. There are many different web.config files on the server. I found that the file located in C:\Inetpub\wwwroot\wss\VirtualDirectories\80\ had a large SafeControls section, so I edited this. At the bottom of the SafeControls section, I added:

    <SafeControl
    Assembly="BilSimser.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24713753211b034a"
    Namespace="BilSimser.SharePoint.Common"
    TypeName="*"
    Safe="True"
    />
    <SafeControl
    Assembly="BilSimser.SharePoint.WebParts.Forums, Version=1.2.0.0, Culture=neutral, PublicKeyToken=e516dadc23877c32"
    Namespace=" BilSimser.SharePoint.WebParts.Forums"
    TypeName="*"
    Safe="True"
    />

    5. Install resources
    Go to directory:
    C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\
    Create new folder “BilSimser.SharePoint.WebParts.Forums”, and in that directory create the folder “1.2.0.0__e516dadc23877c32”.
    Copy the xml files 1033.lng.xml and Manifest.xml to this new folder (C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\BilSimser.SharePoint.WebParts.Forums\1.2.0.0__e516dadc23877c32).

    6. Install script
    Add the following to the sites default.master, just before the </BODY> tag:

    <script>
    function ProcessOwsForm(ctl, argument)
    {
    if (frm.fPreviewMode)
    {
    var LcantSaveText = "This form cannot be saved when previewing this page.";
    window.alert(LcantSaveText);
    return;
    }
    if (frm.FValidate(true))
    {
    frm.FPostProcess();
    var theForm = document.forms['aspnetForm'];
    __doPostBack2(ctl, argument);
    }
    }
    function __doPostBack2(eventTarget, eventArgument)
    {
    theForm.__EVENTTARGET.value = eventTarget;
    theForm.__EVENTARGUMENT.value = eventArgument;
    theForm.submit();
    }
    </script>
     

     
  • 相关阅读:
    【转】RocketMQ事务消费和顺序消费详解
    RocketMQ初探(五)之RocketMQ4.2.6集群部署(单Master+双Master+2m+2s+async异步复制)
    Spring定时器Quartz的使用
    RocketMQ初探(四)之RocketMQ4.x版本可视化管理控制台rocketmq-console-ng搭建(Apache)
    RocketMQ入门(简介、特点)
    RocketMQ初探(二)之RocketMQ3.26版本搭建(含简单Demo测试案例)
    RocketMQ初探(一)
    tomcat详解
    HDFS读写流程
    RabbitMQ
  • 原文地址:https://www.cnblogs.com/ceci/p/2038912.html
Copyright © 2020-2023  润新知