solved Skin style editor bug with id selectors

SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
There's a bug in the style editor which an be seen when an id is part of a selector with a color rule.

Whilst a color change will be recorded to the db, it is not possible to reset to the default if an id is present.

It seems to be fixed by urlencoding and decoding the selector between

line 5593 jrCore/index.php
jrCore_show_skin_style
Add $name = urlencode($name);

line 3669 jrCore/index.php
jrCore_css_reset_save
Add $_post['tag'] = urldecode($_post['tag']);



Also, any rule with !important in it will break the colorpicker js display:
background-color: #aaa !important;



Also, not having color selection for background and border is inconvenient.
  background: #bbb;
  border-bottom: 1px solid #00d;



I've spotted a couple of typos as well:

line 5219 typo: jrCore_notice_page('error', 'There do not appear to be aby CSS files for this skin!');
5432 typo // Our tag is used te let the user know what they are changing



--
¯\_(ツ)_/¯ 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 :)

updated by @ultrajam: 02/03/14 01:34:58PM
brian
@brian
12 years ago
10,149 posts
Thanks Steve - I will check this out. I'm aware of some issues in the CSS editor and have had it on my todo list, so I will try to move that up in priority.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
Just an FYI that there is support for background-color as well as border-color. The problem is that you cannot use "combined" rules - your border rule should be:

border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #0000DD;

I will make sure "!important" works and fix up the typos.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
SteveX:
There's a bug in the style editor which an be seen when an id is part of a selector with a color rule.

Can you show me an example of what your selector looks like for this?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
Ok, Thankyou Brian!


--
¯\_(ツ)_/¯ 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 :)
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
I guess I was replying to the wrong thread or something, who knows?

/* @title Main Background */
/* @help Id the background of the toolbar #0095dd */
#togetherjs-dock {
	background-color: #bbb;
}



--
¯\_(ツ)_/¯ 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 :)
brian
@brian
12 years ago
10,149 posts
Sorry for not following up on this much earlier - I'm checking this out and will see what's up.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
It looks like it was me who left the thread hanging - I probably got distracted by something else.


--
¯\_(ツ)_/¯ 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 :)
brian
@brian
12 years ago
10,149 posts
This is fixed now in jrCore 5.1.9 - sorry it took me so long to follow up on this.

Let me know if you see any issues.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
After updating to 5.1.9 I no longer see any modules' css in the skin style editor.

Before updating there were 4 modules there (including jrUser and jrAudio), they all disappeared immediately after updating.

I've tried running the integrity check repairing tables and emptying cache, but the editable style sheets don't reappear.


--
¯\_(ツ)_/¯ 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 :)
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
I do have some warnings in the error log from around the time I updated. The warnings aren't logged when I run the integrity check.

There is a warning for each of the core stylesheets:
Quote:
[29-Dec-2013 13:00:08 UTC] PHP Warning: file_get_contents(/home/xdev5/public_html/modules/jrElastic/css/mobile_core.css): failed to open stream: No such file or directory in /home/xdev5/public_html/modules/jrCore-release-5.1.6/index.php on line 5252



--
¯\_(ツ)_/¯ 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 :)
brian
@brian
12 years ago
10,149 posts
That warning should be gone in the latest 5.1.9 - I saw that when fixing things up too. Not sure why the module CSS stopped showing - let me check that out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
Okay reload 5.1.9 and the module CSS should be showing again - let me know if you see any issues.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
Yes, that brings them back.

The rules using ids are resetting perfectly as well.

Thanks


--
¯\_(ツ)_/¯ 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 :)
brian
@brian
12 years ago
10,149 posts
SteveX:
Yes, that brings them back.

The rules using ids are resetting perfectly as well.

Thanks

Glad to hear it - thanks!


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

Tags