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

how to delete "Recent Activity"-entries of Admin ?

Discussion in 'XenForo Questions and Support' started by erich37, Oct 8, 2010.

  1. erich37

    erich37 Well-Known Member

    I have made a couple changes to my Admin-Profile (change of location, etc.), which are in fact also shown within the Profile-tab named "Recent Activity".

    - How to delete my own data from the Tab "Recent Activity" ?
    - How to hide my own Tab "Recent Activity" ?

    Many thanks,
     
    anotheralias likes this.
  2. Lawrence

    Lawrence Well-Known Member

    To give a recent activity permission error when someone tries to view your recent activity by accessing through the URL, open:

    member_recent_activity template and find:

    Code:
    <xen:if is="{$restricted}">
    and replace with (change the 1 to what ever your user id is):

    Code:
    <xen:if is="{$restricted} OR {$user.user_id} == '1'">


    Now to remove the tab:

    Open member_view template

    find:
    Code:
    <xen:if is="{$showRecentActivity}"><li><a href="{$requestPaths.requestUri}#recentActivity">{xen:phrase recent_activity}</a></li></xen:if>
    
    And replace with:
    Code:
    <xen:if is="{$user.user_id} != '1'">
                    <xen:if is="{$showRecentActivity}"><li><a href="{$requestPaths.requestUri}#recentActivity">{xen:phrase recent_activity}</a></li></xen:if>
    </xen:if>
    
     
    anotheralias likes this.
  3. erich37

    erich37 Well-Known Member

    thanks Lawrence, but that is just too complicated for me.

    I just want to delete a few of my own (Admin) recent activities.
    I have changed my location several times and I do not want my users to see that I have changed that several times.

    There should be something build in, in order to give the Admin the option to at least delete his own "Recent Activites". This would be helpful, especially when starting a Forum from scratch, to keep things clean at the website.
     
  4. Vet

    Vet Member



    Is there an easier way to delete Admin recent activity?
     
  5. ragtek

    ragtek Guest

    direct in the database;)

    table : xf_news_feed

    I'll see if i find some time next week to release my add-on for this.^^
    Just needs some style tweeks and permission checkings
     

Share This Page