1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Recent Acitivity and Current Activity Question

Discussion in 'XenForo Questions and Support' started by Michael, Oct 9, 2010.

  1. Michael

    Michael Active Member

    I have noticed that the only way that you can hide what page you are viewing is by appearing offline completely, I do not want to hide my online status and would like to know if there is any way that you can hide what you are viewing but still remain online?

  2. Lawrence

    Lawrence Well-Known Member

    You will need to wrap a conditional around this in member_card and member_view templates:

                            <xen:if is="{$user.activity.description}">
                                {$user.activity.description}<xen:if is="{$user.activity.itemTitle}"> <em><a href="{$user.activity.itemUrl}" class="concealed">{$user.activity.itemTitle}</a></em></xen:if>,
                            <xen:else />
                                {xen:phrase viewing_unknown_page},
    Michael likes this.
  3. Michael

    Michael Active Member

    Are there any other spots other than those two around the forum that display this info too? I am considering using an admin only conditional.

    Thanks :)
  4. Lawrence

    Lawrence Well-Known Member

    I did a template search and those were the only two that came up with the activity.description.

    You can wrap them with:

    <xen: if is="{$visitor.is_admin}">

    Michael likes this.
  5. Michael

    Michael Active Member

    Thank you, had to do one more in the online template but its working well now :)

Share This Page