CSS problems related to wrong path of myopera files

Forums » My Opera » My Opera: Feedback, questions and discussions

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

1. June 2010, 14:01:05

lor74cas

Posts: 94

CSS problems related to wrong path of myopera files

Today I made a test post to try something new, I also edited my personal css style sheet.
After the test I restored the original css style sheet deleting the last line of code I was trying.
Surprise, all the changes in my page that usually works fine are gone.
Investigating with the dragonfly tool I found that a lot of files that I store in the files folder are Not Found. For a reason I don't know, the css style sheet assumes that the default path is "/usercss/files" instead of "/file".
For example take a look at this:
this is the correct address to the title image "http://files.myopera.com/lor74cas/files/top2010.jpg"
and this is where the style sheet tries to load the file "files.myopera.com/lor74cas/usercss/files/top2010.jpg"
I know I can solve the problem with the use of the complete path instead of the relative one in the style sheet but I thin that this is a bug so I'll do not use the complete path so that someone can investigate.

1. June 2010, 14:56:02

Opera Software

digmed

Developer, My Opera

Posts: 1161

Hi there!

We recently changed the naming scheme for custom css files. They are now stored in http://files.myopera.com/<username>/usercss/main-<timestamp>.css. The name of your custom css automatically changes from "user.css" to this new name/path when you update your css.

This change was made to avoid users having to reload the page after saving to see their changes. Unfortunately the change also means that relative paths in already existing stylesheets won't work when you update it. In your "Files" section you can see you have a new folder called "usercss", you can either move your images there and they should work, or you can include the "usercss" folder in the relative paths in your css.

3. June 2010, 06:41:10

lor74cas

Posts: 94

Thank you for the quick replay digmed.
I modified my css with the complete path for all the files, and all it's ok now, this is faster than moving files.

Forums » My Opera » My Opera: Feedback, questions and discussions