Forum Activity for @michael

michael
@michael
04/17/20 06:46:58PM
7,816 posts

JrBirthday causing SSL error on page


Jamroom Developers

The cause of the ssl error is the http:// You need to figure out why one item is behaving differently than the others.
michael
@michael
04/15/20 06:34:05PM
7,816 posts

enabled APC functions on server


Using Jamroom

Its used by PHP.

PHP Manual: APC ("Alternative PHP Cache")
https://www.php.net/manual/en/book.apc.php

Information about it:

"What is APC and what is it used for?"
https://pantheon.io/docs/alternative-php-cache
Quote: .....APC stands for the Alternative PHP Cache. PHP is a dynamic language that is compiled on-demand into bytecode at execution time. To improve performance, APC stores this bytecode so that it can be reused instead of having to be recompiled each time......

updated by @michael: 04/15/20 06:34:46PM
michael
@michael
04/15/20 04:48:17AM
7,816 posts

JrBirthday causing SSL error on page


Jamroom Developers

In your sites config.php file found via SFTP at:
/public_html/data/config/config.php

what is configured for jrCore_base_url
$_conf['jrCore_base_url'] = 'http://itembo.com';

is it http:// or https://

The jrBirthday template that is in use with that image is birthday.tpl

It looks to be using the correct variable {$jamroom_url} which should match your sites config.php file.

You can customize that file either from the TEMPLATES tab in the ACP or by copying it to your skins
/skins/xxYourSkin/jrBirthday_birthday.tpl
and adjusting it there.

The cause of the error is the path to the file should be https:// but it is http://
michael
@michael
04/13/20 07:30:16PM
7,816 posts

error loading media url


Using Jamroom

The url from the video in your link points to:
https://www.dreadlockssite.com/uploaded_video/stream/video_file/375/file.m4v

The error reads 503 Service Unavailable when trying to access it. That error is not coming from jamroom.

Check the server logs to see if it has any clues as to what the error is complaining about.

--edit--
the video just before that one, does play for me:
https://www.dreadlockssite.com/uploaded_video/stream/video_file/374/file.m4v

--edit--
And the one after plays too:
https://www.dreadlockssite.com/uploaded_video/stream/video_file/376/file.m4v
updated by @michael: 04/13/20 07:32:22PM
michael
@michael
04/13/20 07:26:45PM
7,816 posts

Javascript Form Message


Jamroom Developers

You could use the .form_submit_box element and add your own div in there
function xxSomething_show_error_message(){
    $('.my_error_message').remove();
    $('.form_submit_box').prepend('<div class="my_error_message page_notice error">Some message before the SUBMIT button</div>');
}

Usually there will only be one form on a form page and only one submit button. This way would run into difficulties if there were more than one form on the page, only the first form would get the message.

If its on the skin side of things then thats open to customization so harder to have a fixed setup.

I don't think there is anything specific setup as a do-it-this-way guide on this subject.
michael
@michael
04/13/20 03:36:40PM
7,816 posts

Javascript Form Message


Jamroom Developers

If you're talking about in a form then you can use the 'error_msg' parameter to define your own custom message, eg:
    $_tmp = array(
        'name'      => 'profile_id',
        'label'     => 'profile name',
        'type'      => 'live_search',
        'help'      => 'Select the profile to reset the business settings for',
        'validate'  => 'not_empty',
        'required'  => true,
        'error_msg' => 'You have selected an invalid Profile - please try again',
        'target'    => jrCore_get_base_url() . "/{$_post['module_url']}/search_business_profiles"
    );
    jrCore_form_field_create($_tmp);

if you're talking about an alert style thing then:
jrCore_alert('this is an alert message, but pretty')

You've said JAVASCRIPT so you probably dont want
// set a notice in php
 jrCore_set_form_notice('error', 'invalid something');
// get any notices that were set
 jrCore_get_form_notice();
any of that useful, im not sure.
michael
@michael
03/27/20 09:36:53PM
7,816 posts

Downloading web image directly into a media file


Jamroom Developers

Take a look at the jrUrlScan module, it sounds similar to what you're after. It scans text to look for URL's and if it finds one it queues it up to have that page checked for any og:tags in the page in order to get images and info out of that location. The images are then saved locally.

The function that does the getting is jrUrlScan_update_url_card() in the include.php file.
michael
@michael
03/24/20 01:51:36PM
7,816 posts

How do I make custom modules show to all users ?


Using Jamroom

In your screenshots the 'logged in as user' screenshot shows no menu AT ALL. Its not just the 2 menu items you're interested in, the entire menu is not there for that user.

Check it on a non-customzed skin.
updated by @michael: 03/24/20 01:52:45PM
michael
@michael
03/20/20 12:57:43PM
7,816 posts

How do I make custom modules show to all users ?


Using Jamroom

I can see that url when logged out.

--edit--
Try changing to a standard jamroom skin and see if you can see it then.
updated by @michael: 03/20/20 01:02:53PM
  72