Support Forums

Got a question? Post it here. We'd love to help.

Knowledge Base:

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthormjwood
    • CommentTimeJul 23rd 2008
     

    When I add a link to an html page - the background and lines do not display correctly.

    marks.jpg is what me site shows

    and it should be

    the html file.

    Any ideas?

    Jeff

    • CommentAuthormjwood
    • CommentTimeJul 23rd 2008 edited
     

    Cannot add attachments?

    •  
      CommentAuthorptrkmkl
    • CommentTimeJul 23rd 2008 edited
     

    I'll need a link or an attachment to know what you're talking about.

    What's the issue with the attachment?

    • CommentAuthormjwood
    • CommentTimeJul 23rd 2008
     

    Odd - I tried twice... :o( - I see now error message I didn't see before too)

    3 times a charm.

    Jeff
    PS - awesome customer support too.

    •  
      CommentAuthorptrkmkl
    • CommentTimeJul 23rd 2008
     

    Hey Jeff,

    Strange as it is, I was just helping a custom theme client with the exact opposite problem.

    What I'm gathering is that Moodle removes all style attributes from HTML pages.

    Would it be possible to share with me the HTML document that you're uploading so I can see the source code? If it contains data you would prefer not posting to the web, you could email it to me

    • CommentAuthormjwood
    • CommentTimeJul 24th 2008
     

    Hi,

    Odd eh?!

    Here are two live demos of the file - one on your demo site and the same file on mine.

    OK view
    http://www.newschoollearning.com/moodle/mod/resource/view.php?id=239

    Not ok
    http://nccschool.org/mod/resource/view.php?id=3890

    So it would seem it can be done... but ??

    I will ema1l you the file.

    •  
      CommentAuthorptrkmkl
    • CommentTimeJul 24th 2008
     

    Before I test anything, are you hosting your Moodle installation through a Moodle provider?

    In other words, did you install Moodle yourself, or did your hosting provider do that for you?

    I ask because this was the issue with my custom client with similar issues.

    What appears to be happening on your server, and not on mine (or other typical Moodle installations, I'm guessing) is that the stylesheet for Solstice is being loaded into your HTML file - this is overwriting any styles currently existing in that file.

    • CommentAuthormjwood
    • CommentTimeJul 24th 2008
     

    I am hosting myself.

    I just did a clean install of 1.9.2 .

    The odd thing is that on the same server (a different moodle install) the file appears fine.

    It appears not to be a Solstice issue, as same behaviour happens with different themes.

    Any other thoughts?

    Jeff
    PS - I realize this doesn't appear to be your theme issue... so I 'll investigate at moode.

    •  
      CommentAuthorptrkmkl
    • CommentTimeJul 24th 2008
     

    That would be my recommendation - to inquire in the General Problems forum on moodle.org. Do me a favor and let me know what you find out. I'd appreciate it.

    • CommentAuthormjwood
    • CommentTimeJul 29th 2008
     

    Here is an update.

    Apparently moodle inserts style sheets into html docs (http://tracker.moodle.org/browse/MDL-11290).

    I'm still not clear why it only happens on one of my installs... still looking into that.

    • CommentAuthormjwood
    • CommentTimeJul 30th 2008
     

    A fix from Gary Anderson @ moodle:o)

    "I traced into the code and found that adding style sheets is part of a more general process of applying filters to HTML files. This feature is controlled under the Site Administration control panel Modules->Filters->Manage filters, and set Filter uploaded files to None (the default). If it set to All files or HTML files only, it will apply styles, javascript, and filters."

    Rest of message http://moodle.org/mod/forum/discuss.php?d=102124#p452022

    •  
      CommentAuthorptrkmkl
    • CommentTimeJul 30th 2008
     

    Thank you for the update, Jeff. Very helpful indeed.

    • CommentAuthormmparke
    • CommentTimeJul 30th 2008
     

    That is BRILLIANT! Thank you! This was causing us such headaches until we changed the Filter setting as you recommended.

    <Priceless>

    Thank you for posting Jeff. Now I'll go post in the Moodle forum and the Tracker.

    - Mary