solved whats the html tag for audio and video (JR5)

alt=
@ashik
11 years ago
10 posts
I have added two addition fields in my profile settings page using form designer. One is audio(profile_audio) and another field for video(profile_video).

how can add this video and audio in my profile page
Eg: www.mysite/artist1 (below the timeline or somewhere else in this page)

Anybody can help me here?
updated by @ashik: 04/29/14 03:31:03PM
douglas
@douglas
11 years ago
2,804 posts
You'll want to modify the profile_index.tpl, that is where you'll find the timeline/action code, and you should be able to use the variables {$profile_audio} and {$profile_video} since that is what you named them.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
@ashik
11 years ago
10 posts
I tried out this code

{jrCore_media_player type="jrAudio_player_dark" module="jrAudio" field="profile_audio" item=$item}

But this results , jrCore_media_player: no media found for player
brian
@brian
11 years ago
10,149 posts
ashik:
I tried out this code

{jrCore_media_player type="jrAudio_player_dark" module="jrAudio" field="profile_audio" item=$item}

But this results , jrCore_media_player: no media found for player

"profile_audio" is not a valid field - you want to use "audio_file".

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@ashik
11 years ago
10 posts
same error repeating.

See my audio is not uploaded from audio/create page. I added a new field named profile_audio(www.mysite.com/profile/settings) using form designer and the details are added to profile table(profile_audio_name,profile_audio_size,profile_audio_type etc)

Please write the complete html tag to bring this song in any of the tpl page
douglas
@douglas
11 years ago
2,804 posts
Your not going to be able to do that without creating a module for it. That is what the jrAudio module is for.

The audio file(s) being uploaded has to be converted into the proper file type(s) in order to play through the Jamroom5 players.

Is there a reason you can't use the jrAudio module?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
@ashik
11 years ago
10 posts
i need to upload both video and audio from same page, is there any way for it
douglas
@douglas
11 years ago
2,804 posts
Not that I'm aware of, you would most likely have to create something custom for that.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
@ashik
11 years ago
10 posts
hi guys, i have created a in form designer for users to upload audio and video file. Now the field is in {debug} is profile_audio and profile_video. now if i wanted to place the audio player inside the front profile page im puting this

{jrCore_media_player type="jrAudio_button" module="jrProfile" field="profile_audio" item=$_user_item_id image="small_button"}

is this correcty?
michael
@michael
11 years ago
7,802 posts
That item=$_user_item_id doesn't look correct.

I would expect it to by something more like item=$item where $item contains the profile_audio field.

You would know if its correct or not better than anyone here because you can put the code in the .tpl file and see if it works or not. That's the best test.
alt=
@ashik
11 years ago
10 posts
Its not working. If i login as admin and go to the

Users -> Profile Browsers -> select the artist from the list and , its listed the uploaded audio and video.

I need this html tag , anyone can help me here asap
brian
@brian
11 years ago
10,149 posts
It's not clear from the posts here how you've got this setup, but I'm going to guess that you added custom form fields to the "profile" module? I would not recommend setting it up that way (since you'll be restricted to a single audio/video per profile) but if that is the case, this should work:

{jrCore_media_player type="jrAudio_button" module="jrProfile" field="profile_audio" item=$item._profile_id image="small_button"}

But it depends on here you placing this call at. The above will work if you are placing it in a jrCore_list call for jrProfile.

If you are trying to add it directly to the profile (i.e. you are modifying one of the profile_* templates in your skin directory) it would be:

{jrCore_media_player type="jrAudio_button" module="jrProfile" field="profile_audio" item=$_profile_id image="small_button"}

Again though - if you are trying to add audio/video directly to the profile module (which gets stored in the profile datastore) you are going to be limited to 1 audio and 1 video file per profile, so I'd reconsider how you have that setup.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@ashik
11 years ago
10 posts
Yea As you said , i added two fields in jrProfile module using form designer(profile_audio, profile_video)

I tried the code you mentioned above,

{jrCore_media_player type="jrAudio_button" module="jrProfile" field="profile_audio" item=$_profile_id image="small_button"}

Here prifle_id is 3 , but still the getting the same error

"jrCore_media_player: no media found for player".

What may be reason again.
michael
@michael
11 years ago
7,802 posts
Try this:
{jrCore_media_player type="jrAudio_button" module="jrProfile" field="profile_audio" item_id=$_profile_id image="small_button"}
alt=
@ashik
11 years ago
10 posts
Thanks Michel. Its worked!!!


What's tag for video to be displayed on the profile page. (profile_video)
brian
@brian
11 years ago
10,149 posts
Almost the same:

{jrCore_media_player type="jrVideo_player_dark" module="jrProfile" field="profile_video" item_id=$_profile_id}

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@ashik
11 years ago
10 posts
Thanks brian!!! Its worked!


Awesome!
brian
@brian
11 years ago
10,149 posts
Glad to hear it - thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags