Forum Activity for @nate

nate
@nate
08/06/14 09:54:59AM
917 posts

jrTips


Jamroom Developers

Quote: I created a tips file for a custom module I got it to working but it only shows up for the admin.

My question is why is it only showing up for the admin. My selector is not changing.
nate
@nate
08/06/14 07:33:19AM
917 posts

jrTips


Jamroom Developers

But there are no quota settings. I'm not understanding why EVERYONE isn't seeing the tour. I'm confused by this group thing. What's the purpose?
nate
@nate
08/05/14 08:08:08PM
917 posts

jrTips


Jamroom Developers

So why are users not seeing the tour but the admin is?
nate
@nate
08/05/14 06:27:24PM
917 posts

jrTips


Jamroom Developers

I created a tips file for a custom module I got it to working but it only shows up for the admin.

I looked into the file and the only thing I could find was this:

 switch ($_inf['group']) {
                    case 'master':
                        if (!jrUser_is_master()) {
                            continue 2;
                        }
                        break;
                    case 'admin':
                        if (!jrUser_is_admin()) {
                            continue 2;
                        }
                        break;
                    case 'power':
                        if (!jrUser_is_power_user()) {
                            continue 2;
                        }
                        break;
                    case 'multi':
                        if (!jrUser_is_multi_user()) {
                            continue 2;
                        }
                        break;
                    case 'visitor':
                        if (jrUser_is_logged_in()) {
                            continue 2;
                        }
                        break;
                    default:
                        if (!jrUser_is_logged_in()) {
                            continue 2;
                        }
                        break;
                }

I assume this is checking the user group. What group is a standard artist?
updated by @nate: 09/10/14 11:26:41PM
nate
@nate
07/17/14 06:21:34PM
917 posts

Profile _user_id


Jamroom Developers

Thanx.
nate
@nate
07/17/14 12:21:37PM
917 posts

Profile _user_id


Jamroom Developers

That worked.
nate
@nate
07/17/14 11:34:10AM
917 posts

Profile _user_id


Jamroom Developers

I have tried

profile._user_id

and profile_user_id

How do I get the user ID of the profile owner?
updated by @nate: 08/17/14 07:10:05AM
nate
@nate
07/11/14 10:49:34AM
917 posts

Profile image size.


Jamroom Developers

I wanna require an image using jrCore_db_search_items();

$search[] = "audio_image_size > 0" fails.

Any suggestions?
updated by @nate: 08/16/14 12:41:53PM
nate
@nate
07/08/14 09:37:48AM
917 posts

AJAX Side Effect


Jamroom Developers

I am working on a site for a client. I pushed a js file that used the word "class", which I just learned is forbidden. I get a js error when the page loads.

OK fine, so I pushed an update (no ftp access).

But because jr5 uses AJAX to submit I can't clear the cache. I'm stuck and my client is losing money.

Maybe you can use "preventDefault" on the submit button and when the js isn't working it can submit the old fashioned way.
updated by @nate: 08/16/14 12:41:04PM
nate
@nate
05/27/14 06:14:21PM
917 posts

Module is active


Jamroom Developers

Thanks.
  78