Keyword

srfr can't find its css file on sub pages

  • Chris Jackson
  • Chris Jackson's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #25556 by Chris Jackson
srfr can't find its css file on sub pages was created by Chris Jackson
Hello,

srfr doesn't seem to be able to find its css file on sub pages.

I tried adding this:
<?php echo JURI::base() ?>

to line 144 of mod_jw_srfr.php:
@import "modules/mod_jw_srfr/mod_jw_srfr/mod_jw_srfr.css";

so that it looked like this:
@import "<?php echo JURI::base() ?>modules/mod_jw_srfr/mod_jw_srfr/mod_jw_srfr.css";

But that didn't fix it. Actually, the styling got messed up on top level pages as well when I did that, appearing as a normal bulleted list styled by the template css.

Am I close to figuring this out? Did I do something wrong? How can I fix this problem?

It seems like a problem with the original code for the module using relative path to the css, so I thought adding that echo would fix it. Apparently not.

Thanks for your help!

cheers...

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #25557 by David Jennings
Replied by David Jennings on topic Re: srfr can't find its css file on sub pages
I'm having the exact same problem.

I hope someone can help, I'm not a css or php user.

www.bigjolly.com

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #25558 by David Jennings
Replied by David Jennings on topic Re: srfr can't find its css file on sub pages
Kyle over at Joomlapraise suggested the right fix for me. All I did was add a '/' in front of "module/" from your example above and it works!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum