Joanna, I think you may be missing a little detail somehow in the explanation from the other thread. Try it again:
In your ACTIVE (custom) skin, go to the templates and Modify the index_activity.tpl.
To do it like michael described in the other thread, first note that you must add the first bit of new code in THREE places in the template: you'll be adding the code immediately after it says
{jrCore_item_delete_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}
, (but before the closing div that comes right after it each time) -note that line of code occurs three times in the template- so add the following code THREE times (once after each of the repeated lines above):
{if jrUser_is_admin() && !jrProfile_is_profile_view()}
<a onclick="xxDeleteEntry('{$item._item_id}');">{jrCore_icon icon="trash" size=30}</a>
{/if}
Finally, as Michael suggests in the other thread, add this code once at the VERY BOTTOM, after everything else:
<script>
function xxDeleteEntry(id) {
if (confirm('Are you sure you want to Delete this timeline entry?')) {
var url = core_system_url + '/' + jrAction_url + '/browser_item_delete/id=' + id + '/__ajax=1';
jrCore_set_csrf_cookie(url);
$.get(url, function (r)
{
$('#a' + id).fadeOut();
});
}
}
</script>
Be sure to SAVE your change, then go back to the templates list and remember to CHECK the little box that activates your new change, and SAVE at bottom again. Clear your CACHE, and perhaps you will see the change on your main index page activity feed when you refresh that page?
--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
updated by @strumelia: 09/24/16 06:04:02PM