zoukankan      html  css  js  c++  java
  • 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>
     

     
  • 相关阅读:
    RabbitMQ消息队列-高可用集群部署实战
    python+rabbitMQ实现生产者和消费者模式
    RabbitMQ Connection Channel 详解
    Linux中安装Erlang
    基于 CentOS 搭建 Python 的 Django 环境
    redis单机安装
    CentOS7安装RabbitMQ(单机)
    iptables 规则行号,删除及插入规则
    jQuery前端生成二维码
    MailKit使用IMAP读取邮件找不到附件Attachments为空的解决方法
  • 原文地址:https://www.cnblogs.com/ceci/p/2038912.html
Copyright © 2011-2022 走看看