solved Updates

Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
9 years ago
224 posts
Hello Brian and Team!
I´ve got a genrell question to the Updates.

Why do you create for every Update a new folder and why not overwrite the same? So with every new Update, i got a new folder from modul or core xyz.
Can i delete the oldest one?

Thanks for answere.
updated by @bandwerkstatt: 06/25/15 02:44:11PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I too have wondered about this question. Can we safely delete the older folders of module versions, especially after we have like 6 or more folder versions of the same skin or module?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,714 posts
Because if we over-wrote it it might look like this

----old----
file1
file2
file3

---new----
file1
file5
file6

If we wrote it into the same folder you would have a mix of both. But writing it into a new folder ensures that what we sent you is what is there.

It also allows you to revert back to older versions if you like.

and in some cases people add or change stuff in the modules (which you should never do, use 'events' and 'listeners' instead) and those changes would be lost if we wrote into the folder. They would then ask how to get those changes back and the answer would be "cant, there gone." :(

So its a safeguard method.

Yes you can delete any older versions if you want to.
gary.moncrieff
gary.moncrieff
@garymoncrieff
9 years ago
865 posts
This I something you just need to add to your bi-monthly schedule (or as frequently as you choose), having the ability to revert back to an older version following an update is a very powerful feature, don't under estimate it. You will appreciate it that one time a module updates and takes your site down.
SteveX
SteveX
@ultrajam
9 years ago
2,584 posts
In Developer Tools you have "rebase modules" and "rebase skins".

When you rebase using those tools you can select to delete older versions of the modules/skins.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Steve, are you able to tell me what 'rebase' means, and what exactly it does? Thanks!
(probably good to add "rebase" to the JR Glossary) :)

I'm not talking about deleting all older versions of modules...but more like: is it really necessary to keep all 10 past versions of jrprofileforum module, and all 15 versions of Ningja skin...? probably overkill.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
9 years ago
10,148 posts
Strumelia:
Steve, are you able to tell me what 'rebase' means, and what exactly it does? Thanks!
(probably good to add "rebase" to the JR Glossary) :)

I'm not talking about deleting all older versions of modules...but more like: is it really necessary to keep all 10 past versions of jrprofileforum module, and all 15 versions of Ningja skin...? probably overkill.

Yeah it probably is overkill if you have 15 versions. One thing we try to avoid with Jamroom is deleting stuff based on an assumption. When we start doing that we end up deleting something someone wanted, which is a much bigger deal than a few megabytes of extra space being taken up by previous versions of modules.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
9 years ago
2,584 posts
Strumelia:
Steve, are you able to tell me what 'rebase' means, and what exactly it does? Thanks!
It deletes the symlinks in your module directory and optionally deletes the older versions leaving just the current version of each module.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
joshwolve
joshwolve
@covertlogic
9 years ago
21 posts
Just the thread i was looking for! I went through and redid all the icons (moduleroot/icon.png) and noticed it gets overwritten with every update. If i understand correctly the updates should only be writing the new update to a new folder, but the original folder images definitely get overwritten as well.

Example : modules/jrSmiley/icon.png reverts back to original icon.png even though the update was in /jrSmiley-release-1.1.3/ .

Im going to look into Michaels direction with events and listeners. Is that the most elegant way to keep custom icons at the moment? Thanks.
brian
@brian
9 years ago
10,148 posts
There is no easy way at this time to get custom icons - if the icon images are showing in your skin, I would recommend hiding them - ensure this:

// Hide module icons
jrCore_register_module_feature('jrCore', 'module_icons', 'SkinName', 'show', false);

Is in your skin/SkinName/include.php "init" function.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
iamtimbo
@iamtimbo
9 years ago
301 posts
Is the ability to add alternate icons (like I think you can do with smileys) on the cards? I know icons can be a bit of a graphical oddity.

Some of my users I think would benefit....

Changing them in jrCoreXXXXXX/img/iconsblack is intriguing, but doesn't seem to alter anything much....
updated by @iamtimbo: 04/22/15 06:26:35AM
michael
@michael
9 years ago
7,714 posts
/skins/(YOUR SKIN)/img/icons_(COLOR)/*

Will over-ride default icons.

So if your want to over-ride:
/modules/jrCore/img/icons_black/arrow-down.png

copy it to:
/modules/jrCore/img/icons_black/arrow-down.png

/skins/(YOUR SKIN)/img/icons_black/arror-down.png

And alter it and upload it.

After uploading, make sure you clear the icon cache:
ACP -> CORE -> RESET CACHE -> (check) Reset Icon Cache
iamtimbo
@iamtimbo
9 years ago
301 posts
Brilliant, thanks Michael!

Tags