Forum Activity for @michael

michael
@michael
03/05/19 01:30:50AM
7,823 posts

Error 500 - No Access


Using Jamroom

both.

As I understand it, the white page is caused by something in the jamroom system and its not really a 500 SERVER error.

The easiest recommendation from my end is: Use Jamroom Hosting, it works. ( you can create a server from here https://www.jamroom.net/michaelcawood/hosting/create )

But if you'd like me to check out your server to see if there is anything that jumps out at me as to why its not successfully running jamroom, I can do that if you send me your login codes.

Not promising to fix your server, just going to have a quick look to see if its anything obvious. My first guess would be: corrupt template file thats not been uploaded properly, second guess would be: check and manually clear the caches, third guess would be to try another default skin.
michael
@michael
03/03/19 02:10:52PM
7,823 posts

Error 500 - No Access


Using Jamroom

if you send the login details, I can login and take a look.
michael
@michael
02/25/19 11:39:53PM
7,823 posts

Download file name


Jamroom Developers

The "Magic View" that handles the /download/ url is directed to a function: view_jrCore_download_file().

Inside that function there IS an event firing that you can use the "Events and Listeners" system to listen for in your module, the event is 'download_file'

So if your module listens for that event, then when you return $_data if you have set:
$_data['download_file_name'] = "whatever_you_want.???"
That will set your file name.

You can see an example of a module using a listener for that event in the jrGallery module.

in the _init() function it does:
    jrCore_register_event_listener('jrCore', 'download_file', 'jrGallery_download_file_listener');
Then in the include.php file is that function jrGallery_download_file_listener() which looks like this:


/**
 * Watch for original image downloads
 * @param $_data array incoming data array
 * @param $_user array current user info
 * @param $_conf array Global config
 * @param $_args array additional info about the module
 * @param $event string Event Trigger name
 * @return array
 */
function jrGallery_download_file_listener($_data, $_user, $_conf, $_args, $event)
{ if (isset($_args['module']) && $_args['module'] == 'jrGallery') { if (!isset($_conf['jrGallery_download']) || $_conf['jrGallery_download'] != 'on') { header('HTTP/1.0 403 Forbidden'); header('Connection: close'); jrCore_notice('Error', 'you do not have permission to download this file'); exit; } } return $_data; }

for you, you'd adjust the internals to get the name right.
michael
@michael
02/25/19 07:01:49PM
7,823 posts

Filesize issues.


Using Jamroom

Probably because the valid image sizes for display via the image system are:
image size - must be one of: xxsmall,xsmall,56,small,icon96,icon,medium,large,larger,xlarge,xxlarge,xxxlarge,1280,original

So since the images are being re-processed excessively large files would take up more space on the server.

I've got a tracker open on adding extra sizes.
michael
@michael
02/25/19 06:27:37PM
7,823 posts

Filesize issues.


Using Jamroom

Thats it though, change it and you'll see the warning message size change.

How big do you need it to go up to?
michael
@michael
02/25/19 05:45:10PM
7,823 posts

New Custom Account Tab


Jamroom Developers

This is how the jrAudio module registers with the form designer in its _init() funtion in include.php

    // Allow admin to customize our forms
    jrCore_register_module_feature('jrCore', 'designer_form', 'jrAudio', 'create');
    jrCore_register_module_feature('jrCore', 'designer_form', 'jrAudio', 'update');
    jrCore_register_module_feature('jrCore', 'designer_form', 'jrAudio', 'create_album');
    jrCore_register_module_feature('jrCore', 'designer_form', 'jrAudio', 'update_album');
The last parameter is the name of the form, the same as the URL its on, so for you that looks like 'custom'.

Maybe if you have the $_profile_id you can store your info in your datastore on that, then look up to see if it exists when the form is visited.
michael
@michael
02/25/19 05:36:53PM
7,823 posts

New Custom Account Tab


Jamroom Developers

This code that you have in your _init() should be making the title appear:
jrCore_register_module_feature('jrUser', 'account_tab', 'myCustomModule', 'custom', 1);
What is the language string for 1? that should be the title. Maybe hard code it
jrCore_register_module_feature('jrUser', 'account_tab', 'myCustomModule', 'custom', "your title");
michael
@michael
02/25/19 05:32:20PM
7,823 posts

Filesize issues.


Using Jamroom

try
ACP -> MODULES -> CORE -> IMAGE SUPPORT -> QUOTA CONFIG -> MAX IMAGE FILE SIZE
img_size.jpg img_size.jpg - 274KB
michael
@michael
02/25/19 05:24:03PM
7,823 posts

Filesize issues.


Using Jamroom

Its not clear where the upload is being uploaded to. Is it album art, or a comment attachment. Could be its governed by a different setting. Its not a server issue though, its a jamroom setting.
  94