1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

displaying player in popup

Discussion in 'XenForo Questions and Support' started by ineedhelp, Feb 24, 2013.

  1. ineedhelp

    ineedhelp Well-Known Member

    Hi I'm stuck on some basic html code.

    I want to display this flash player in a popup window (i know how to do the pop up etc) and the player works fine when I enter the embed code for the player into ad_header template.

    But I need the player open in popup window - when I enter the embed code:

    Code:
    <center><font size="2" face="verdana" color="white">Radio BL Testing Mode</font></center>
    <script type="text/javascript" src="http://player.wavestreamer.com/cgi-bin/swf.js?id=6QY5DZQB7VUEHMHE"></script>
    <script type="text/javascript" src=" http://player.wavestreaming.com/?id=6QY5DZQB7VUEHMHE"></script>
    into a blank notepad file and save it as .html then upload it, it doesn't show the player, just displays the code.

    I've tried inserting <header> etc as well.

    Here is how it shows: http://barfilounge.com/radio.html

    How can I do this - thanks.
     
  2. Dynamic

    Dynamic Well-Known Member

    Code:
    <html>
    <head>
    <title>Radio Player</title>
    </head>
    <body>
    <center><font size="2" face="verdana" color="white">Radio BL Testing Mode</font></center>
    <script type="text/javascript" src="http://player.wavestreamer.com/cgi-bin/swf.js?id=6QY5DZQB7VUEHMHE"></script>
    <script type="text/javascript" src=" http://player.wavestreaming.com/?id=6QY5DZQB7VUEHMHE"></script>
    </body>
    </html>
     
  3. Dodgeboard

    Dodgeboard Well-Known Member

    You got several problems going on here...

    First of all, the encoding of this file you have pointed to is encoded incorrectly. It is encoded as text/code.

    Paste this into a notepad and save it as an html:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta http-equiv="Content-Style-Type" content="text/css">
     
    <title>Radio</title>
     
     
    <html>
    <head></head>
    <body>
    <script type="text/javascript" src="http://player.wavestreamer.com/cgi-bin/swf.js?id=6QY5DZQB7VUEHMHE"></script>
    <script type="text/javascript" src=" http://player.wavestreaming.com/?id=6QY5DZQB7VUEHMHE"></script>
    </body>
    </
    Whatever text editor you are using is doing some funky encoding on the file. Save it as text and choose "all files" if you use Notepad to keep from adding the .txt extension.
     
  4. ineedhelp

    ineedhelp Well-Known Member

    Both the above codes are still displaying the code and not the sentient/player. Can someone try uploading the code and see if it works for them pls? (the player won't probably display for you as it's been created to display on my site)
     
  5. Dodgeboard

    Dodgeboard Well-Known Member

    It's the way you are editing/saving them. What program are you using to save the file to an html?

    A person does not need to upload the files to test if this works. They can simply dump it into a text file and drop it inot their browser to test it. I did - it's fine, except that I get a message telling me that the files cannot be run from anywhere but your site.

     
  6. ineedhelp

    ineedhelp Well-Known Member

    TextEdit - Mac's default text edit programe, similar to NotePad on Windows. I select Web Page (.html) when saving.

    Can you try uploading it using your notepad ?
     
  7. Dodgeboard

    Dodgeboard Well-Known Member

    it's zipped - XF does not allow html file upload. unzip it and throw it on your host.
     

    Attached Files:

  8. Dodgeboard

    Dodgeboard Well-Known Member

    Don't select web page. That's why it is getting converted. Select text.
     
    ineedhelp likes this.
  9. ineedhelp

    ineedhelp Well-Known Member

    Thanks for the help! Problem solved. :)
     
  10. EQnoble

    EQnoble Well-Known Member

    This is the most basic you can get....
    HTML:
    <html>
        <head>
    
        </head>
     
        <body>
        
            <script type="text/javascript" src="http://player.wavestreamer.com/cgi-bin/swf.js?id=6QY5DZQB7VUEHMHE"></script>
            <script type="text/javascript" src=" http://player.wavestreaming.com/?id=6QY5DZQB7VUEHMHE"></script>
        
        </body>
        
    </html>
    


    extract and upload this to your server and test it...I can't because as you said it is locked to your domain name....
     

    Attached Files:

Share This Page