Forum Activity for @tig

TiG
@tig
23 Jan 2022 03:38:50PM
182 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
22 Jan 2022 07:59:33PM
182 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: 26 Apr 2022 02:56:56PM
TiG
@tig
19 Jan 2022 08:47:56AM
182 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
14 Jan 2022 09:57:17AM
182 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: 20 Apr 2022 02:58:05AM
TiG
@tig
13 Jan 2022 08:24:41PM
182 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
13 Jan 2022 08:00:41PM
182 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
13 Jan 2022 07:07:12PM
182 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
13 Jan 2022 05:02:50PM
182 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
TiG
@tig
13 Jan 2022 02:13:29PM
182 posts

Invoking View function from another View handler


Jamroom Developers

I have a need to create a new comment as part of the functionality of a menu item handler. So, essentially, this is a view handler that needs to 'invoke' another view handler.

Logically, I want to use the comment_save functionality to create the new comment so as to reuse the official mechanics for creating a new comment (similarly for deleting a comment). Ideally I would call a jrComment_create_comment() function but this does not exist. The only encapsulation of create mechanics is in the view function.

What approach would be best to create a new comment from another view function?
updated by @tig: 14 Apr 2022 09:57:44AM
TiG
@tig
04 Dec 2021 03:06:48PM
182 posts

Hook for server-based final validation of new comment


Jamroom Developers

Excellent because that is how I implemented this. Nice, clean server-based implementation.

Thanks Brian, TiG
1