Forum Activity for @ultrajam

SteveX
@ultrajam
07/03/14 09:01:18AM
2,589 posts

profile_option.tpl


Jamroom Developers

I'm having trouble figuring out profile_option.tpl

I have a module which uses tabs and when I switch to jrElastic I'm getting the inline margin:12px added in places where it isnt needed. That isn't a problem in my skin as the div is simply removed in the overridden template.

It looks like the only reason the profile_option template is there at all is to add a div with a 12px inline margin for tabs other than the default.

If there is a reason for that please explain and I might be able to figure out how to get around it.

Thanks
updated by @ultrajam: 08/04/14 11:47:57AM
SteveX
@ultrajam
07/02/14 03:41:33PM
2,589 posts

SOX, LAME, and other audio functions


Jamroom Developers

Your GRiD number is created in the create_save function:
    // media needs a unique grid id 
	$_core['audio_grid'] = xtSong_create_media_grid($_rt['_profile_id'],$_rt['_item_id']); //userId, songId
	jrCore_db_update_item('xtSong',$aid,null,$_core);
You'd add your other custom functions into the create_save in a similar fashion.

You already have the file from this line:
$_fl = jrCore_get_uploaded_media_files('xtSong','audio_file',$_user['user_active_profile_id']);

So you'd use $_fl for any functions that require the file (bpm detection etc) and then save that to the song data in the db.

For anything like additional format conversion, you might do that in the create_save function as well, or possibly in a save_media_file listener. (look at jrVideo_save_media_file_listener for an example of that (it runs the jrCore_get_media_file_metadata function), jrAudio runs the same jrCore_get_media_file_metadata function from the create_save function.

In a nutshell, jrAudio doesn't do any of the things that you wnat it to do, so you need to write the custom functions that do those things, then run those functions in the xtSong_create_save function, have the functions return the info that you need to save to the db, and then add it to the $_rt array when the item is created, or to the $_core array if you need the item id before you run your function (like it does with the GRiD generation where the song id is needed in oreder to create the GRiD).

I don't have the first clue as to how to hand any processing off to a second server.
updated by @ultrajam: 07/02/14 03:55:55PM
SteveX
@ultrajam
07/02/14 02:06:02PM
2,589 posts

SOX, LAME, and other audio functions


Jamroom Developers

Danny, the ffmpeg and sox stuff was all working back around December, but the mp3 tagging has been added in more recently.

It looks like there are some new views in the audio module as well which deal with mass reconverting.

Your developers should have no problems copying the views and function into your custom modules, I've jsut taken a look at the jrAudio changes for 2014 and it should be perfectly straightforward if you need those new features (I can't imagine you will be changing your label's licensed files though so I doubt you will need them).
SteveX
@ultrajam
07/02/14 10:48:45AM
2,589 posts

This forum stripping code tags on create thread


Using Jamroom

Thanks Brian, tested the same 2 posts again and works perfectly from here.
SteveX
@ultrajam
07/02/14 08:53:11AM
2,589 posts

Video stop working


Using Jamroom

It plays instantly for me. Check your internet connection.
SteveX
@ultrajam
07/02/14 07:21:17AM
2,589 posts

pre tag in pages


Installation and Configuration

It might be better to have your guitar tabs in a field of their own rather than mixed in with the general text area. That way you can control the formatting of the tab separately.

You could also try getting rid of the br within pre tags using css.
Something like this might work:
pre br {
    display:none;
}
SteveX
@ultrajam
07/02/14 07:15:30AM
2,589 posts

Embed Audio


Using Jamroom

ujTogether isn't strictly a chat module, more collaboration, so cometchat is probably more suitable. It's been up there for quite a while now.
SteveX
@ultrajam
07/02/14 05:10:34AM
2,589 posts

Embed Audio


Using Jamroom

How about a custom form designer field on the blog post (visible to admin only). Custom field accepts an artist id.

Then, if the field contains an id, include a template above/below/alongside the blog post with a jrCore_list of all songs (or vids/photos/gigs/etc). Could be more of a featured mini profile alongside the blog post rather than a list of songs.
updated by @ultrajam: 07/02/14 05:11:22AM
SteveX
@ultrajam
07/02/14 02:45:04AM
2,589 posts

This forum stripping code tags on create thread


Using Jamroom

It didnt strip the code on this post though:
https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/12198/php-error-log-bug

EDIT - Yes it did - the php was posted correctly, but all the html tags were stripped out of the php. The html tags are saved without being stripped out on an update.
updated by @ultrajam: 07/02/14 02:52:05AM
  150