Forum Activity for @brian

brian
@brian
03/18/15 12:38:54PM
10,167 posts

Mp3 quality.


Jamroom Developers

DannyA:So, what happens if a user uploads a low quality song for sale? Do you just sell whatever version was uploaded?

Yep - whatever the "original" was that was uploaded (not any converted version).
brian
@brian
03/18/15 12:38:23PM
10,167 posts

Change password verification


Using Jamroom

This should be fixed in version 1.5.6 of the User Accounts module:

https://www.jamroom.net/the-jamroom-network/networkmarket/44/user-accounts

it was an issue with admin accounts.

Hope this helps!
brian
@brian
03/18/15 11:59:30AM
10,167 posts

Group Discussion problem


Installation and Configuration

Make sure you have enabled the User Comments module AND you have gone into the "Quota Config" tab for the User Comments module and have allowed access to all quotas you want to allow commenting to.

Let me know if that helps.
brian
@brian
03/18/15 11:37:41AM
10,167 posts

Jamroom + FaceBook/Share This!


Installation and Configuration

Do you have a link to a FB page where the player is not playing?

Thanks!
brian
@brian
03/18/15 11:18:21AM
10,167 posts

Custom notifications


Jamroom Developers

First up, just to make sure you know that notifications are tied to USER accounts - not profiles, so just an FYI.

To integrate with User Notifications, in your module register for the feature:

$_tmp = array(
    'label' => 'notification section label',
    'help'  => 'help text for notification'
);
jrCore_register_module_feature('jrUser', 'notification', 'MyModule', 'module_action', $_tmp);

That goes in your module init function.

Then, in your code:

$sub = 'This is the Subject';
$msg = 'This is the body of the message';

// notify user_id "1" FROM "0" (which is "system") - set to a user_id to change the from user
jrUser_notify(1, 0, 'MyModule', 'module_action', $sub, $msg);

Let me know if that helps.
updated by @brian: 03/18/15 11:18:34AM
brian
@brian
03/18/15 11:13:55AM
10,167 posts

jrElastic user_login.tpl spinner


Using Jamroom

This one is weird - we have a ticket open on this to find out how those templates got there (and what's funny is it is obviously ME that added those in, but I have no memory of ever doing that as the user_login.tpl is not even named right).
brian
@brian
03/18/15 11:12:44AM
10,167 posts

Mp3 quality.


Jamroom Developers

DannyA:Is there any way to restrict a user from uploading files below 320k mp3? (ideally before they upload the whole song)

You would have to do something custom for this - especially to start scanning before it is fully uploaded.

Sorry!
brian
@brian
03/18/15 11:10:35AM
10,167 posts

Queue error logging


Jamroom Developers

If you are getting queue entries "stuck" for a long time, it means your worker is not cleaning up or returning properly. The Queue itself does not do error logging, checking, etc. - all of that is handled by your worker function (since the queue really has no way to "know" what is to be done with a queue entry).

Your worker function should:

- return TRUE if it was successful. The queue entry will be deleted
- return FALSE if there was an error AND it wants the queue to be handed again to the next available worker
- return a positive integer to SLEEP the queue entry for the number of seconds returned - i.e. if your function returns "200" it means "hide this queue entry from all workers for 200 seconds.

Any LOGGING needs to be handled by your worker function - the core will not do logging for you.

Also - make sure when you are registering your worker function, you pass in the values as needed - i.e.

jrCore_register_queue_worker('jrAudio', 'audio_sample', 'jrAudio_create_audio_sample', 0, 4, 3600);

This says:

- When a new queue entry comes into the "audio_sample" queue, run the jrAudio_create_audio_sample() function.

- When the jrAudio_create_audio_sample() function RETURNS, give it another queue entry until there are no queue entries left for that queue (that's the first "0" - it means keep working til no queue entries left - if it was set to "5" the worker would do 5 jobs then exit).

- At most, left 4 jrAudio_create_audio_sample() functions be running at the same time.

- If a worker has not returned after 3600 seconds, abort the job, kill the worker, and give the queue entry to a new worker.

So it is up to you and your developers to make sure your worker functions "play nice" with the Queue system.

Let me know if that helps.
updated by @brian: 03/18/15 11:11:33AM
brian
@brian
03/17/15 02:18:33PM
10,167 posts

I think I've made a mess of my set up.


Installation and Configuration

perrie:Thanks so much for your help. I think the issue is that I am seeing something different from what you just posted there. The screen that I posted is the first thing I see. For instance, there is no file option, like you have. Also I am confused when to make that Ning file. This download took forever and I don't want to lose it.

Since you are on a Mac, your "file" will be in the top menu on your system. OR you can click on the little computer like I outlined above.
updated by @brian: 03/17/15 04:07:55PM
brian
@brian
03/17/15 02:17:45PM
10,167 posts

changing /profile page to smaller avatars


Using Jamroom

Strumelia:( col2 ? who'da thunk?)

JR templates that are responsive are broken up into 12 "columns", so you have:

col1
col2
..
col12

Any combination that adds up to 12 works.
  406