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.

CommentFileSizeAuthor
sifr_error1.png3.69 KBprofix898

Comments

jjeff’s picture

Odd. 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

profix898’s picture

What browser are you using? Have you tried another browser?

I'm using Firefox 1.5 on WinXP, but also tried IE 6 on the same machine.

This looks like it is a sIFR (JS library) specific problem, ...

Do you suggest to post it to sIFR forum? Any ideas?

DiGriz’s picture

I 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...

jjeff’s picture

Fascinating!

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

jjeff’s picture

Assigned: Unassigned » jjeff

I 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.

profix898’s picture

Hi 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.

q0rban’s picture

I noticed this behavior after enabling caching on my site.

ktonini’s picture

anyone come up with a fix yet? this is happening to me too.

arsart’s picture

Check 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 :

.sIFR-hasFlash #main h2.title {
	visibility: hidden;
}

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.

arsart’s picture

Sorry the fifth point in my exmple should be
sIFR.replaceElement("<strong>#main</strong> h2.title",...

arsart’s picture

and as I get this http://drupal.org/node/52915 would also help in installation cos there are many things to do manualy.

xamox’s picture

I 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 (

q0rban’s picture

ktonini & 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..

xamox’s picture

I 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.

sun’s picture

Title: text is not replaced, but appended » text is appended, not replaced
Assigned: jjeff » sun
Category: bug » support
Status: Active » Fixed

Please 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)