how to keep "Now following" out of "latest activity" feed on main page

Deb W.
Deb W.
@deb-w
8 years ago
136 posts
We have a "latest activity" feed in a widget on our main page. It's working pretty well... except our members don't want us to have it include "So&So is now following Betty". They don't want it announced every time they follow someone.

For that widget, I'm using the Combined List (including Comments, event calendar, forum, timeline and all the video modules).

So is there a way to keep these from popping up?
updated by @deb-w: 01/27/17 11:50:55PM
joanna
@joanna
8 years ago
88 posts
Hi :)

In List Options, in Search 1 choose "action_module" does not equal jrFollower.

I hope this tip will help you, we use it and it works.
Deb W.
Deb W.
@deb-w
8 years ago
136 posts
Hmmm.... the problem is that I'm using the Combined List, not the regular List. And I don't have that search option.

But I'm thinking that, if I make everything mandatory to post on the timeline, then I can do my list from the timeline and use that search option... what do think? think that would accomplish what I want?
joanna
@joanna
8 years ago
88 posts
Oops, sorry ... I thought it is visible.

So, maybe in your skin in index.tpl you can make changes.
I see something like that (it's around line 345):

 {jrCore_list module="jrAction" search1="action_module != jrFollower" order_by="_item_id numerical_desc" pagebreak=7 page=$_post.p pager=true pager_template="index_activity_pager.tpl"}          

updated by @joanna: 10/27/16 11:05:56AM
Strumelia
Strumelia
@strumelia
8 years ago
3,603 posts
In addition to removing the "following" notices from my main page activity feed (soooo boring!), I also eliminated profle page comments. Your sites may be different, but I have like 6 or 8 "greeters' who welcome new members with a friendly greeting on their profile page comment wall. It makes new members feel at home, but it would be excruciating to have 20 or 30 variations of "Hi ___, welcome to our friendly site! Glad you could join us!"... every day on the activity feed. Plus many profile page comments tend to be somewhat personal, like "Just stopping by Bob- it was great to meet you and your husband at the festival on thursday." Don't need those on the main page either. Just a thought since you're removing the 'following' notices.

Deb, do you have an index_activity_pager.tpl ? If not, then Joanna's code might not work, because it refers to it. In that case you could try my code there in your skin's Index instead, since mine refers simply to index_activity.tpl



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

updated by @strumelia: 10/27/16 03:31:03PM
joanna
@joanna
8 years ago
88 posts
Strumelia, where can I find your code? I think I saw it somewhere, but now I cannot find it.
I'm interested in removing profile page comments.
Strumelia
Strumelia
@strumelia
8 years ago
3,603 posts
Joanna, I'm not absolutely sure, but pretty sure it's this code that removes both the 'following' mentions and the personal 'comments' on people's profile pages.
in my active skin's index.tpl :

            {* BEGIN Activity Section *}
            <div class="col8">
                <div class="title m10">
                    <h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="20" default="Latest"} {jrCore_lang skin=$_conf.jrCore_active_skin id="27" default="Activity"}</h2>
                </div>
                {***jrCore_list module="jrAction" search1="action_module != jrFollower" search2="action_data NOT_LIKE %\"comment_module\":\"jrProfile\"%" order_by="_item_id numerical_desc" template="index_activity.tpl" pagebreak=50 page=$_post.p***}
                {jrCore_list module="jrAction" search1="action_module != jrFollower" order_by="_item_id numerical_desc" template="index_activity.tpl" pagebreak=60 page=$_post.p}
            </div>
            {* END Activity Section *}

--You'd have to make adjustments in the above for the column width and pagebreak length for your site's main page.
Hope it works for you!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
8 years ago
7,714 posts
Copy+pasting code from a forum comes with issues. Its better to construct it yourself on your site. Strumelias code may work for her site, but it may-not work for yours joanna.

Things in strumelias code that exist on her site that may cause it not to work on yours:
<h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="20" default="Latest"} ..........
For strumelias site the language for her skin #20 is Latest, but if you put that into your site and your language file wasnt exactly the same as hers you will get YOUR #20 which could be "biscuts" or "Enter your Name" or anything else.

The code that is doing the heavy lifting is {jrCore_list}

Docs: "{jrCore_list}"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/89/jrcore-list

and on strumelias site its
{jrCore_list module="jrAction" search1="action_module != jrFollower" order_by="_item_id numerical_desc" template="index_activity.tpl" pagebreak=60 page=$_post.p}
which is requesting the file index_activity.tpl which exist in the currently active skin. If your skin does not have that file, you will get an error.

A safer way to go is to start with a small query then keep adding to it until you get what you want:
 {jrCore_list module="jrAction"}
view the page, see how it looks, then adjust
 {jrCore_list module="jrAction" search1="action_module != jrFollower" }
view the page, see how it looks, then adjust
 {jrCore_list module="jrAction" search1="action_module != jrFollower" order_by="_item_id numerical_desc"}
.......
updated by @michael: 10/28/16 06:30:42PM
paul
@paul
8 years ago
4,326 posts
Just to add that when doing what Michael suggests, put your site into 'Developer Mode'. It'll run a bit slower but you'll be able to see your template changes immediately as caching is disabled.


--
Paul Asher - JR Developer and System Import Specialist
joanna
@joanna
8 years ago
88 posts
Thanks for your suggestions.
I'm using the Site Builder and hope soon I'll be able to get it works on our home page.
Strumelia
Strumelia
@strumelia
8 years ago
3,603 posts
Michael- thanks for your very informative post! As an older non-coder, I'm learning step by step as well, and the Doc you linked to for "{jrCore_list}" info is now on my priority reading list...looks very helpful for me. :D



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

updated by @strumelia: 10/29/16 09:52:47AM
michael
@michael
8 years ago
7,714 posts
If you flick through the skin templates, you will see {jrCore_list} everywhere. Its a good one to get familiar with.

In Site Builder there is the "Item List" widget which has a form to help you construct a {jrCore_list} call, it shows you the code that is running after you have finished filling out the form. Thats useful when you're learning it.