Disabling Mobile Web Page Access in SharePoint Server 2010 and SharePoint Foundation 2010

http://www.khamis.net/blog/Lists/Posts/Post.aspx?List=6c8a23d1%2D47ea%2D47e5%2Db56f%2D2bc57cb95b93&ID=51&Web=d64cd8b3%2Da3f4%2D40d8%2D8d93%2D6aa6dc82fcda

 

I recently developed a web site for a marketing campaign and I decided to use SharePoint Foundation 2010 as the platform.  The web site looked great when viewed from the browser, however, I was getting a lot of complaints that the web site wasn’t viewable from people’s BlackBerrys and iPhones. 

On mobile phones, SharePoint seems to redirect to the View All Site Content page (/_layouts/mobile/mbllists.aspx).  The screen that showed on my own iPhone looked something like this:

My Web Site

-Lists
-Document Libraries
Site Assets
Site Pages
PDFs
-Picture Libraries
Site Collection Images
-Sites and Workspaces

Home(My Web Site)

This isn’t very helpful for the average user who just wants to get to the home page directly.  Furthermore, I really don’t want users seeing my list and library structure and I definitely didn’t want users to have to browse down to the web page itself where ever it may be (in my case the Site Assets document library).

I really didn’t have any time to create a mobile view for the web site and I figured that most mobile phones now a days have screens good enough to view most full size web sites.

At first, I thought disabling mobile views might be a site setting so I went to my Site Actions –> Site Settings pages to see where this might be.  First thing I noticed was the Mobile Site URL (?Mobile=1) on my site settings home page:

image

Next, I started digging around the Central Administration Site Settings and my Web Site Site Settings for this setting but it was no where to be found.   And then I went digging through the API to see if this was a flag to turn this off and nothing. 

Solution

In the end I found this blog post by the Office Team [1] which helped me realize what I was missing.  SharePoint is just using the default ASP.NET Browser Definition File Schema [2] to control whether it’s control adapters will redirect to the mobile views of SharePoint or not.

There is an App_Browsers directory by default in a SharePoint created web application structure (i.e. C:/inetpub/wwwroot/wss/VirtualDirectories/80 ) which is called compat.browser .

image

Opening this file up, you see the various browsers and a flag called isMobileDevice:

image

To disable mobile SharePoint views, just find the browsers you want to disable it for and set the value of this flag to “false”. Or do what I did and do a find and replace on:

find on:

<
capability
 name
="isMobileDevice"
                        value
="true
"
 />

replace with:

<
capability
 name
="isMobileDevice"
                        value
="false
"
 />

Just watch out for extra spacing during your find and replace.

[1] http://blogs.technet.com/b/office2010/archive/2010/03/09/configure-sharepoint-server-2010-for-mobile-device-access.aspx

[2] http://msdn.microsoft.com/en-us/library/ms228122.aspx

资源下载链接为: https://pan.quark.cn/s/5c50e6120579 在Android移动应用开发中,定位功能扮演着极为关键的角色,尤其是在提供导航、本地搜索等服务时,它能够帮助应用获取用户的位置信息。以“baiduGPS.rar”为例,这是一个基于百度地图API实现定位功能的示例项目,旨在展示如何在Android应用中集成百度地图的GPS定位服务。以下是对该技术的详细阐述。 百度地图API简介 百度地图API是由百度提供的一系列开放接口,开发者可以利用这些接口将百度地图的功能集成到自己的应用中,涵盖地图展示、定位、路径规划等多个方面。借助它,开发者能够开发出满足不同业务需求的定制化地图应用。 Android定位方式 Android系统支持多种定位方式,包括GPS(全球定位系统)和网络定位(通过Wi-Fi及移动网络)。开发者可以根据应用的具体需求选择合适的定位方法。在本示例中,主要采用GPS实现高精度定位。 权限声明 在Android应用中使用定位功能前,必须在Manifest.xml文件中声明相关权限。例如,添加<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />,以获取用户的精确位置信息。 百度地图SDK初始化 集成百度地图API时,需要在应用启动时初始化地图SDK。通常在Application类或Activity的onCreate()方法中调用BMapManager.init(),并设置回调监听器以处理初始化结果。 MapView的创建 在布局文件中添加MapView组件,它是地图显示的基础。通过设置其属性(如mapType、zoomLevel等),可以控制地图的显示效果。 定位服务的管理 使用百度地图API的LocationClient类来管理定位服务
<think>好的,用户的问题是关于如何在系统设置中全局禁用评估系统的确认方法。首先,我需要明确用户的操作系统,因为不同系统的设置路径不同。用户没有具体说明,所以可能需要涵盖常见系统如Windows、macOS或Linux。 接下来,考虑“评估系统确认”具体指的是什么。可能是指用户账户控制(UAC)的提示,或者是某些软件安装时的安全确认,也可能是系统更新前的评估确认。需要进一步分析可能的场景。 对于Windows系统,用户账户控制设置中可以调整通知级别来禁用确认提示。路径通常是控制面板 > 用户账户 > 更改用户账户控制设置。将滑块调到最低即可关闭大多数确认对话框。但需要提醒用户这样做可能降低安全性。 在macOS中,类似的功能可能在系统偏好设置的安全性与隐私里,需要解锁后进行修改,比如允许来自任何来源的应用程序安装,减少确认步骤。 Linux系统根据发行版不同,可能涉及修改权限设置或使用命令行工具调整策略,比如polkit规则。 另外,还要考虑是否是特定软件的设置,比如某些企业环境中的评估系统可能有自己的配置界面,需要管理员权限才能修改全局设置。 用户可能需要管理员权限才能进行这些更改,需要提醒他们注意权限问题。同时,禁用确认可能会带来安全风险,这部分也需要在回答中强调,确保用户知情。 最后,生成相关问题时要围绕系统设置、权限管理、安全性影响等方面,帮助用户扩展了解相关操作的影响和替代方案。</think>在系统设置中全局禁用评估系统的确认方法,具体步骤因操作系统而异。以下是常见系统的操作指引: ### Windows系统 1. 打开「控制面板」>「系统和安全」 2. 选择「安全和维护」>「更改用户账户控制设置」 3. 将滑块拖动到"从不通知"位置 4. 重启系统后生效[^1] ```powershell # 管理员权限下执行命令可快速设置: Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Value 0 ``` ### macOS系统 1. 打开「系统偏好设置」>「安全性与隐私」 2. 解锁右下角设置锁(需管理员密码) 3. 在"通用"标签页取消所有确认勾选 4. 在终端执行: ```bash sudo defaults write /Library/Preferences/.GlobalPreferences.plist _AuthorizationAllowWithoutAuth -bool true ``` ### Linux系统(GNOME桌面) ```bash # 修改polkit策略文件 sudo nano /etc/polkit-1/localauthority/50-local.d/50-disable-confirm.pkla ``` 添加内容: ``` [Disable all] Identity=unix-user:* Action=* ResultAny=yes ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值