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>
     

     
  • 相关阅读:
    Class类
    HTML表单格式化
    HTML表单组件
    html常用标签
    Html概述
    Myeclipse2016安装Aptana
    长元音
    对比法记音标
    Java基础八--构造函数
    WPS2012交叉引用技巧,word比wps这点强更新參考文献
  • 原文地址:https://www.cnblogs.com/ceci/p/2038912.html
Copyright © 2011-2022 走看看