Forum Activity for @michael

michael
@michael
12/21/20 02:52:37AM
7,791 posts

Activiy Log Watcher - seeking advice for how to use this


Using Jamroom

Some ideas:
* If you wanted to know when one of your users posts a new blog post. (so you could go check it)
* If you wanted to know if any forum posts were deleted by your staff. (so you could ask them about why it was deleted)
* if you wanted to know when someone downloaded a specific thing. (that shows up as a log entry)
* if you wanted to keep an eye on the specific activities of one email address.
* if you have something like this "Payments: Stripe has transferred $50 to the active bank account".

What it does is when your conditions match it sends you an email to tell you that it happened.

So scan your activity log for things you're interested in.
michael
@michael
12/20/20 09:22:54PM
7,791 posts

Activiy Log Watcher - seeking advice for how to use this


Using Jamroom

I think the module was created to allow developers greatest space of movement in that 'How' its supposed to be used is left to them.

Think the premise is: The activity log exist, it contains stuff, if you want to do stuff when stuff is put there, use this module.

There already exists a feature to log "Page Not Found" to the activity log, its at
MODULES -> CORE -> SYSTEM CORE -> ACTIVITY LOG -> log 404 Not Found

Turn that on and you'll see any URL that a customer lands on that results in a Not Found error.

Be aware that bots scan sites so you'll probably see a lot of:
 your-site.com/xml_rpc.php
type urls and others that just dont make sense like
 your-site.com/wp_admin
This is bots guessing that your site might be 'Wordpress' or 'Drupal' and if it is, then they will try to run through a list of known attacks for those systems.

The way a developer might use it could be to add a log to the activity log:
jrCore_logger('MAJ', 'Something happened that I want to know about');
Then use the module to watch for that and notify the developer when it does.
michael
@michael
12/20/20 09:11:57PM
7,791 posts

phone version of tinymce text editor is limited?


Using Jamroom

That doesn't make sense.

--
I'm logged in as 'Chifmunk' on pennywhistle and do see the editor in the iPhone 8 simulator. Screenshot
chifmunk.jpg chifmunk.jpg - 160KB
michael
@michael
12/20/20 08:04:05PM
7,791 posts

phone version of tinymce text editor is limited?


Using Jamroom

It could be that something else is needed, im concerned that the:
...... disable_override=true}
is blocking it from working.
active.jpg active.jpg - 1.4MB
michael
@michael
12/20/20 06:12:44PM
7,791 posts

phone version of tinymce text editor is limited?


Using Jamroom

Looks like the details I have to login to your site as an admin user still work, is it OK for me to make the changes?

--edit--
On a side note, you have a lot of videos of playing the dulcimer, have you seen this software: soundslice.com

I've been using it to learn guitar and love the format of the keeping the score in time with the video so I can watch the finger movements. It can be integrated into websites and yours looks like a perfect fit if teaching songs is part of your sites goal.

--edit edit--
Attached a screenshot of the forums item_detail still showing the mobile block
mobile.jpg mobile.jpg - 2.9MB

updated by @michael: 12/20/20 06:22:15PM
michael
@michael
12/19/20 07:58:43PM
7,791 posts

phone version of tinymce text editor is limited?


Using Jamroom

That piece of code reads
* disable the side bar
then
* include the default item detail template

So your over-ride is overriding the default then including the default again after its turned off the side bar.

Fist thing to try is in the ACP -> MODULES -> (i forget the category, sorry) -> FORUM -> TEMPLATES -> item_detail.tpl -> MODIFY

Try adding HERE I AM!!! WHERE DOES THIS COME OUT?????, then SAVE
and see if that text appears on the forums location.

It might not because disable_override=true is set, but if it does then thats where to change. If it takes too long send the login details to support at jamroom ATTN; michael and along with a link to this thread and I'll get it fixed up.
michael
@michael
12/17/20 11:10:48PM
7,791 posts

Issue Tracker - Feature Request - External Bug Tracker Integration


Jamroom Developers

There's no reason you couldn't copy the jrTracker's function ( view_jrTracker_vcs_webhook() ) into your own module and use that to define your own triggers and actions.

The body of the view_jrTracker_create_save() function is the one that does all of the ticket creation so all the code needed to generate a ticket can be found in there. If you wanted to go that way.

That said, brian wrote the module so I've left a note for him to come take a look at this thread. He might want to include that in the module itself.
michael
@michael
12/15/20 07:55:33PM
7,791 posts

Block and unBlock of a User


Jamroom Developers

Changed the body of view_jrUser_block_save() to

    // Block a User
    if ($_post['mode'] == 'b') {
        jrUser_block($uid);
    }
    else {
        // UN-blocking a user
        jrUser_unblock($uid);
    }
from jrUser 2.9.3. Just needs to pass testing then will be in the next release.
michael
@michael
12/15/20 07:43:04PM
7,791 posts

Block and unBlock of a User


Jamroom Developers

The view_jrUser_block_save() function was added in 2016 and nothing has changed with it since. I think you'd be pretty safe copy+paste the innards to set the block.

SET THE BLOCK:
        // When blocking a user we set BOTH user and profile inactive and remove any sessions
        jrCore_db_update_item('jrUser', $uid, array('user_active' => 0, 'user_blocked' => 1));

        // Delete existing session and login cookie
        jrUser_session_remove($uid);

        $tbl = jrCore_db_table_name('jrUser', 'cookie');
        $req = "DELETE FROM {$tbl} WHERE cookie_user_id = '{$uid}'";
        jrCore_db_query($req);

        // Next - we need to get ALL profiles this user is linked to abd block the profiles
        $_pr = jrProfile_get_user_linked_profiles($uid);
        if ($_pr && is_array($_pr)) {
            foreach ($_pr as $pid => $user_id) {
                jrCore_db_update_item('jrProfile', $pid, array('profile_active' => 0));
                jrProfile_reset_cache($pid);
            }
        }

REMOVE THE BLOCK:

        // UN-blocking a user
        jrCore_db_update_item('jrUser', $uid, array('user_active' => 1));
        jrCore_db_delete_item_key('jrUser', $uid, 'user_blocked');

        // Next - we need to get ALL profiles this user is linked to abd block the profiles
        $_pr = jrProfile_get_user_linked_profiles($uid);
        if ($_pr && is_array($_pr)) {
            foreach ($_pr as $pid => $user_id) {
                jrCore_db_update_item('jrProfile', $pid, array('profile_active' => 1));
                jrProfile_reset_cache($pid);
            }
        }

If you're still feeling real nervous about it I'm sure we could separate those sections out into their own functions for next release.

--edit--
Actually, doing that is trivial, I'll get it added.
updated by @michael: 12/15/20 07:45:43PM
michael
@michael
12/14/20 06:27:23PM
7,791 posts

Any Override Options?


Jamroom Developers

You can over-ride a specific comment by use of a function, eg:
/somebody/comment/23
can be specifically addressed by creating a function:
profile_view_jrComment_23()
but I don't think that's what you're after here, you just want to run some type of catch to see if its a bot and throw it out if it is, so anywhere before the profile_view_jrComment_default() fires will work.

There's a listener that fires just before profile_view_jrComment_default() in the flow of things, its
'profile_data'

That looks to be the closest event.
  52