Forum Activity for @michael

michael
@michael
04/29/17 12:27:33AM
7,826 posts

Changing Domain name ?


Genosis

only general steps. (your instructions are bit hard to follow :) )

Docs: "HowTo: Change the jamroom directory or domain"
https://www.jamroom.net/the-jamroom-network/documentation/howto/1077/howto-change-the-jamroom-directory-or-domain

Docs: "Somethings wrong what do I do?"
https://www.jamroom.net/the-jamroom-network/documentation/troubleshooting/114/somethings-wrong-what-do-i-do

Probably the thing that will fix it is the "If you can not get into the ACP" step in the doc above:

Docs: "Somethings wrong what do I do: If you cant get into the ACP"
https://www.jamroom.net/the-jamroom-network/documentation/troubleshooting/114/somethings-wrong-what-do-i-do#if-you-cannot-get-in-to-the-acp

Run the repair.php script.
updated by @michael: 04/29/17 12:27:44AM
michael
@michael
04/27/17 07:11:26PM
7,826 posts

Custom Module Multi Language


Jamroom Developers

Add links to the page:
<a href="?set_user_language=es-ES">Spanish</a>
<a href="?set_user_language=en-US">English</a>
<a href="?set_user_language=fr-FR">French</a>

Docs: "Translate Jamroom into another Language"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/541/translate-jamroom-into-another-language#adding-flags-to-change-the-language

--
Most jamroom modules only come with the en-US.php because we dont speak any other languages. Those language files get scanned into the database so they can be changed in the ACP. You can either add another language file to your module, or do it via the ACP, same thing.

Related docs:
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/789/module-file-system-structure
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/783/jrcore-lang
michael
@michael
04/27/17 07:05:21PM
7,826 posts

Logging Out


Using Jamroom

I get logged out of jamroom.net sometimes too. Most days its fine. For a month or so a couple of months back I was logging in every day.

think it was because firefox was being updated, not sure. Its calmed down now and I've only had to login once in about a month.
michael
@michael
04/26/17 06:59:09PM
7,826 posts

Question about Facebook


Using Jamroom

That URL corresponds to the jrDiscussion module.

The jrDiscussion module does not have the item_detail_meta.tpl file to produce the og:tags.

I've added it to the next version, Version 1.1.0, which will be released when jr6.1 gets out of beta.
michael
@michael
04/25/17 11:51:31PM
7,826 posts

Question about Facebook


Using Jamroom

not really. got a URL?
michael
@michael
04/25/17 07:07:19PM
7,826 posts

How to delete one uploaded temp file but keep others from the same form?


Jamroom Developers

This works:

function jrUjPano_form_validate_exit_listener($_data, $_user, $_conf, $_args, $event)
{ global $_post; if (isset($_post['upload_token'])) { $_fl = jrCore_get_uploaded_media_files('jrGallery', 'gallery_image'); if ($_fl && is_array($_fl) && isset($_fl[0])) { foreach ($_fl as $_img) { // check it is 2:1 $_tmp = getimagesize($_img); $w = (int) $_tmp[0]; $h = (int) $_tmp[1]; if ($w / $h !== 2) { // it isn't an equirectangular image //jrCore_delete_upload_temp_directory($_post['upload_token']); unlink($_img); unlink($_img .'.tmp'); jrCore_set_form_notice('notice', "Invalid Equirectangular Image"); jrCore_form_field_hilight('gallery_image'); jrCore_form_result(); } else { } } } } return $_data; }
if you upload 2 images and one of them is 2:1 and the other not, you will be returned to the form and the message shown. If you immediately submit again the 2:1 image will still be attached and will be saved.

Suggest the message read something like "picture_of_a_cat.png was not 2:1 so has been removed from your list. Submit again to save remaining files."

OR just remove it and continue the submit saving all the 2:1 images and if there is a non-2:1 image save a temp value with jrCore_set_temp_value() and make a smarty function to check that set temp value and show a message on the landing page "all images that were not 2:1 have been removed"
michael
@michael
04/25/17 06:55:38PM
7,826 posts

How to delete one uploaded temp file but keep others from the same form?


Jamroom Developers

Along with unset($img) also try unsetting the one with the .tmp extension.

                    unlink($_img);
                    unlink($_img .'.tmp');
Got any images that are 2:1 that will pass. need some of those to test further. looking for myself now.
michael
@michael
04/25/17 06:37:39PM
7,826 posts

How to delete one uploaded temp file but keep others from the same form?


Jamroom Developers

First observation, your using $_post, but its not there without global $_post; which you dont have.

--edit--
yes you are, you're getting it on every itteration of the foreach loop. sorry, see it now. Outside the loop's probably better.
updated by @michael: 04/25/17 06:45:10PM
michael
@michael
04/25/17 06:09:47PM
7,826 posts

Question about Facebook


Using Jamroom

Hard to break down any more, I don't know the situation. Like what page you're trying to add it to.

Meta Tag module:
https://www.jamroom.net/the-jamroom-network/networkmarket/ss=meta
  229