Hi,

I'm using Activity with Facebook Status and Buddylist2. Please how does the administrator or user delete their activity in the feed? I think this is pretty important being able to administer inappropriate messages.

Look so forward to any reply, and thank you.
Lilian

Comments

liliplanet’s picture

* bump * sorry. Is it something I can do inside the template, or does someone perhaps have a patch please?

I'm using Activity with Facebook Status and Buddylist2. Please how does the administrator or user delete their activity in the feed? I think this is pretty important being able to administer inappropriate messages.

Look forward to any reply.
Lilian

sirkitree’s picture

There currently is no interface for doing this, you must remove them from your database manually.

jaydub’s picture

Version: 5.x-3.x-dev » 5.x-4.x-dev

possibly add a simple frontend to the activity tables off of /admin/content/activity
or something similar. Allow filter by module type, token type, operation type, date,
target.

ibexy’s picture

is there any way to filter out activities by the admin or a specific user?

jaydub’s picture

There is not a way currently to filter out activity that has already occurred and is stored in the activity tables. If you want to keep certain users from showing up in future activity, you can utilize the user privacy opt-out feature in the user's profile page. If you check the privacy opt-out, any activity generated by that user will not get written to the activity tables.

ibexy’s picture

That option seems to be in the 5.4 version. but I found this instruction here Please do not install 5.4 on a production site!

minesota’s picture

The usual user expectation regarding activity, as in social sites

user has an interface ( perhaps from a tab in profile page ) where he can choose
what activities to show in his activity list eg. blogging, album, forum or only blogging or only album etc

user is also presented with a small delete icon beside each line in the activity listing so that any individual item can be deleted

Admin, while can do all of the above, can define how many days of activity to store, currently it seems there is no other way than to manually delete old data

jaydub’s picture

Letting admin (or users with permission to administer activity) delete is not a problem and is something I will introduce shortly. Lettings users delete will take longer because the activity tables as currently designed do not have a user ID (uid) associated with an activity record as the activity owner. At one time during the development of this module there was a uid column introduced but then it was taken back out. This was prior to my coming on board. There are enough reasons why to add it back so that is slated for the future. Because there will be an upgrade process needed for existing records I'm putting this off until some of the other tasks are complete.

minesota’s picture

Since activity is not vital data itself but just pointers or shortcuts to actual data (nodes, others)
IMHO instead of upgrade, can we think of a fresh code instead if that is more easy ?

We will need, however, clear instructions on how to completely uninstall the existing activity including database tables as well as files, and do a fresh install without breaking any thing else.

Together with APK , OG and Buddylist Activity makes the 'core' of a social site. A great thanks to jaydub for actively supporting this.

jaydub’s picture

sure for those willing to start anew it's much easier but since there are users with previous versions of activity in production use it's good policy to try and provide for upgrade paths wherever possible.

For documentation I'm looking for any help I can get : #327060: Call for documentation help

minesota’s picture

Thats true but on the other side I think anyone can gain much from a fresh thing if it comes with all the expected features. Since activity is not actual data IMHO no one will lose much.
But then whatever you deem best should be done. Its an excellent job you are doing and kudos for that!

The activity module is pretty self-explanatory but handbook pages is a good idea anyway. Is there any such existing pages ? if so please add the link at http://drupal.org/node/327060

jaydub’s picture

Ok added a top level handbook page for Activity: http://drupal.org/node/328429

minesota’s picture

Thanks. Made some additions there which can probably help starters.
Please trim / crop / expand.
I expect to add some nice screenshots which goes to show how wonderful this can be.

jaydub’s picture

Ok just checked in preliminary support for deletion of a single activity record. Users with 'administer activity' permission will have the right to delete activity records via a link shown in the default activity page tables.

Pending status of reintroducing a uid column this will not work for users removing their own activity yet.

TODO: make the delete actions AJAX style with nicer CSS+JS effects.

minesota’s picture

Can 'administer activity' be just restricted to deleting an individual item by an individual member (provided he is granted such permission via access control) but who cannot administer the admin aspects of activity - that is he cannot administer the module settings ?

I assume this is not possible unless that uid column is reintroduced.

jaydub’s picture

correct. Until the activity table has a column for the 'owner' of the activity record there's no nice and clean way to determine the true owner of the activity to allow for the 'delete my own activity' type of permissions.

jaydub’s picture

Next step will be to build an admin UI for search and deleting activity records.

jaydub’s picture

sirkitree’s picture

Status: Active » Closed (won't fix)

5.x unsupported please see 6.x-2

Michsk’s picture

i have 6.x-2, but can;t find the page where these bulk operations are located?