Skip to:
Content
Pages
Categories
Search
Top
Bottom

Shortening Time Interval


  • ericreynolds007
    Participant

    @ericreynolds007

    Within the bp-core-classes.php file, can I adjust the meta_value for ‘where online’ to less than a minute interval?

Viewing 4 replies - 1 through 4 (of 4 total)
  • function bp_core_record_activity() {


    ericreynolds007
    Participant

    @ericreynolds007

    Thank you Rich. I appreciate it. I am not a coder, so I am learning with baby steps.

    To clarify, where exactly would I add “function bp_core_record_activity() {“?

    And, by default, does this command record activity continuously? Or do I have to put a value of 30 SECONDS in between ()?”

    Thanks in advance!

    Eric

    you’ll need to modifying that core function to adjust the time interval – there is no hook to change this via plugin or an easy way.


    jivany
    Participant

    @jivany

    Eek. Just realize if you edit a core file it will get lost when you upgrade to the next BP version. Editing core files is never a recommended solution.

    Open a ticket if you need this code to have a user definable time period.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortening Time Interval’ is closed to new replies.
Skip to toolbar