Forum Activity for @michael

michael
@michael
03/31/18 08:00:37PM
7,820 posts

Is a chameleon my code buddy?


Off Topic

Sorry guys, broke the banister and stole your chameleon. Hope you had a great skiing holiday. :)

He's super cute!! nab him.
michael
@michael
03/31/18 01:18:02PM
7,820 posts

Ackk!- private uploaded images now showing in text editor's upload image preview!


Using Jamroom

I've disabled the feature in your
ACP -> MODULES -> FORMS -> EDITOR IMAGE UPLOAD -> TEMPLATES -> jrEmbed_item_list.tpl -> MODIFY

File and commented out the section that shows the images. No images are currently showing in the UPLOAD AN IMAGE tab.

That should douse the fire until I can figure out what the actual cause of the issue is.
michael
@michael
03/31/18 01:09:59PM
7,820 posts

Ackk!- private uploaded images now showing in text editor's upload image preview!


Using Jamroom

can you send me your regular members login details to support at jamroom please. I'm not able to reproduce the situation here.
michael
@michael
03/31/18 12:52:53PM
7,820 posts

Ackk!- private uploaded images now showing in text editor's upload image preview!


Using Jamroom

It should only show images you've uploaded, or all to the admin.

Checking it out now. Sorry for the stress.
michael
@michael
03/30/18 09:17:26PM
7,820 posts

Why are all signups and logins showing in Timeline for the site?


Using Jamroom

I'm not seeing login and signup events being recorded to my development system.

Anyhow, if you are the output for the actions to the timeline is controlled by the same as all the other list building systems {jrCore_list}.

Docs: "jrCore_list"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/89/jrcore-list

so you can filter out what you dont want in any location. The template that controls the activity list on the persons profile is the item_index.tpl file for the jrAction module.

Check your skin for an jrAction_item_index.tpl file first, if its not there then use another method to override the modules template.

Docs: "Altering a modules template"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1051/altering-a-modules-template
michael
@michael
03/30/18 08:33:49PM
7,820 posts

jrCore_page_set_no_header_or_footer breaks javascript added to form in modal


Jamroom Developers

yes. Why yes there is. :)
jrCore_page_set_meta_header_only();

--edit--
You might find this useful too perhaps:
    $html = "
    <script>
        $(document).ajaxSuccess(function (event, request, settings, data) {
            if(typeof(data.form_name) != \"undefined\" && data.form_name == 'ajax_create_save') {
                jrSeminar_load_calendar('seminar_calendar_box', 'current');
            }
        });
    </script>";
    jrCore_page_custom($html);

    jrCore_page_display();

"After that bit of ajax finishes loading, fire this function......." because on.document.ready doesnt work for ajax loaded content. send the form name back with the json_response:

......
    jrCore_form_delete_session();
    jrUser_reset_cache($_user['_user_id']);
    $_resp = array(
        'form_name'   => 'ajax_create_save',
        'success'     => 1,
        'success_msg' => "the new seminar got created"
    );

    jrCore_json_response($_resp);

updated by @michael: 03/30/18 08:38:52PM
michael
@michael
03/29/18 04:39:33PM
7,820 posts

Setting cross origin on images using jrImage_display


Using Jamroom

Its already in the next version of jrImage. That version 2.0.9 has been released to the marketplace. You can use it now.
michael
@michael
03/29/18 04:27:53PM
7,820 posts

Setting cross origin on images using jrImage_display


Using Jamroom

Pretty sure thats what you want. Its in jrImage 2.0.9 which is in the marketplace now. Update and you can use like this:
{jrCore_module_function function="jrImage_display" module="jrSeminar" type='seminar_image' item_id=201 size="medium" class="img_scale" alt="seminar poster" crop="16:10" crossorigin="allowed"}
michael
@michael
03/29/18 04:21:15PM
7,820 posts

Setting cross origin on images using jrImage_display


Using Jamroom

could you confirm this looks correct please. If yes, it will be in the next version of jrImage.
origin.jpg origin.jpg - 70KB

updated by @michael: 03/29/18 04:21:28PM
michael
@michael
03/29/18 04:16:08PM
7,820 posts

Setting cross origin on images using jrImage_display


Using Jamroom

Its possible right now to add in the crossorigin="anonymous" via a listener on the 'img_src' event.

Looks like as a param is not supported at the moment. May be easy to add though, still looking.
event.jpg event.jpg - 226KB
  137