Forum Activity for @strumelia

Strumelia
@strumelia
10/07/17 03:11:16PM
3,605 posts

Timeline entry pruning... ?


Using Jamroom

Ok, understood Paul.
So... first I would say that I doubt very much that I have enough of these items to make it worthwhile creating something custom to hunt them down. Let's not bother with that.

Where that leaves me is here:
1) I don't seem to understand what a "timeline entry that is manually created by a user" actually IS, then... can you help me understand?
and
2) if it's true that: "Timeline entries that are manually created by users are never deleted. "... then how does that effect me in terms of server space or clutter that accumulates? Is it that there are actually no files or attachments involved in such entries anyway? Again, maybe I'm just not understanding what such entries 'are'.
Strumelia
@strumelia
10/07/17 01:24:03PM
3,605 posts

Timeline entry pruning... ?


Using Jamroom

Paul, that was all described and linked in the beginning of this other thread:
https://www.jamroom.net/the-jamroom-network/forum/new_posts/53842/how-to-limit-size-number-of-profile-timeline-images
...but as per the solution at the end of that thread, I've now I believe eliminated any FUTURE instances from occurring... unless someone posts more to the same link that that guy added his jpgs to in his timeline. FWIW, I have deleted 2/3 of his embedded jps from that line of comments he made in his timeline. There were like 6 or 7 others there as well that he uploaded there.
I'm just wondering now if other timeline embeds from years past will be forever stuck on my server instead of being pruned out.
Strumelia
@strumelia
10/07/17 11:38:43AM
3,605 posts

Timeline entry pruning... ?


Using Jamroom

I notice in the Help section of the Timeline modules 'general settings', it says this (see screenshot):
"NOTE: Timeline entries that are manually created by users are never deleted. "

I have a member who posted a bunch of large jpgs in their profile timeline, and there may be others who have done this in the past while I did not notice. I have since removed the links where members could post in timelines... but that did not retroactively remove older entries posted before I removed the entryways.

Question: Does this Help statement mean those timeline entries and their files are going stay on my server and take up space for all eternity? I have the Timeline module's "prune system entries" set for 120 days... but are these profile entries created by users immune to that pruning and remain forever? =8-(
...If so, is there a way for me to FIND those entries and perhaps eventually delete the really old ones?

Thanks... :)

pruning.jpg pruning.jpg - 239KB

updated by @strumelia: 01/06/18 10:44:10AM
Strumelia
@strumelia
10/07/17 11:04:34AM
3,605 posts

How to limit size/number of profile timeline images?


Using Jamroom

Ok, I found and removed the timeline "link.png" button... also in the Timeline module's item_list template... as in here:
<div id="action-controls{$item._item_id}" class="action_item_delete">
                            {* timeline comment link.png icon button removed *}
                            {jrCore_item_delete_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}                      
                            {if jrUser_is_admin() && !jrProfile_is_profile_view()}
                            <a onclick="xxDeleteEntry('{$item._item_id}');">{jrCore_icon icon="trash" size=30}</a>
                            {/if}                        
                        </div>
Seems to have gotten rid of the link button in all the Timelines.
Now my members can no longer try to start conversations in other people's timelines and wonder where they are and why nobody else is responding to their questions and comments. Yikes, how retro to be removing such 'Share' avenues!... but really, I had gotten tired of members wandering into timelines and getting confused and then declaring that the site was confusing to navigate.

Somehow I managed to find the bits of code to delete and now those three 'garden paths' my confused members were getting lost wandering down inadvertently... have their gates CLOSED. :)
This removal of the timeline comment accesses also solves the original issue at the beginning of this thread- now members can't post excessive content or images into their timelines like that fellow with his massive jpgs that weren't limited by the profile limit functions. Now he can't access any timeline comment textboxes and post his 'stuff'.... he'll have to use the site Forums, the Groups, the Photo Gallery etc. to post his content, just like everyone else. And then other members can comment on it normally... and know where they are. :D

SOLVED! (whew, sorry for the length of this thread, but these little things were all very much related to each other)
updated by @strumelia: 10/07/17 11:07:12AM
Strumelia
@strumelia
10/07/17 10:34:54AM
3,605 posts

How to limit size/number of profile timeline images?


Using Jamroom

I successfully removed the "Share This" link from all Timelines by removing the following bit of code from my jr Timeline module's item_list.tpl:
{if jrUser_is_logged_in() && $_user._user_id != $item._user_id && $item.action_shared_by_user != '1'}
                                    &bull; <a onclick="jrAction_share('jrAction','{$item._item_id}')">{jrCore_lang module="jrAction" id="10" default="Share This"}</a> {/if} 
I'm sure some of the surrounding associated code should have probably been removed too, but I left it to be safe and just removed the link itself.

Now to figure out where the "link.png" is appearing in my templates... over riding in my skin, or in my Timeline module...? Maybe I can find it and not destroy the planet....
Strumelia
@strumelia
10/05/17 08:25:11AM
3,605 posts

How to limit size/number of profile timeline images?


Using Jamroom

michael:
Problem #2
The share and the link buttons are probably in the jrAction modules item_list.tpl file but could have an override at skin level.

As per Problem #2:
I do not have a jrAction item_list template in my skin.

You're right, these two references are in my item_list tmeplate in my jrAction module.

Here is the current code... can you suggest how to eliminate those two links from all timelines?:
{if isset($_items)}

    {jrCore_module_url module="jrAction" assign="murl"}
    {foreach from=$_items item="item"}

        <div id="action-item{$item._item_id}" class="action_item_holder">
            <div class="container">
                <div class="row">

                    <div class="col2">
                        <div class="action_item_media">
                            {jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="icon" crop="auto" alt=$item.user_name class="action_item_user_img img_shadow img_scale"}
                        </div>
                    </div>

                    <div class="col10 last" style="position:relative">

                        <script type="text/javascript">
                            $(function() {
                                var d = $('#action-controls{$item._item_id}');
                                $('#action-item{$item._item_id}').hover(function()
                                {
                                    d.show();
                                }, function()
                                {
                                    d.hide();
                                });
                            });
                        </script>

                        <div id="action-controls{$item._item_id}" class="action_item_delete">
                            <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}">{jrCore_icon icon="link"}</a>
                            {jrCore_item_delete_button module="jrAction" profile_id=$item._profile_id item_id=$item._item_id}
                        
                            {if jrUser_is_admin() && !jrProfile_is_profile_view()}
                            <a onclick="xxDeleteEntry('{$item._item_id}');">{jrCore_icon icon="trash" size=30}</a>
                            {/if}                        
                        
                        </div>

                        <div>

                            <span class="action_item_title"><a href="{$jamroom_url}/{$item.profile_url}" title="{$item.profile_name|jrCore_entity_string}">@{$item.profile_url}</a></span>

                            <span class="action_item_actions">
                                &bull; {$item._created|jrCore_date_format:"relative"}
                                {if jrUser_is_logged_in() && $_user._user_id != $item._user_id && $item.action_shared_by_user != '1'}
                                    &bull; <a onclick="jrAction_share('jrAction','{$item._item_id}')">{jrCore_lang module="jrAction" id="10" default="Share This"}</a>
                                {/if}
                                {if $_post.module_url == $_user.profile_url && $item.action_shared_by_user == '1'}
                                    &bull; <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}">{jrCore_lang module="jrAction" id="26" default="shared by you"}</a>
                                {elseif $item.action_shared_by_count > 0}
                                    &bull; {jrCore_lang module="jrAction" id="24" default="shared by"} <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}">{$item.action_shared_by_count} {jrCore_lang module="jrAction" id="25" default="follower(s)"}</a>
                                {/if}

                                {* We do not show comment links on Follower entires *}
                                {if $item.action_module != 'jrFollower'}
                                    {if isset($item.action_original_item_comment_count)}
                                        &bull; <a href="{$item.action_original_item_url}">{jrCore_lang module="jrAction" id="22" default="Comments"}: {$item.action_original_item_comment_count}</a>
                                    {elseif isset($item.action_item_comment_count)}
                                        &bull; <a href="{$item.action_item_url}">{jrCore_lang module="jrAction" id="22" default="Comments"}: {$item.action_item_comment_count}</a>
                                    {/if}
                                {/if}

                            </span>
                            <br>

                            {* Mention *}
                            {if isset($item.action_mode) && $item.action_mode == 'mention'}

                                {$item.action_text|jrCore_format_string:$item.profile_quota_id|jrCore_strip_html|truncate:160}

                            {* Shared Action *}
                            {elseif isset($item.action_shared)}

                                {if strlen($item.action_text) > 0}
                                <div class="action_item_text">
                                    {$item.action_text|jrCore_format_string:$item.profile_quota_id}
                                </div>
                                {/if}

                                {if strlen($item.action_original_html) > 0}
                                <div class="action_item_shared">
                                    {$item.action_original_html}
                                </div>
                                {/if}

                            {* Activity Update *}
                            {elseif $item.action_module == 'jrAction' && isset($item.action_text)}

                                <div class="action_item_text">
                                    {$item.action_text|jrCore_format_string:$item.profile_quota_id}
                                </div>

                            {* Module Actions *}
                            {elseif isset($item.action_html)}

                                {$item.action_html}

                            {/if}

                        </div>
                    </div>

                </div>
            </div>
        </div>

    {/foreach}
{/if}

<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>
Strumelia
@strumelia
10/05/17 08:16:59AM
3,605 posts

How to limit size/number of profile timeline images?


Using Jamroom

michael:
Strumelia:.....
BTW, not sure if it has any bearing on this but....As master admin, ...... I also like the Admins to be able to see and use the "Add to Timeline" checkbox when we post items.....
Not an option sorry. Admin stuff done to a profile doesn't get put to the timeline by design. ( there are always ways around it if you MUST have it, but the reasoning is posting something as someone else was considered undesirable.)

I only meant that we Admins have (and would like to keep) the "add to timeline" checkbox when we post something within our OWN profiles... not applying it on other members' items or post edits. That's fine, right? I currently give the checkbox option only to Admins, but not to regular members- when reg members post something, it just always goes into the timelines by default the way i have it now.
I just wanted to be sure not to lose this checkbox option when fussing with the issues I've raised in this thread- problems #1 and #2.
updated by @strumelia: 10/05/17 08:18:07AM
Strumelia
@strumelia
10/05/17 08:13:26AM
3,605 posts

How to limit size/number of profile timeline images?


Using Jamroom

YES this has solved Problem #1- thank you! :) Now members will no longer be complaining about the "You do not have permission' errors.

Problem #2 still exists, however (after Integ checks and cache clearing). --When logged in as a regular member, both the "share this" link and the 'chainlink icon' button appear in both the main page Timeline and on Profile page timelines, as per my screenshot above... and they both lead to usable timelineupdate text input boxes. I'd like to get rid of both these pathways in the timelines.

michael:
For problem #1 go to
ACP -> MODULES -> PROFILES -> TIMELINE -> TEMPLATES -> create_entry_form.tpl -> MODIFY
And replace the entire contents with something like
{* gone, not using this.  dont want timeline written comments *}
save and activate. that will get rid of the comment area but leave the timeline active
Strumelia
@strumelia
10/04/17 04:10:11PM
3,605 posts

Groups: how to receive notification of new member applying for a private group


Ning To Jamroom

"...multiple admins so one person doesn't have all the responsibility for noticing who's joining, welcoming them to the group, encouraging discussions.."
-but one doesn't need to be any kind of Admin to easily be able to do any of those things.
I have about 6 members on my site who are volunteer "Greeters". As a kind of loosely knit team, they like to check in on new site members a couple times a week and they leave welcome comments on the new members' Profile page Comment Wall. Enough of them are around and doing this at any given time so that any new site member gets an average of three or so welcome comments within a day of joining my site. I think they must jot down the name of the last person they greeted, and they keep track of who is next when they go look in on the latest members page. Perhaps you could ask several members to volunteer being Greeters for a particular Group.
Such enthusiastic volunteers needn't be admins or even moderators... yet it's nice to acknowledge/reward their contributions in some way. My way is to devote a small widget on my site's main page thanking our "Welcome Wagon" members: https://fotmd.com/
Another way might be to place a modest label on their profile page or member avatar designating their 'status' as a greeter or site assistant. Just a couple of thoughts.
Strumelia
@strumelia
10/04/17 03:59:06PM
3,605 posts

Groups: how to receive notification of new member applying for a private group


Ning To Jamroom

I believe "Group Watch" is what a group member can click to activate it so that they get a notification every time there is a NEW DISCUSSION started in that Group. This is slightly different from 'following' a particular discussion and thus getting notified upon a new POST in that discussion.
  70