How to add Welcome before username - sharepoint-2010

In moss 2007 the welcome control used to appear like "Welcome Username". But in sharepoint 2010 only user name appears in ribbon. How can I add "Welcome" before username in sharepoint 2010 welcome control.

You could try the reverse of what Wictor did in Having fun with the SharePoint Welcome.ascx control. While he wanted to get rid of "Welcome," you could set TextType to PostCacheSubstitutionTextType.WelcomeUser to include it. However, as mentioned in this comment, be sure to create your own control and modify your master page, rather than changing Welcome.ascx directly.
Another option would be jQuery. If you are using v4.master, the selector for the user name should be: div.s4-trc-container-menu span.ms-welcomeMenu a.ms-menu-a span. Once you grab the element, you could prepend "Welcome " to the text.

Related

SharePoint Ribbon

I can not write English, sorry.
I Hide the Ribbon in SharePoint so that users who do not have access to administrator does not show, and that's settled, what happens now that does not show the user's name and can not leave the session.
How I can redisplay only part of the session?
Image with access to a group and the user's name is not visible.
Image with administrator access, the user name is.
To display Username try this
<wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false">
Copy and paste the above line anywhere inside a placeholder in the master page.
You can also try security trimmed control in sharepoint master page (Manageweb etc) Google it

SharePoint 2010 In-Browser Form User Info Changing after Submit

I have a In-Browser Form I published to SharePoint 2010 via Infopath and have a section in the beginning which pulls the current user data to get their Name, Email, Number, etc. The issue is once a user submits the form and I take a look with the In-Browser feature in SharePoint, the information changes to my info instead of the submitter. However, when I open in the form via Infopath application, it shows the originial submitters info. Is there a way or an option I'm not aware of which will fix this issue?
Found the answer. On the text boxes that pulls the user info, go to the Text Box Properties and under Default Value, deselect the checkbox "Refresh value when formula is recalculated".

Using VSTO to perform an action via selected e-mail text in Outlook

This should be pretty a pretty common scenario, but I have not found a solution yet.
I would like to highlight some text within the body of an e-mail and then click on something (context menu, toolbar button, etc) to perform a URL navigation using the selected text. For example, highlight the Fex Ex tracking number and then navigate to their web site using it as a query parameter (like "ww.fedextracking.com?packageid=12345").
How can you capture the selected text within an e-mail and then perform an action? I would greatly appreciate any suggestions or examples.
Thank you!
For Outlook 2007-2010 (or previous versions using WordMail), you can retrieve a Word object from the Inspector.WordEditor property. Then you can work with Word.Selection to access the selected text.
However, for Plain Text or Rich Text scenarios with Outlook 2000-2003, you have to use the SafeInspector object with Redemption (http://www.dimastr.com/redemption/) to access the selected text. I can't remember, but for HTML format messages with Outlook 2003-2003 you may be able to access the selected text with the IHTMLDocument object retrieved from SafeInspector.
I appreciate it's 588 days since you asked your question Loki70, but if somebody else Googles up this page (like I did, looking for how to create a selected text right-click context menu entry) then this may be an answer for you.
I have been using AutoHotKey, which works not just in Outlook, but everywhere in Windows, and have been writing utilities to Google the selected text, open an SSH session in PuTTY to the selected hostname, and similar.
If you don't mind running an extra application on your PC to capture the hotkey combination that you send, then this would do exactly what you're asking.
Here is my post on the AutoHotKey forum with a link to my code:
http://www.autohotkey.com/community/viewtopic.php?t=86402
It would be trivial to adapt this to do the FedEx query you've mentioned.
I hope this helps.

Issue updating a Server Property of a Word document residing in a SharePoint folder

Using Office automation in Word 2007, I view the Document Information Panel, showing me properties of a document that resides in a SharePoint location.
Using VS 2008, I interrogate the following in the Immediate Window:
? WordDocument.CustomDocumentProperties(23).Value
"My App Name Here" {String}
String: "My App Name Here"
Then I interogate the name of the property:
? wordDocument.CustomDocumentProperties(23).Name
"Process Name" {String}
When I type into the combobox and change the value to "YYY" and query the value of tghe property:
? WordDocument.CustomDocumentProperties(23).Value
"YYY" {String}
String: "YYY"
However, when I execute the following:
WordDocument.CustomDocumentProperties(23).Value = "New Value" and requery the value of the property I see that the value was stored:
? WordDocument.CustomDocumentProperties(23).value
"New Value" {String}
String: "New Value"
..but I don't see a corresponding change to the screen.
I do however see that, on Advanced Properties/Custom Tab that a Custom Property by the name of "Process Name" has been recorded with the value "New Value"
There seems to be some kind of one way mapping going on between "server" and "custom" properties, but the really strange part is:
I can update SOME server properties, others I cannot.
I don't know a darn thing about SharePoint, other than as a dumb user. And getting any help from a SharePoint admin in my company is probably a very long shot...
I checked all of Word's Built-in Properties and Custom Properties, I decided that none of them can be used to update the "Process Name" "server" property.
How can I update this stubborn property? Most of the server properties I can update, a few I cannot.
I see some articles referring to using what looks like "SharePoint objects." Do I need to download an SDK just to populate these properties? So far I've used Office automation, because I am running locally on the user's PC and pre-filling documents using the Word object model.
All that is left is to finish populating the last couple of server properties after I copied the doc to a Sharepoint folder.
Your issue comes from how SharePoint maps its properties to the Office 2007 document and vice-versa.
Ideally you would navigate to the web site and list of where your document is stored. (e.g. shortent http://intranet/[somesharepointstuff]/mydocument.docx to http://intranet/[somesharepointstuff]).
If a page display, you will be able to find your document and edit some properties there hopefully.
This ability to edit the document may depend on your security access.
Doing this will allow you to "see" what properties of the document are setup to be editable by uses and which are not.

Capture right-click'd text on Outlook Message Content

I'd like to know if it's possible to capture the text when a user right-click's on an Outlook message, and then add items to the right-click menu depending on the type of text.
This is an example of what I'd like to do. If there's a message (mail item) with the following content: "Hello, please call me at 555-8474 regarding item A1234" and the user right-click's on the number "8", the pop-up context menu will have an extra item at the bottom called "Call 555-8474", and a "PhoneCall" sub will be run if selected. If the user right-click's anywhere on "A1234" a different item (i.e. "Look up A1234") will be shown.
We're running Outlook 2003 and if possible I'd like to know if this can be done using VBA. I'm open to other ideas as well. Thanks!
You can use this example in VBA to get started
SmartTags is an Office 2003 feature that was designed for exactly this sort of thing. I honestly don't know SmartTags well enough to do more than wave in the general direction, so I hope you get a better answer from a domain expert....