Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Last Visitors - Don't log Moderator/Admin activity

9 years 9 months ago #261073 by davidmarshall15
The subject says it all, is it possible not to log profile view activity when a moderator or admin is viewing?

I want to avoid inserting rows into #__comprofiler_views for specific groups.

Can this be done with CB Auto Actions?

Thanks

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
9 years 9 months ago #261155 by krileon
No, you can't exclude them from logging. You can exclude them from displaying though. Edit Last Visitors within CB > Tab Management and under Parameters add a comma separated list of user ids to Exclude to exclude them from displaying.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

9 years 9 months ago #261196 by davidmarshall15
Replied by davidmarshall15 on topic Last Visitors - Don't log Moderator/Admin activity
Going to CB>Tabs>Last View, I dont have a Parameters tab on the Last Views Tab
I have the latest release versions of CB 2.0.7 and Last Views Plugin 3.0.2

Still not to worry, I run a small piece of perl every hour to delete the moderators out of the table and also compact the guest view, as in 1 row per profile viewed by guests rather than 1 row per guest.

I have no interest in storing IP's for guest views and prefer to keep the db running as efficiently as possible (says an Oracle DBA of 20 years experience)

If anyone is interested in the code, you will nee to replace the #_ with the prefix to your table names on multiple lines.
On line 15, you will need to update the group id's with the groups not to log OR remove 15,16 and 17 if you just want to compact the guests.
Line 64 needs updating for credentials, if possible use the method of storing the password in a separate secure file (filename starting with a . and has permissions 600)

You will need to be able to run perl on your host and a method to cron.
Code available here

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
9 years 9 months ago #261242 by krileon
Within CB > Tab Management > Last Visitors > Parameters you should see the "Exclude" parameter. There should be several parameters there (Total, Guests, Exclude, and Display Limit). If you don't see them the tab may have lost its plugin association, but I can't see how it'd even still work in that case unless its tab class still exists and is being loaded by something else.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum