Forum Activity for @tig

TiG
@tig
01/18/24 08:12:57AM
184 posts

Paged list of filtered users


Jamroom Developers

Michael

Much obliged. Basically, filter offline to get the count and then use that to establish a proper pager.

Thanks for the confirmation and a solution.

TiG
TiG
@tig
01/16/24 09:42:15AM
184 posts

Paged list of filtered users


Jamroom Developers

I am trying to display a paged list of users which includes only active, non-blocked, and good emails (per Kickbox). I can filter in the db query with 'user_active = 1' but if I try to include the other conditions (e.g. 'user_blocked != 1') the resulting join fails since the key 'user_blocked' is sporadic.

I have attempted to use a db_search_items_listener to perform the remaining filters but unfortunately this is triggered after the count is determined. Thus when I filter out the bad users (violating the count), the content runs out before the paging logic thinks it should.

I need a way to filter the content before the paging metadata is determined.

Looks to me as though there is no way to filter content in a paged display unless the filtering is done upfront in the db query itself. Is there a way to do this?
updated by @tig: 04/22/24 07:06:21AM
TiG
@tig
01/23/22 03:38:50PM
184 posts

PHP 8.0


Jamroom Developers

Brian and Douglas

Thanks for the response. I was asking because of the PHP 8 support changes I noticed in JR updates. I figured this meant that JR was PHP 8 ready and that the JR hosted servers would naturally follow.

I have no need to move to PHP 8. We (NewsTalkers) will be happy to wait until JR officially recommends PHP 8.

Thanks much,
TiG
TiG
@tig
01/22/22 07:59:33PM
184 posts

PHP 8.0


Jamroom Developers

Do we need to do something special to have PHP 8.0 support on JR hosted servers? I ask because in our development site (alpha) PHP 8.0 does not seem to be active. The function str_contains() for example is not found.
updated by @tig: 04/26/22 02:56:56PM
TiG
@tig
01/19/22 08:47:56AM
184 posts

PHP 8.0


Jamroom Hosting

Do we need to do something special to have PHP 8.0 support? I ask because in our development site (alpha) PHP 8.0 does not seem to be active. The function str_contains() for example is not found.
TiG
@tig
01/14/22 09:57:17AM
184 posts

PHP 8.0


Jamroom Hosting

Do we need to do something special to have PHP 8.0 support? I ask because in our development site (alpha) PHP 8.0 does not seem to be active. The function str_contains() for example is not found.
updated by @tig: 04/20/22 02:58:05AM
TiG
@tig
01/13/22 08:24:41PM
184 posts

Invoking View function from another View handler


Jamroom Developers

Michael

Okay, will keep that in mind as I continue. I have a potential workaround that lets me push the comment creation to the very last step and then deal with the JSON return comment_save provides.

Thanks,
TiG
TiG
@tig
01/13/22 08:00:41PM
184 posts

Invoking View function from another View handler


Jamroom Developers

Now if there were only a way to stop view_jrComment_comment_save from exiting. My calling view function does successfully invoke the functionality but never gets control back and thus it cannot clean up and return to its invoker. The call to jrCore_capture_module_view_function() completes successfully but never returns from comment_save.
TiG
@tig
01/13/22 07:07:12PM
184 posts

Invoking View function from another View handler


Jamroom Developers

Michael

Thanks for the confirmation. Makes me feel more comfortable that I am on the right track.

Thanks,
TiG
TiG
@tig
01/13/22 05:02:50PM
184 posts

Invoking View function from another View handler


Jamroom Developers

Michael

I could do it that way but I prefer to future-proof by using extant functionality. Especially since I need to do this to delete a comment too.

Anyway, it seems I can invoke view_jrComment_comment_save() using jrCore_capture_module_view_function(). The jrCore_run_module_view_function() does not work because it cannot find the view_jrComment_comment_save function. Apparently the desired view function needs to be explicitly loaded first.

So what I plan to do is use the create functionality embedded within view_jrComment_comment_save by invoking it using jrCore_capture_module_view_function().

Is this appropriate?

Thanks,
TiG
1