Forum Activity for @tig

TiG
@tig
12/15/20 08:40:12AM
184 posts

Block and unBlock of a User


Jamroom Developers

Just checking in case I missed it. We have a need to programmatically issue a block and optionally an unblock of a user. The objective is to ensure a suspended user (suspension is an NT function) can no longer access their account settings and change their name, etc. The block function conveniently does that (and more) by preventing signin.

Trouble is, the active function that implements the block and unblock is embedded within view_ code. Thus it is not a function we can call. Accordingly, I would need to reproduce the embedded functional code instead of making a call. This is of course undesirable since a change in implementation might break our code.

Is there a better approach that would enable me to reuse the block / unblock functionality without duplicating the code?
updated by @tig: 03/18/21 05:17:26PM
TiG
@tig
12/14/20 06:31:57PM
184 posts

Any Override Options?


Jamroom Developers

Thanks Michael, I will check into this.
TiG
@tig
12/14/20 05:02:06PM
184 posts

Any Override Options?


Jamroom Developers

We have bots issuing expensive queries; I have been addressing them one at a time. However, one of these queries is not gracefully addressed. This query occurs when a bot issues a URL of the form: .../{profile}/comment/{cid}

This invokes:
function profile_view_jrComment_default($_profile, $_post, $_user, $_conf) 
which, among other things, checks for privacy with this code:

// We have private comments for this module - get comments attached to items
                        $_sp = array(
                            'search'              => array(
                                'comment_item_id in ' . implode(',', $_ids["{$_rt['comment_module']}"]),
                                "comment_module = {$_rt['comment_module']}"
                            ),
                            'return_item_id_only' => true,
                            'skip_triggers'       => true,
                            'privacy_check'       => false,
                            'ignore_pending'      => true,
                            'quota_check'         => false,
                            'order_by'            => false,
                            'limit'               => 1000000
                        );

                        $_sp = jrCore_db_search_items('jrComment', $_sp);

The above query turns out to be rather expensive on our system given the number of groups and group comments we have.

I would like to disallow access to URLs of this form by bots. Is there a recommended way to accomplish this? I suppose I can resort to a parse_url_listener but I figured I would check with you folks before doing that to ensure that is the right course of action.

Thanks ... TiG
updated by @tig: 03/15/21 02:24:14AM
TiG
@tig
09/03/20 03:56:43PM
184 posts

User automatically logged out


Jamroom Developers

Thanks Douglas and Strumelia.

I was checking here to see if this is a new 'feature'. Looks like it is indeed most likely a user-specific issue. Will check on the cookies. :) Thanks both.
TiG
@tig
09/03/20 11:25:55AM
184 posts

User automatically logged out


Jamroom Developers

One of our users is getting logged out of our Jamroom site when she closes her browser tab on her desktop or notebook computers. This is new behavior, per the user.

Note: her login is stable if she does not close the browser tab.

Any hints on where I might start looking to figure out why this user is having this problem?
updated by @tig: 12/02/20 04:37:01PM
TiG
@tig
06/02/20 01:03:04PM
184 posts

Deleting Unwanted Skins


Jamroom Developers

Paul and Douglas

Thanks to you both.
TiG
@tig
06/02/20 11:07:17AM
184 posts

Deleting Unwanted Skins


Jamroom Developers

We have a number of unused skins on our site.

I plan to delete them via the ACP but need to ask this question:

Is there any possibility of affecting the site if I delete an inactive skin?

The answer is no doubt 'no' but I would like to verify same.
updated by @tig: 08/31/20 06:50:20PM
TiG
@tig
06/01/20 11:31:06AM
184 posts

Extending jrCore Icons


Jamroom Developers

Brian

That is what I initially did. Looks like the browser cache messed me up.

Thanks
TiG
@tig
06/01/20 11:12:43AM
184 posts

Extending jrCore Icons


Jamroom Developers

I know we can extend (and override) the core icons by including the appropriate files in the icon_black and icon_white folders in a skin's img folder.

Is there a likewise easy means to add new icons through a module?

In particular, I have a module that would like to introduce and then use a new icon (as if the icon were part of the core set).

Thanks.
updated by @tig: 08/31/20 07:55:36AM
TiG
@tig
04/28/20 03:17:08PM
184 posts

Fixing Errant HTML Content


Jamroom Developers

Brian

I have done extensive testing using
jrUrlScan_get_url_with_wget()
vs. cURL and it seems to be working perfectly. I am now able to access Forbes, et. al. content rather than dealing with a 403 error. Bloomberg remains inaccessible but 9x% of the sites NT uses seem to be within reach.

Nicely done!

Thanks again,
  3