This seems to be a really great module. But at the moment it does not work
as expected. I installed the module and configured it to replace text of
class .title (I want to have all titles being replaced with flash text).
When I view a page, the flash text is shown. Perfect. But the normal text is
shown as well (Look at the screenshots). I have a class .title defined in my
theme's css, since I want styled output for users with javascript disabled.
But it doesnt make a difference when I removed the .title class from css.
I first thought it be an issue with my theme, but also tried it with the default
bluemarine theme.
| Comment | File | Size | Author |
|---|---|---|---|
| sifr_error1.png | 3.69 KB | profix898 |
Comments
Comment #1
jjeff commentedOdd. What browser are you using? Have you tried another browser?
This looks like it is a sIFR (JS library) specific problem, but I'm still curious as to whether it is your browser or something else.
-jeff
Comment #2
profix898 commentedI'm using Firefox 1.5 on WinXP, but also tried IE 6 on the same machine.
Do you suggest to post it to sIFR forum? Any ideas?
Comment #3
DiGriz commentedI see the same thing in FireFox 1.5.01 on OS X but only when NOT logged in. When I log in, display is as expected. Safari works correctly...
I noticed the the css looses it's linefeeds when not logged in. Strange...
Comment #4
jjeff commentedFascinating!
I will take a look at this when I get a chance, but it may not be 'til next week. If anyone else can come up with a patch before then, I'm happy to commit it.
-Jeff
Comment #5
jjeff commentedI think we tracked this one down at Drupal Camp. It looks like the sifr.css file isn't getting loaded in.
It's got something to do with either Drupal being installed in a subdirectory or clean URLs not being enabled.
Comment #6
profix898 commentedHi jjeff! Got some new input for your brainstorming ;)
You are right about the clean url thing. It works with clean urls enabled. Great so far :) But there are bad news though.
- In Firefox: Everything looks fine ... until I refresh the page. When I click on reload the text is appended again. Doing a forced reload (shift+reload) the layout is fine as before.
- In IE6: sIFR breaks my site :( In the beginning the page looks good. Then sIFR is loaded. I get a script error "line 1, char 1: not an object" (translated from german). I know, not very expressive. And then all the layout gets messed up.
Comment #7
q0rban commentedI noticed this behavior after enabling caching on my site.
Comment #8
ktonini commentedanyone come up with a fix yet? this is happening to me too.
Comment #9
arsart commentedCheck next steps:
1. Don't ever use sIFR just for any orphan class like yours "body .title"
2. Use h2.title or whatever HTML element but always inherit in terms of content. E.g. "#main h2.title" - this would help to precise particlrar sIFRed element.
3. Look into admin/settings/sifr and correct extraction of a class cos it may not define the class accurately. (for example it may said that you have "h2.title", but anyway the parent content can fluent on it so the better way would be to define it through content class like "#main h2.title")
4. Keep in mind that you should correct or add decoy styles into sifr.css like :
5. Check the view source and find that sIFR Replacement is pointing the right class like this
sIFR.replaceElement("h2.title",...NB!: This is not a sIFR defect. This is just the wrong installation issue.
Comment #10
arsart commentedSorry the fifth point in my exmple should be
sIFR.replaceElement("<strong>#main</strong> h2.title",...Comment #11
arsart commentedand as I get this http://drupal.org/node/52915 would also help in installation cos there are many things to do manualy.
Comment #12
xamox commentedI am getting the same error. Firefox 1.5.0.4 and IE 6. I am using it in an orphan class as well for my header.
But I tried using it in my footer in the which isn't orphan (
Comment #13
q0rban commentedktonini & xamox,
Do you have the drupal cache enabled? Try disabling it and see if it still happens.. I really think the problem is there somewhere..
Comment #14
xamox commentedI tried it on another machine I have drupal 4.7 installed. On that install cache as well as clean urls are NOT enabled. It is rendering them corrrectly on that install. On the install that it is failing on cache as well as clean urls are not enabled. Although the one that works my httpd.conf has been configured to allow clean urls, it is just not enabled.
Comment #15
sunPlease update your sifr module to the latest version. Please also make sure that you have installed the latest sifr.js version 2.0.2.
After that, carefully read the installation instructions currently provided here. You should be up and running with a clean sifr-enabled Drupal install within 5 minutes.
Anyhow, if you're still experiencing this 'bug', please re-open it.
Comment #16
(not verified) commented