• 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 ?

erich37

Well-known member
#1
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,
 

Lawrence

Well-known member
#2
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>
 

erich37

Well-known member
#3
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
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.


Is there an easier way to delete Admin recent activity?
 
R

ragtek

Guest
#5
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
Is there an easier way to delete Admin recent activity?