-
AuthorPosts
-
November 26, 2006 at 12:51 am #117773
I have a very strange problem with JA Polaris. Everything seems to work fine, but when I click the “edit” icon from the front end (say on a front page story), my theme colour turns to green! Is this intentional?
The real problem though is when I try to use XHTMLSuite instead of the default editor, the content does not load correctly into the editor! I cannot even click the Cancel button (says please save changes to current item). Other templates work fine. Does Polaris do anything unique when starting the editor?
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
November 26, 2006 at 3:52 pm #212033JA Polaris don’t do any unique qhen starting the editor. Do you test the XHTMLSuite with other templates? Do you try to swith back to default editor? Moreover, you should provide your live site url here, and a test account if needed.
November 27, 2006 at 5:46 pm #212046XHTMLSuite does work with other templates I’ve tried yes. Both the default editor and JCE work OK with the template, but the theme colour always switches to green when using any editor. Is this normal? I even tried it on a fresh install of Joomla 1.0.11 and it turns green when editing anything. Here is a test account (author) with a test article already made and published.
http://wachess.org.au/
l: test
p: 123456Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
November 28, 2006 at 4:40 am #212053Hi drleper,
JA Polaris uses alternate stylesheet technical to switch color. Unfortunately, it conflicts with WYSIWYG editor of Joomla. To fix this problem, please follow these steps:1. Open template index.php file, move this code to right after of header tag <head>
<link href="<?php echo $ja_template_path;?>/css/template_css.css" rel="stylesheet" type="text/css" /><?php genColorHead(); ?>
2. Add onload event to body tag:
<body id="bd" class="<?php echo "$ja_width fs".$ja_font_size;?>" onload="setActiveStyleSheet('<?php echo $ja_color;?>')">
3. Open template file scripts/ja_script.js, search function setActiveStyleSheet, and replace with:
function setActiveStyleSheet(title) {
var i, a, main, arr;
arr = document.getElementsByTagName("link");
for(i=0; (a = arr); i++) {
var ltitle = a.getAttribute("title");
if(a.getAttribute("rel").indexOf("style") != -1 && ltitle && a.href.indexOf ("/css/colors/") != -1) {
a.disabled = true;
if(ltitle == title) a.disabled = false;
}else a.disabled = false;
}
createCookie("ColorCSS", title, 365);
}When browsing your site, I get an javascript error in xhtmlsuite.js file: btn.state is not a function.
Another note: you should change your live site configuration in configuration.php file to “http://wachess.org.au” rather than “http://wachess.org.au/“November 28, 2006 at 10:07 am #212060Thanks, that code seems to stop the colours turning green.. but it makes the drop down menus on setting 2 (suckerfish) always be orange! (On both Firefox and Konqueror).
I have changed the live site value too.
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by drleper 18 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum