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.
    • CommentAuthortodd
    • CommentTimeAug 3rd 2008
     

    I don't know this is theme related, but my MP3 files automatically load when a user clicks on a page (small Mp3 player) and I don't want that to happen until they click on the play button. I believe this is all handled in the theme file now so I just wondered if anyone had any advice. I've pasted the existing code below. I've tried to include autoload=no but have not had success.

    $THEME->filter_mediaplugin_colors =
    'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
    'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
    'waitForPlay=yes';

    •  
      CommentAuthorptrkmkl
    • CommentTimeAug 3rd 2008
     

    I'm not sure about this. Your best bet would be to inquire in the Moodle forums: http://moodle.org.

    However, the last bit of what you have pasted looks promising:

    'waitForPlay=yes';

    Perhaps this controls the behavior you're looking to change?

    • CommentAuthortodd
    • CommentTimeAug 4th 2008
     

    Just wanted to update and say it appears to be a Firefox problem. Files don't load until clicked when using Internet Explorer. The code is correct as written.

    Todd