How to hide username in comments section of sharepoint 2013 blog page

I have a blog page in SharePoint 2013. In that, in the comments section, i have to hide the username of the person who posted the comment.
I also have to hide it from the page source, hence i cannot use css. Please suggest some solution,if possible using xslt.

Open the blog.xsl file which is located in "/_layouts/XSL/blog.xsl"
For safe side take the back up of blog.xsl file and open it and find the below div
<div class="ms-PostFooter">
<!-- For the author field, render it using the span style and preceed it with the word "by"-->
<span class="ms-postfootercolor"><xsl:value-of select="$thisNode/../@resource.wss.ByPrefix"/></span><xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text><xsl:call-template name="RenderAuthor"/>
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text><span class="ms-postfootercolor"><xsl:value-of select="$thisNode/../@resource.wss.blog_postfooter_at"/><xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
<xsl:choose>
<xsl:when test="$ContainerId"><xsl:text disable-output-escaping="yes">&lt;#= spMgr.RenderFieldByName("PublishedDate", listItem, listSchema) #&gt;</xsl:text></xsl:when>
<xsl:otherwise><xsl:value-of select="@PublishedDate" disable-output-escaping="yes"/></xsl:otherwise>
</xsl:choose></span>
<div>
In the above div remove the span tag
<!-- For the author field, render it using the span style and preceed it with the word "by"-->
<span class="ms-postfootercolor"><xsl:value-of select="$thisNode/../@resource.wss.ByPrefix"/></span><xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text><xsl:call-template name="RenderAuthor"/>
If you any help please let me know

Similar Messages

  • Why can I no longer get the comment section from my favorite Blog?

    I have not been able to get the comment section of my favorite Blog. When I click on to go to the page all I get is a white blank page. This has been the case for over a month.

    delete the account and re-add it.

  • Facebook moderator in SharePoint 2013 Blog commenting.

    Hi,
     I was able to put Facebook commenting in SharePoint 2013 blog but i was not able to see moderator view when i add meta tags in head with my facebook user id.
    <meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}"/>
    is there something extra we need to configure to see moderator view in SharePoint 2013.
    Thanks,
    M.M

    Hi,
    According to your post, my understanding is that you could not able to see the moderator view using the Facebook comments plugin.
    You can check with the below meta tag in the header section:
    <meta property="fb:app_id" content="{YOUR_APP_ID}">
    This will give administrators of your application in-line access 
    http://stackoverflow.com/questions/7797660/facebook-comment-moderation-tool
    http://stackoverflow.com/questions/19050121/how-can-i-moderate-facebook-comments-posted-in-my-website
    what’s more, as the issue is related to the Social Plugins, if the issue still occurs, you can post your question in the following site.
    https://developers.facebook.com/support/
    More experts will assist you, then you will get more information relation to Facebook comments.
    Thank you for your understanding and support.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Can not specify the SMTP server port, username and password for my SharePoint 2013 web application

    We have our SMTP server under port number 141 and we should add username and password. but inside SharePoint 2013, I can only define the SMTP server name , from email, reply-to . But there are not fields to define the port number , the username and password.
    So can anyone advice from where I can define the port number and other field settings for the SMTP server ?
    Thanks

    i am no sure about user name and password. i never saw that option.
    check this guide:
    http://blogs.technet.com/b/tirumals/archive/2012/03/17/step-by-step-configuration-of-outgoing-emails-from-sharepoint-to-microsoft-online.aspx
    http://blog.fpweb.net/configuring-an-smtp-server-for-sharepoint/#.UuANoxAo6M8
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog
    thanks for the reply, but in our case the SMTP is  a separate server , and to connect to it i need to define the ; server IP /Name , port number, username & password. but in SharePoint there is no option to define the port number , and the links you
    provide are regarding configuring SMTP server, while we already have an SMTP server but i need to connect SP with it . can you advice please?

  • SharePoint 2013 Blog Site or Discussion LIst - Comment on a Comment

    Hi,
    Quick question.  Is anyone aware of a plug-in or feature or new blog add-in for SP 2013 that allows "comments on comments".   From what I can tell in the blog site and discussion list, you can only comment on the original comment. 
    You cannot comment on someone else's comment as in a tiered fashion. 
    Any ideas?
    Thanks!
    Thanks! Patti N.

    Hi,
    According to your post, my understanding is that you want to be able to comment on someone else’s comments displayed in a hierarchical structure.
    In SharePoint 2013, it’s by default that the Discussion Board list’s replies are in the “Flat” view, and it won’t display the replies in a hierarchical structure.
    However, the Discussion Board list have another default view is the “Threaded” view, and it can display replies in a hierarchical structure.
    Therefore, I recommend that you can directly modify the default view of the Discussion Board list’s replies to the “Threaded” view to achieve your requirement.
    For SharePoint 2013 Blog site, as a workaround, I suggest that you also can create a Discussion Board list into it to implement this function.
    Best Regards,
    Yumi Fu

  • How many server licenses do I need for SharePoint 2013?

    I am new to the concept of CAL. I am reading about it. I found this linkhttp://sharepoint.stackexchange.com/questions/101914/how-many-server-licenses-do-i-need-for-sharepoint-2013
    Suppose there are 2 users in the sharepoint farm. As per above link we requires 7/8 server license. So my question is do we requires 7/8 licences per user basis (2*7/8) or we requires 7/8 licences once only then we require 2 more licenses for 2 users (7/8 +2)?

    The second option.
    If you have 7 SharePoint servers then you need 7 SharePoint Server Licenses.
    If you have two people in your company who can use SharePoint then you need two Client Access Licenses (7 server, 2 CAL).
    If you had two hundred thousand users who could then you would need two hundred thousand CALs, but the number of server licenses would not change. (7 server, 200,000 CALs).

  • How to hide username/password in JDBC program.

    hi All,
    The support tat I get here is simply gr8.
    Can someone suggest or send me a link as to how I hide the username /password ....i.e database connection in the jdbc program so as to avoid changing the program everywhere in case username and passwd changes ?????
    I simply want to change the following code
    String driverName = "oracle.jdbc.driver.OracleDriver";
    Class.forName(driverName).newInstance();
    // Create a connection to the database
    Sring serverName = "127.0.0.1";
    String portNumber = "1521";
    String sid = "oratest";
    String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String username = "scott";
    String password = "tiger";
    connection = DriverManager.getConnection(url, username, password);
    Ta,
    sunny

    well i kind of support what my fellow poster neeelima.srtidhar said..
    Use of Connection Pooling via JNDI which is either provided by appln server or using custom built frameworks is the best method which i can think of instead of reinventing the wheel by creating a Properties file and then writing a Utility Class which ultimately endup in creating connection Object without any sort of optimal usage.
    checkout the below articles for reference of how to do it.
    http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
    http://www.informit.com/articles/article.asp?p=352320&rl=1
    http://www.codeproject.com/useritems/pool_client_jboss.asp
    http://edocs.bea.com/wls/docs81/jdbc/programming.html
    http://www.castor.org/jdo-pooling.html
    http://homepages.nildram.co.uk/~slink/java/DBPool/
    and if you are thinking of reinventing those that could be possible using the below article
    http://www.javaworld.com/javaworld/jw-05-2002/jw-0517-jdbcdriver.html?page=1
    Hope that might help:)
    REGARDS,
    RaHuL

  • How to hide username and passward in  web reports

    Dear friends
    Im runing one report on web but its showing the username and passward in the URL (address bar) can you please help me how to hide that passward.......
    let suppose the username/passward is scott/tiger
    thanks with regards

    for hide the password follow thses steps
    user_name := get_application_property(username);
    pass := get_application_property(password);
    conn := get_application_property(connect_string);
    con_url := 'userid='||user_name||'/'||pass||'@'||conn;
    /* Convert the connect string into a hexadecimal character string. */
    FOR i IN 1..LENGTH(con_url) LOOP
    v_a := ltrim(to_char(trunc(ascii(substr(con_url,i,1))/16)));
    if v_a = '10' THEN v_a := 'A';
    elsif v_a = '11' THEN v_a := 'B';
    elsif v_a = '12' THEN v_a := 'C';
    elsif v_a = '13' THEN v_a := 'D';
    elsif v_a = '14' THEN v_a := 'E';
    elsif v_a = '15' THEN v_a := 'F';
    end if;
    v_b := ltrim(to_char(mod(ascii(substr(con_url,i,1)),16)));
    if v_b = '10' THEN v_b := 'A';
    elsif v_b = '11' THEN v_b := 'B';
    elsif v_b = '12' THEN v_b := 'C';
    elsif v_b = '13' THEN v_b := 'D';
    elsif v_b = '14' THEN v_b := 'E';
    elsif v_b = '15' THEN v_b := 'F';
    end if;
    con_url_temp := con_url_temp||'%'||v_a||v_b;
    END LOOP;
    path:='/reports/rwservlet?server=repserver4&destype=cache&'||con_url_temp||'&report='||rep_path);
    web.show_document(path);
    kuljeet pal singh

  • How to hide apps in purchase section (ios 6)

    I just updated my iPad 2 to iOS 6 but I cant find the way to hide apps from purchase section in the App Store , thanks

    Disappointing, but the swipe-to-hide function does not seem to have made it to IOS 6.
    However, there is a workaround.  You can still hide purchases via itunes.  If I remember correctly, there's a section for "Purchases" under  the "Store" area.  You can view purchased apps for all devices on your account.  Click an app icon, then click the (X) that appears in the corner.  iTunes will ask if you want to hide it.

  • How to hide list for particular users in SharePoint 2010

    Hello Experts,
    How to hide/Show Custom list to a particular user or group in SharePoint 2010
    Thanks in advance.
    Thanks & Regards, Abasaheb Dubal.

    All the lists in SharePoint inherits permission from its site. To hide a list from a user or a group what you can do is break permission inheritance at the particular list level.
    1) Go to List and then click List Settings from the Ribbon.
    2) Under permissions and management click Permissions for this list
    3) Click Stop Inheriting Permission from the Ribbon
    4) Remove User or Group that you do not want to share that list with.
    Amit

  • How to Construct the Email To activity in SharePoint 2013 Workflow

    I have a created a custom workflow and custom association and initiation form using SharePoint 2013.
    My Assn. form is fine.  I pass in the people picker (Active Directory group) value to my workflow just fine.
    Now on my Init form I use the passed in value from people picker and display a list of users and email addresses from the people picker group.  The list of users and email addresses are listed in a table with a check box to the left of each row. I am
    using JQuery, Knockout and MVC web service to retrieve the values from the group.
    All is well.
    Now my users pick who they want to send the email to.  Let's say they pick two users!
    When the user clicks the submit button, I have JSOM code which starts the workflow and sends in the 2 users email addresses as an argument to theworkflow.
     Note:  I tried sending my two emails as a collection and failed.  So i converted it to a string.  The variable is called strUsers.
    Since the argument is a string and Email Activity requires the To attribute to be an array, I use the BuildCollection<String> Activity to convert my string to an array.
    Now in my workflow I use WriteToHistory Activity to write out my BuildCollection variable (recipients).  Here's what is sent to the workflow history... [email protected];joejones@yahoo,com)  Note:
     Both names are bogus and I'm not Joe Jones.
    I then configure the email Activity and set to To property to my BuildActivity variable (recipients).
    When I deploy my Visual Studio 2013 solution, and attach my workflow to a publishing page, I am getting this error after I submit the Init form.
    An unhandled exception occurred during the execution of workflow instance.  System.ArgumentNullException.
    Does anyone know of an example of how to set up the Email To collection value.
    Note:  I tried using comma and semi-colon for my string (strUsers).  Neither worked.
    Thanks
    Tom
    none

    I think I'm getting close.
    Here’s an
    article
    that helped me out and below is my code.  Note:  I added a ParseDynamicValue and GetDynamicValueProperty to push the data from the "emails" property to colleciton of strings called EmailCollect.
    Here is what the data look likes
    The value of Selected Emails is [{"emails":"[email protected]"},{"emails":"[email protected]"}]
     Code excerpt in InitiationForm.  Note:  I am using MVVM and Knockout for the selected users from a list with checkboxes.
                    //build array for workflow 
                  var emailUsers =
    new Array();
                    //cycle through viewmodel emails
    for (var
    i = 0; i < viewModel.SelectedEmails().length; i++)
    var a =
    new Object();
                        a["emails"]
    = viewModel.SelectedEmails()[i];
                        emailUsers.push(a);
    wfParams['strSelectedEmailsHMgr']
    = JSON.stringify(emailUsers);
                     // Get workflow subscription
    and then start the workflow
    var context = SP.ClientContext.get_current();
    var wfManager = SP.WorkflowServices.WorkflowServicesManager.newObject(context, context.get_web());
    var wfDeployService = wfManager.getWorkflowDeploymentService();
    var subscriptionService = wfManager.getWorkflowSubscriptionService();
                    context.load(subscriptionService);
                    context.executeQueryAsync(
    function (sender, args) {
    // Success
    var subscription =
    null;
    // Load the workflow subscription
    if (subscriptionId)
                                subscription = subscriptionService.getSubscription(subscriptionId);
    if (subscription) {
    if (itemId !=
    null && itemId !=
    // Start list workflow
                                    wfManager.getWorkflowInstanceService().startWorkflowOnListItem(subscription,
    itemId, wfParams);
    Now I deploy and publish the workflow but now I’m getting this error when trying to 
    System.InvalidOperationException: Looking up a value using a key is not supported on an instance of 'Microsoft.Activities.Dynamic.DynamicJsonArray'. at Microsoft.Activities.Dynamic.DynamicItem.TryGetValue(String
    key, DynamicItem& value) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem obj) at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    none

  • How to open and read Excel Sheet from SharePoint 2013 Document Library using C# Visual Studio 2012

    Hi,
    To achieve these are the steps that I had followed :
    1. Add the document Library path into Central Admin -> Application Mgmt -> Manage Service App -> Excel Service App -> Trusted File Locations
    2. Add Documnet Library link to Trusted Connection Proivder
    3. Open Visual Studio as Run as Administrator
    4.Create an SharePoint 2013 Empty Project.
    5.Add Service Reference : http:\\<server>\_vti_bin/excelservice.asmx
    6.Service added successfully
    7.Create a class file and add the Service Reference namespace
    There is no such class as ExcelService to call. 
    Please let me know if somebody knows how to open the Excel file into C#(2012)  either using ExcelService or any other way to open. I tried old methods of Sharepoint 2010 server but it's not able to access classes.
    Requirement is :
    Need to read the excel sheet  from Document Library and transfer all data into DataTable.
    Please help asap. 

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office, I'll move your question to the SharePoint 2013 development forum
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointdevelopment
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • How to edit Information of a user in sharepoint 2013.

    hi,
    i am trying to update user information in sharepoint 2013.but the user information form is uneditable ,
    when i click on Edit item link the window pop up with only attachment field.
    how to enable the fields on form?
    any help would be appriciated.
    Thanks !!!

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/53c1e539-891e-4400-83e0-100cd44c52eb/editing-the-user-information-list
    If you disable the my site function, it won’t bring you to the my site.
    For more information about disconnect the USER Profile Service, please refer to
    http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/f012d1b0-3605-4124-8695-9afda112ecd8
    But
    Even though you can go to the display/edit form of the user list, you also can’t edit the information.
    Hope this helps
    Also check
    http://blog.falchionconsulting.com/index.php/2011/12/updating-sharepoint-2010-user-information/
    http://sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?List=daba3a3b-c338-41d8-bf52-cd897d000cf3&ID=65&Web=dbb90e85-b54c-49f4-8e97-6d8258116ca0
    If this helped you resolve your issue, please mark it Answered

  • How to configure Search for a site in sharepoint 2013?

    Hi,
    I had a document library.
    1)I want to configure search so that I can search documents from previous month, quarterly, half year, year, and all documents is possible.
    2)Search results are organized with most recent documents at the top.
    3)Search results have year as refiner that can be used to show results only from specified year (In library we have field with year when document create)
    To achieve this what I have chane in site settings->search
    and what I have to write for Result Types, Query Rules
    Thanks

    Hi,
    Following are the steps you need to perform for creating the search center.
    http://blogs.technet.com/b/tothesharepoint/archive/2013/10/30/set-up-a-search-center-in-sharepoint-2013.aspx (About Search)
    1. Create the site collection by navigating to the CA(Central Admin) & select the Enterprise Search Center Template.
    2. Create Content Source -> Navigate to the Search Service application->Create the content source if the content comes from other content farm (if different farm accout  if it same add the site Collection URL in default Content Source. ( make
    sure the crawl account must have full read permission)
    http://blogs.technet.com/b/tothesharepoint/archive/2013/10/31/how-to-create-a-search-center-site-collection-and-enable-crawling-of-your-content-in-sharepoint-2013.aspx (Create
    Search Center)
    3. Once you add url in the content source and run the full crawl.
    4. Navigate to the Search center created at step 1 and try to search with the document name. you will see the document.
    http://blogs.technet.com/b/tothesharepoint/archive/2013/11/06/how-to-configure-the-search-results-web-part-to-use-a-new-result-source-in-sharepoint-2013.aspx (Go
    to the document Library and configure the result source)
    5. To configure the refiner please follow this post. You will see the modified refiner to refine your search http://blogs.technet.com/b/tothesharepoint/archive/2013/11/07/plan-to-use-refiners-on-a-search-results-page-in-sharepoint-2013.aspx)
    Let me know if you req. any other information.
    Regards,
    Basant Pandey
    http://sharepointfordeveloper.blogspot.com

  • How to migrate files from different databases to sharepoint 2013?

    Hello everyone,
    I need to migrate files of various formats from two databases to SharePoint 2013 ? How should I pursue? Please explain..
    Scenario : Two different databases on different systems have loads of files. I need to migrate them to SharePoint?
    Any suggestions/ Answers

    Hi,
    You need to copy the database into your network shared folder or SharePoint Server where you wanted to attach this content DB to your newly created web application.
    Hope and Afraid,
    Same Domain has been used. I mean if you move the content db from the server 1 which using the AD1 for authenticate the users,
    So your new server 2 and web application must have configured to authenticate the AD 1 users.Otherwise user not found exception will be thrown. 
    If not  still you can change the site collection administrator for the site which is migrated from the server 1.
    Murugesa Pandian., SharePoint 2010 | MCPD | MCTS |Configure

Maybe you are looking for