1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

hide status update editor on own profile

Discussion in 'Template Modifications [Archive]' started by dieketzer, Dec 1, 2010.

  1. dieketzer

    dieketzer Well-Known Member

    i was becoming increasingly annoyed with profile comments being confused with status updates and having things like 'youre welcome' and 'lol i agree' showing up in the activity feeds as status updates.

    this template modification will hide the status update editor from people when viewing their own profile page. this forces them to use 'comment' and actually reply to comments properly. they can still post status updates using the control panel drop-down and from 'your account'.

    thanks to jake for helping out with the conditional. i figured id post this here for the benefit of others.


    in template member_view
    change the first line of this code:
    PHP:
    <xen:if is="{$canPostOnProfile}">
                        <
    form action="{xen:link members/post, $user}" method="post"
                            
    class="messageSimple profilePoster AutoValidator primaryContent" id="ProfilePoster"
                            
    data-optInOut="optIn">
                            <
    xen:avatar user="$visitorsize="s" />
                            <
    div class="messageInfo">
                                <
    xen:if is="{$visitor.user_id} == {$user.user_id}">
                                    <
    textarea name="message" class="textCtrl StatusEditor Elastic" placeholder="{xen:phrase update_your_status}..." rows="3" cols="50" data-statusEditorCounter="#statusEditorCounter"></textarea>
                                <
    xen:else />
                                    <
    textarea name="message" class="textCtrl Elastic" placeholder="{xen:phrase write_something}..." rows="3" cols="50"></textarea>
                                </
    xen:if>
    like so:
    PHP:
    <xen:if is="{$canPostOnProfile} AND {$visitor.user_id} != {$user.user_id}">
                        <
    form action="{xen:link members/post, $user}" method="post"
                            
    class="messageSimple profilePoster AutoValidator primaryContent" id="ProfilePoster"
                            
    data-optInOut="optIn">
                            <
    xen:avatar user="$visitorsize="s" />
                            <
    div class="messageInfo">
                                <
    xen:if is="{$visitor.user_id} == {$user.user_id}">
                                    <
    textarea name="message" class="textCtrl StatusEditor Elastic" placeholder="{xen:phrase update_your_status}..." rows="3" cols="50" data-statusEditorCounter="#statusEditorCounter"></textarea>
                                <
    xen:else />
                                    <
    textarea name="message" class="textCtrl Elastic" placeholder="{xen:phrase write_something}..." rows="3" cols="50"></textarea>
                                </
    xen:if>
    no_status.png
     
    Fuhrmann, Michael, FredC and 2 others like this.
  2. Grover

    Grover Well-Known Member

    I kept stressing this very issue in multiple postings in this discussion: http://xenforo.com/community/thread...status-in-user-profile-is-confusing-now.1367/. I already expected this to happen on other boards (so I am glad with your confirmation) and it will certainly happen on mine when I switch to XenForo. I hope XenForo can somehow improve this functionality in the future in the stock install.
     
  3. dieketzer

    dieketzer Well-Known Member

    futhermore, when i added a status sidebock with the built in status update input people started using it as a shoutbox!
    that lasted only two days before i fixed it.
     
  4. Sador

    Sador Well-Known Member

    Interesting, thanks.
     

Share This Page