Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-05-21 17:00:15

rburko
Xinha Community Member
Registered: 2006-08-15
Posts: 22

Upgrade Breaks Styles/Theme

I just upgraded to 0.931 and everything went pretty smoothly except for one major glitch…

The style/theme has totally broken!

I have the exact same code on my page that I did before:

<link type="text/css" rel="stylesheet" href="http://domain.com/members/xinha/skins/xp-blue/skin.css">

But, now when the editor loads, it looks like this:

http://storage.elitewizard.com/xinha_glitch.gif

Any ideas why this is happening?

Thanks in advance for your help! It is greatly appreciated.

Offline

#2 2007-05-21 17:02:35

rburko
Xinha Community Member
Registered: 2006-08-15
Posts: 22

Re: Upgrade Breaks Styles/Theme

Just to confirm...

The style sheet is pointing at the correct URL.

If I type that URL directly into my browser, I can see all the styles.

That was the first thing I checked, since I'm prone to stupid silly errors. ;-)

Offline

#3 2007-05-22 08:46:11

wymsy
Xinha Community Member
From: Massachusetts, USA
Registered: 2005-04-01
Posts: 44
Website

Re: Upgrade Breaks Styles/Theme

The mechanism for invoking style sheets and skins changed. See http://xinha.python-hosting.com/ticket/1026.

Offline

#4 2007-05-23 20:23:36

rburko
Xinha Community Member
Registered: 2006-08-15
Posts: 22

Re: Upgrade Breaks Styles/Theme

Thanks for replying wymsy!

Upgrading to the latest version has been one giant headache. I can’t believe how many thing stopped working.

In the header of my page I now have this:

  <script type="text/javascript">
   _editor_url = "http://domain.com/xinha/";
   _editor_lang = "en";
  _editor_skin = "xp-blue";
</script>

I read in the bug thread that there is another variable:

_editor_css = "xp-blue";

I can’t figure out how or where I’m supposed to use this? When I put it in place along with the other variables above, things got really messed up.

Maybe this is an obvious answer and I’m just so frustrated that I’m not seeing it.

Any feedback is very much appreciated!

Offline

#5 2007-05-24 09:05:43

wymsy
Xinha Community Member
From: Massachusetts, USA
Registered: 2005-04-01
Posts: 44
Website

Re: Upgrade Breaks Styles/Theme

If you are using the standard Xinha.css style sheet, you can actually omit all references to style sheets in your configuration and XinhaCore.js will just go find it. If you have your own style sheet, you use

_editor_css = "myStyles.css"

(with path if necessary). In either case, you don't need a <link> tag any more.

We really need to update the documentation on this....

Offline

#6 2007-08-12 12:23:45

kram
Xinha Community Member
Registered: 2005-03-26
Posts: 21

Re: Upgrade Breaks Styles/Theme

Some documentation would be nice. Does the new method allow the user to switch editor menu styles using the browser - like in Firefox with View/PageStyle? Using LINK in the page header you can add alternative stylesheets there - but in version .931 they seem to be ignored by XINHA.

Offline

#7 2007-08-13 18:49:43

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Upgrade Breaks Styles/Theme

Sorry for the lack of documentation; I invite everyone to submit any type of knowledge they are having smile

Your issue has been fixed in revision 878; see ticket 1026

Offline

#8 2007-08-14 04:34:12

kram
Xinha Community Member
Registered: 2005-03-26
Posts: 21

Re: Upgrade Breaks Styles/Theme

Thanks for your reply. I saw that ticket. I'm not sure what the new equivalent to the LINK statement is. I understand that XINHA doesn't need the paths to its alternate style sheets and that you can specify which one you want like this
   _editor_css = "xp-blue.css" 

but what I don't see is how the user can switch between alternates using the browser menu. It is important to let the user choose in my opinion. If the browser option isn't available is there a plugin to allow user-driven style switching?

Offline

#9 2007-08-14 10:43:58

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Upgrade Breaks Styles/Theme

No, I mean it is fixed in your sense. Read the ticket to the bottom. I changed the code last night so you can specify "alternate stylesheet" links as you wish

Offline

#10 2007-08-14 12:40:11

kram
Xinha Community Member
Registered: 2005-03-26
Posts: 21

Re: Upgrade Breaks Styles/Theme

Brilliant. Thanks ray. I will try it tonight.

Offline

Board footer

Powered by FluxBB