solved Jamroom updates - to overwrite own things

Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
8 years ago
224 posts
Jamroom updates

Hello.
I have a question about the updates of the modules.

Take, for example, "audio".

I have adapted to the player, for example, our site, but this must update after your new upload again since Jamroom automatically assumes the original shape of the player.

As there is a possibility that if I myself made any changes, they are not overwritten by your updates of the modules?

Sure, I can always upload my file, but it is very to be extremely time-consuming.

Many thanks for your help!

Stefan
updated by @bandwerkstatt: 03/15/17 11:33:45AM
paul
@paul
8 years ago
4,331 posts
How have you updated the player? If its by modifying templates make sure you have done that via the ACP tem[plate editor or by creating an 'over-ride' template in the active skin. That way they will not be overwriten on module updates.


--
Paul Asher - JR Developer and System Import Specialist
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
8 years ago
224 posts
paul:
How have you updated the player? If its by modifying templates make sure you have done that via the ACP tem[plate editor or by creating an 'over-ride' template in the active skin. That way they will not be overwriten on module updates.

Hello Paul,
many thanks for answere.

No, not via template, i have to put a code line into the include.php, to give the members the possibility disable downloads for their songs.

Thanks for your helf :)
michael
@michael
8 years ago
7,746 posts
What you want is this:

Docs: "Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1011/events-and-listeners

Make a module to make the changes then you wont need to do anything when modules are updated.
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
8 years ago
224 posts
michael:
What you want is this:
Docs: "Events and Listeners"https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1011/events-and-listeners
Make a module to make the changes then you wont need to do anything when modules are updated.

... great, i will look into it. Thanks!!!
michael
@michael
8 years ago
7,746 posts
Nice one, let us know if you get stuck. what it is is a way to tap into the flow of other modules stuff and change things.
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
8 years ago
224 posts
Bandwerkstatt:
paul:
How have you updated the player? If its by modifying templates make sure you have done that via the ACP tem[plate editor or by creating an 'over-ride' template in the active skin. That way they will not be overwriten on module updates.

Hello Paul,
many thanks for answere.

No, not via template, i have to put a code line into the include.php, to give the members the possibility disable downloads for their songs.

Thanks for your helf :)


michael:
What you want is this:

Docs: "Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1011/events-and-listeners

Make a module to make the changes then you wont need to do anything when modules are updated.



Hello Jamroom Team,
many thanks for your help.

Unfortunately, our English and our program knowledge is not good enough to move such a like Docs: "Events and Listeners" module.

I try to describe it simply once more more exactly with photos.

Unfortunately, there is not since the version 5 any more the possibility that the user can select that his songs nowhere can be download.

On account of that we have tried to handle even about form designer and more own php history this problem.

As soon as there is, however, a new update of Jamroom, unfortunately, all this is headlined.

The easiest one would be if your please again firmly offers the possibility that the user can select this.
Enclosed the pictures, as we handle at the moment.

photo 1)
the download button, this is the problem :) it must be off.

photo 2)
we handle at the moment, with all new jamroom/module update it delete

photo 3)
same as in photo 2

Hope you understand our problem and can easy help us.

THANKS.

Stefan

form_designer.PNG.png

include_php.PNG.png
include_php.PNG.png  •  125KB


updated by @bandwerkstatt: 11/29/16 01:24:09PM
brian
@brian
8 years ago
10,148 posts
Bandwerkstatt:
the download button, this is the problem :) it must be off.

Then turn it off :) You see that button on the far right that looks like a mixer? Click It and set the download button to ADMIN ONLY.

Bandwerkstatt:
we handle at the moment, with all new jamroom/module update it delete

That is a custom field - audio_dl is NOT part of the audio module, so you can create/delete it as needed.

You don't need to do any of the stuff you are doing in the module - you can already choose who CAN download and who CANNOT download - just do like I pointed out above.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
8 years ago
224 posts
Hello Brain,
sorry for my bad english and thanks for your help ;-)

We don't want to choose as admin who can download or not.
The Artist only should get the possibility to choose for every single song/Item if it could be downloaded.

I hope you know what i mean?

Stefan
updated by @bandwerkstatt: 11/29/16 01:38:50PM
brian
@brian
8 years ago
10,148 posts
OK got it - sorry I misunderstood you :)

Then you are doing it correctly by customizing the template - is the problem that when you upgrade you are losing your changes?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
8 years ago
224 posts
brian:
OK got it - sorry I misunderstood you :)

Then you are doing it correctly by customizing the template - is the problem that when you upgrade you are losing your changes?

Thanks!

yes, that's our problem, because the changes we did, are in the include.php from the jrAudio Module.

maybe the only way we can do, is to ignore all updates. but thats not the correct solve.
updated by @bandwerkstatt: 11/29/16 01:42:37PM
brian
@brian
8 years ago
10,148 posts
You're doing that wrong - you should never make any changes to the PHP scripts. This can all be done in the item_detail.tpl file and a custom form field.

So it looks like you already created the custom form field - so you're fine there.

What you need to do is create a template OVERRIDE - create this file:

jrAudio_item_detail.tpl

in your CUSTOM skin directory. Now Jamroom will use THIS file instead of the jrAudio/templates/item_detail.tpl file.

INSIDE that file change this:
{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item}

to this:
{if $item.audio_dl == 'on'}
{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item}
{else}
{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item exclude="jrAudio_item_download_button"}
{/if}

So if $audio_dl is NOT ON we exclude the item download button.

This way you can upgrade the Audio module and never worry about your changes being overwritten.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
8 years ago
224 posts
wow. thanks for this great help, now it a little bit clearer for us.

i will try this the next days and let you know if that helps.

Greetings, Stefan
brian
@brian
8 years ago
10,148 posts
No problem - I think that will work out best for you.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
8 years ago
224 posts
brian:
No problem - I think that will work out best for you.

Thanks!


Hi Brian,
it works.

Many thanks, now we are runnung Jamroom in the newest Version 6.

Stefan

Tags