solved Data Browser truncates out Timeline profile id #s that i need

Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
When I delete items from my Databrowser, it's often impossible to figure out which member added the item I am trying to delete, which makes it confusing.

In the drop down menu, if you look under Vimeo it's pretty easy to see which member posted or commented on the video- the video title and the member's name is shown. Not a problem in the Forum section either- there is some text excerpt from the post you want to delete.

But if you go to Timeline drop down to delete stuff from the Main Hme page activity feed, it doesn't give you much to go by, and the one clear piece of info you'd need to delete the right item is the profile_id number of the person who posted it- and that's often truncated OUT and it won't appear by stretchng your browser window or highlighting or anything.
See my screenshot. Makes it real hard to delete the right comment form the Timeline, and that seems to be the location where I most frequently need to delete an item from the data browser. Often when I've removed something I don't want to be seen by other members and i want to remove the thing from the Main Page activity feed immediately without waiting for caches etc to catch up.
Can this databrowser Timeline truncated entry be wrapped or something instead of getting cut off whenever I seem to really NEED that profile_id number?
Thanks! See screenshot..
timelinebrowser.jpg
timelinebrowser.jpg  •  408KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 12/16/16 04:01:07PM
michael
@michael
9 years ago
7,806 posts
Whats the action around whats being performed here? It seames like whats happening is you're scanning timeline entries for in appropriate comments in order to delete them.

Wondering if there is not a better way to lay it out to achieve the goal.
Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
Ok, so if you look in my screenshot and use the two examples of: Posts people have posted on my site forum ...and Comments they've posted on a youtube clip.
In either case:
I have deleted both the actual particular troublesome forum post by "bob" and the particular inappropriate comment "nancy" has posted on someone's YT clip.
But now I want to IMMEDIATELY remove the references to that post and that comment from my site MainHome page's Activity feed, before someone's feelings get hurt. I don't want to wait for the cache to take care of it.
The trouble is, in the databrowser under the Timeline feature, I can't tell which of the several posts and comments are the ones from Bob and Nancy- there's no marker that distinguishes their post or comment from the other members' posts and comments on the same item, and there's no EXCERPT from their post or comment that would tell me which one it is. When there are several posts in a discussion for example, the only way I'd have to know which is Bob's post is to look at the profile_id number in the databrowser...but it's truncated out in half the entries. So i then have to take a chance and hope Im deleting Bob's post from the Timeline showing on the main page and not some other member's post.
Sometimes it shows the first number or two of the profile id #... and it's darn frustrating. ;) It's just a matter of not being able to expand my browser window to SEE the identifying profile number, or wrap the text or be able to search for the profile_id #, or provide a short excerpt of the comment or forum post like some of the other features give ...or some sort of solution?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 09/14/16 07:58:32AM
michael
@michael
9 years ago
7,806 posts
Sounds like the "Delete Timeline Entries" found at:
ACP -> MODULES -> PROFILE -> TIMELINE -> GLOBAL CONFIG -> Delete Timeline Entries

Isn't firing for some reason in this case. With that checked deleting the main item should delete the timeline entry too.

Does that assessment seam correct to you? If it is I will look for why and see if it needs fixing.

That way after your deleting all that should be needed to clear any caches is:
ACP -> MODULES -> CORE -> SYSTEM CORE -> RESET CACHES

--
The timeline layout seams secondary to that. If that was working, looking at the data browser would be un-necessary in this case correct?

--
The other idea that seams more direct is a delete button on your "site MainHome page's Activity feed" to click to delete that post.
Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
Michael, my "Delete Timeline Entries" is functioning.
And yes it works and makes the timeline entries no longer appear once I DELETE the item from the site and then clear the cache.

But my larger problem is that I often use the Data Browser to remove items from the Home page Timeline WITHOUT deleting them from the site. I do this to prevent certain member actions from getting front page attention. Then the lack of seeing the profile_id # is a problem- to identify which comments or posts I want to delete ...from the Timeline only.
I do this when for example a member posts various things that might be off topic, too numerous or redundant- and I don't want 'all' of their items seen on the main page and getting so much attention- but they are not things I should necessarily be deleting from the site. Or say someone posts a person's private phone number...and I go in and edit that out for them, but everyone still sees the original post on the Timeline mention.
I just want to remove those mentions from being front and center on the main page Activity Feed...remove one particular one, or a few of them.

I guess if it's not an easy fix to see the databrowser entry better without truncating, then yes a Home/Index page Activity Feed (Timeline) Delete button for Admins and Profile Admins would do the trick.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,806 posts
Strumelia:..my larger problem is that I often use the Data Browser to remove items from the Home page Timeline WITHOUT deleting them from the site. I do this to prevent certain member actions from getting front page attention. Then the lack of seeing the profile_id # is a problem- to identify which comments or posts I want to delete ...from the Timeline only...

Would not a delete button on the timeline entry on the home page be an easier solution?

Forgive me, trying understand the root of the problem. Its unclear to me why deleting from the Data Browser is a better option than a delete button on the home page.

(The timeline is under heavy development right now for something exciting coming up.)
Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
A delete button (for Admins) on the Home Page Timeline WOULD indeed be the better solution, Michael.

If it needed to be done by me using a custom code change, then I'd have to understand how to do that of course. Which i currently don't. ;D


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,806 posts
hold on, I'll get some code for you.
michael
@michael
9 years ago
7,806 posts
got some code, can I install it into your system? Will add it via the Template Editor at:
ACP -> SKINS -> (your current skin) -> TEMPLATES -> index_activity.tpl -> MODIFY

The code needs to go into 3 locations in that template to add the delete buton.

The code is:
{if jrUser_is_admin() && !jrProfile_is_profile_view()}
    <a onclick="xxDeleteEntry('{$item._item_id}');">{jrCore_icon icon="trash" size=30}</a>
{/if}

Then one location to put this, and at the bottom of that page:
<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>


--edit--
Updated the code to a better system. The entries will delete and disappear when you click the delete button, but you'll still need to use the cache refresh tool to clear the caches once you've done pruning.
updated by @michael: 09/15/16 08:07:28PM
michael
@michael
9 years ago
7,806 posts
Just need your OK and I'll plug it in to your site.
Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
Yes please, that's be great! I'd want it to be functional for both Master Admin and Profile Admins.

Hmm, one detail...since my moderators (profile admins) don't have access to clear the cache, I guess any item THEY delete from the timeline will remain seen until the cache updates itself?- which usually would take...how long? (hope im understanding this right). I am guessing there's no way around that really, right?
In any case it will be incredibly useful to me anyway, this delete button.

Michael, is the template you are altering in the skin then?




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 09/15/16 06:35:32AM
michael
@michael
9 years ago
7,806 posts
Yes this is the index_activity.tpl template:
ACP -> SKINS -> (your current skin) -> TEMPLATES -> index_activity.tpl -> MODIFY

I've added it to your site. The action is exactly the same as if the DELETE button was pressed from the Data Browser.

If you find the cache clearing is an issue, get your moderators to write on their timeline after they're done deleting, that should sort the cache out.
Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
This is great- thank you SO MUCH Michael! My moderators and I have been wishing for a little main page activity feed delete button like this since Day 1. Yaaaay!! :) xox

Marking this SOLVED. :D


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,806 posts
:)
Strumelia
Strumelia
@strumelia
9 years ago
3,605 posts
This is my last post on this- but wanted to say my mods are already listing various situations in which this little button will be useful and handy. Happy dance!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,806 posts
:) you can post as many happy comments as you like, never get sick of seeing them.