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>
     

     
  • 相关阅读:
    重新开始学习Linux
    2006:远离windows, 拥抱linux!
    适合做首页的网站: http://www.netvibes.com/
    netvibes出问题了,登陆不进去。
    推荐开源的rss阅读器rssreader 3.0,支持中文
    ubuntu的即时通讯gaim不错, 如何连qq呢?
    linux是否能把显示改为1024x768呢?
    通过IRC学习ubuntu很不错
    Firefox 扩展软件介绍(转载) Mozine 论坛
    几个有意思的网站
  • 原文地址:https://www.cnblogs.com/ceci/p/2038912.html
Copyright © 2011-2022 走看看