solved Activity Timeline Question

derrickhand300
@derrickhand300
6 years ago
1,353 posts
I have added the activity timeline to my HOME page
I want to control whats displayed there
I would like to removed
USER LOGGED IN
USER JOINED
stuff like that and just have photos videos posts and comments shown in the timeline
How can i achieve this?
Thanks
updated by @derrickhand300: 08/22/18 12:18:17AM
nate
@nate
6 years ago
917 posts
Just add a search parameter.

 search="action_mode != login"
paul
@paul
6 years ago
4,331 posts
You can turn timeline entries for login and signup off in the User module


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
6 years ago
3,603 posts
Oh cool, under quota config there! Never noticed it because my default was for 'off' anyway.
Thanks Paul, I learn something new every day!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
derrickhand300
@derrickhand300
6 years ago
1,353 posts
Thanks paul- that would be easiest
I see the option for turning off "sign up" but cannot find the option for "log in"
Please help
updated by @derrickhand300: 05/19/18 10:46:01AM
Strumelia
Strumelia
@strumelia
6 years ago
3,603 posts
Curtis, the function controls BOTH together, as per the Help text:

"If this option is checked, when a user signs up or logs in to this quota, the action will be added to the timeline."


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
derrickhand300
@derrickhand300
6 years ago
1,353 posts
Thank you- yes i saw that...but after checking the box and then clearing cache all the sigh ups are removed from my timeline but the Log in entries are still there?
Maybe they have to be deleted in the datastore?
Strumelia
Strumelia
@strumelia
6 years ago
3,603 posts
Curtis, you can adjust your index_activity_list template.
First, see if you have that template in your custom skin... if so, then adjust that one. If not, then adjust that template in your jrAction module.
In my skin, I have it set so that two things do NOT show up in the main page activity feed: when someone 'follows' someone else, and when someone leaves a comment on another member's profile page. (I have lots of "welcome to the site!" comments)
So, my skin's template omits those things from the activity feed by adding:
{jrCore_list module="jrAction" search1="action_module != jrFollower" search2="action_module != jrComment"
to the skin's index_activity_list.
You could add something like Nate's above suggested search parameter there, using his "login" code example.

That said, logins do not show up on my main page activity feed to begin with, so I'm not sure how your site and mine differ in that way. There must be something else making them show up on yours. But perhaps that code will stop them showing regardless of the cause.


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

updated by @strumelia: 05/19/18 11:40:45AM
brian
@brian
6 years ago
10,148 posts
You will get better performance by changing this:

{jrCore_list module="jrAction" search1="action_module != jrFollower" search2="action_module != jrComment"

To this:
{jrCore_list module="jrAction" search1="action_module not_in jrFollower,jrComment" ignore_missing=true

the "not_in" operator takes a comma separated list of values to match.

The "ignore_missing" key is a special key that is only needed on !=, not_like and not_in operators (basically negating operators) that can be added to tell the core that it can ignore any items that do NOT have the key you are searching on, otherwise the core has to include any items that are missing the key you are searching on (since those items "do not match").

Basically anywhere we can cut down the number of separate search conditions will always result in a higher performing query.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 05/19/18 11:52:01AM
Strumelia
Strumelia
@strumelia
6 years ago
3,603 posts
Great! Thanks Brian.
So... my new line of code will eliminate the need to even say "search2=..." and will combine both things to hide from the activity feed?
I'll make this code change and test it. :)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
6 years ago
10,148 posts
Yep - exactly. You can string as many values as you want on the not_in - i.e.

action_module not_in jrFollower,jrComment,jrLike,jrAudio,jrVideo,...

So you're not just limited to 2 values - you can have 20 if you want.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 05/19/18 12:05:53PM
Strumelia
Strumelia
@strumelia
6 years ago
3,603 posts
Ok I made this code change and tested it- it's working. Thanx much!
P.S. can Curtis add his 'login' value in there among the comma list to not let 'login' actions show on his main page feed as well? What exactly would he add in the comma-separated values?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
derrickhand300
@derrickhand300
6 years ago
1,353 posts
Thank you both!

Tags