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

Problem: I want a Flash Player file on a node Page but it requires external files:

Discussion in 'Styling and Customization Questions' started by CritiKiL, Mar 27, 2012.

  1. CritiKiL

    CritiKiL Active Member

    I want to put our podcast player (named 'clancast') into one of my node pages, but this player requires other files and folders to be with it at the same location. Since this is a node 'page', how can I:

    1) Copy the necessary files/folders onto the server location, that this player is at?
    2) Have the player point to an 'Absolute' location of these files/folders on another server?
    3) Have the player file 'Relative' or the same root server (or same location as the necessary files)?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Presumably it's just a matter of putting the embed HTML into the page node and uploading the associated files to your XF directory. If there are problems with pathing then maybe the player has a param to specify the path. This would normally be in the embed HTML.
     
    CritiKiL likes this.
  3. CritiKiL

    CritiKiL Active Member

    Yes, I know that it does: The root of wherever the .swf is placed. If I knew where the path on the server was at then I'd have no problem uploading the files/folders to that location. I deleted that page but if I were to create a new one, how would I know where to place the files/folders depending on the node # of the page?
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You probably need to use full web paths for the file locations. For example, if the flash files are uploaded here:

    http://www.domain.com/forum/flash/

    Then the full path to those files would be:

    /forum/flash/

    "Where" doesn't matter if you use full paths (instead of relative).
     
  5. CritiKiL

    CritiKiL Active Member

    Oh no, it's not a matter of relative or absolute. The files/folders have to physically be where the .swf file is. In the case of my xenoforo site I want to put the .swf file 'inside of the page I've created', which puts the .swf 'in the page' instead of on a nearby server from which I can point to. Now my problem is that, when I give the .swf a path to where the other files are, the Audio & Video doesn't work because it's looking for the path which has to be in the same physical space that the .swf is in. I used to have a code which would tell the .swf to look for the xml files elsewhere but I have lost the necessary code. ;-(

    I think I'm going to let this one go, simply because I can just make the podcast 'pop up' from it's original location with no problems, like this:

    http://clankillas.com/clancast

    My problem was that I wanted the actual .swf to be inside of the created Page.
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Why can't you create a directory and upload all of the files there? Then load the swf file from there (specify the location in your embed code).

    Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="512" height="348" title="flash video">
            <param name="movie" value="/path/to/mediaplayerCKwidescreen.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="transparent" />
            <embed src="/path/to/mediaplayerCKwidescreen.swf" wmode="transparent" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="512" height="348"></embed>
    
      </object>
    
    
     
  7. CritiKiL

    CritiKiL Active Member

    Because I keep getting an 'undefined' error, because the player is looking for the location of the files and the path isn't working even though I think I have the correct path:

    Code:
    <div align='center'><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="512" height="348" title="flash video">
            <param name="movie" value="clancast/mediaplayerCKwidescreen.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="transparent" />
            <embed src="clancast/mediaplayerCKwidescreen.swf" wmode="transparent" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="512" height="348"></embed>
     
      </object>
    </div>
    All the files/folders (audio folder and video folder) are in the root under the 'clancast' folder (community/clancast). Here's where I have the player:

    CLICK HERE FOR SITE:
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use a full path, starting with a slash.

    /clancast/mediaplayerCKwidescreen.swf
     
  9. CritiKiL

    CritiKiL Active Member

    Tried that. When I use the forward-slash, the player does not show...
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Then there must be some other pathing issue within the embedded object.

    An alternative is to use an iframe to load the existing page within your page node:

    Code:
    <iframe src="http://clankillas.com/clancast/" width="400" height="400" scrolling="no"></iframe>
    
     
    CritiKiL likes this.
  11. CritiKiL

    CritiKiL Active Member

    That worked! SEEE Man! It's never something easy when I ask for help bro ;-) Thank You.
     

Share This Page