Youtube video not displaying in Internet Explorer?

Discussion in 'HTML & Website Design' started by jeremyhowell, Jan 24, 2011.

  1. #1
    http://youfml.com/video/2/the-dumbest-millionaire-contestant-251

    Im trying to fix the code for this site, please no comments about the code please I know it is an absolute mess, but all I have been asked to do is fix the video player, as it is not displaying in IE? Im hoping its not a problem with the embed code as I cant find the array where the embed code is store Ive looked through all the config and include files that i would think it would be in, its a smarty template, and Im not really familiar with it, {$parray.0.embed|html_entity_decode} is what i found in the .tpl file?

    Also in IE7 the tab menus on the right are distorted, not sure how to fix this as I dont have IE and cant download it as I have windows 7 so I cant view whats happening there, all I have is screenshot. :(

    Any help appreciated.
     
    jeremyhowell, Jan 24, 2011 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Oh man, it has been a long time since I have seen Smarty template code. It is very similar to phpBB coded templates, BTW.

    That code in the template file is looking for a variable (the $parray.0.embed) and it strips the entities from the code (the html_entity_decode). If you trace back into the file that calls the template, you will find the code that set up the variable $parray.

    The variable for the embed is set up in a controlling php file somewhere (think Model/View/Controller). It grabs the information form the database and sets the variable. You are not going to find it by regular searching. You need to trace backwards from the template variable to the controlling php file.

    Is this a phpNuke site?
     
    Dodger, Jan 24, 2011 IP
  3. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #3
    Sorry for the dumb question, but what directory would the controlling file most likely be in for this site, or what should I be looking for exactly? Sorry Im not used to this CMS yet, I've gone through the config.php and the main template files but have had no luck. Any suggestions?

    And no, I dont think its a PHP nuke site.

    Im sorry if this a stupidly simple question.
     
    jeremyhowell, Jan 24, 2011 IP
  4. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Quick answer, I have no clue. I would need to look at the files in order to muddle through it.
     
    Dodger, Jan 24, 2011 IP
  5. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #5
    OK, well we may as well make sure we are on the right band wagon here, is it most likely the embed code that is making it not show up in internet explorer?
     
    jeremyhowell, Jan 24, 2011 IP
  6. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I think the video is there. It is hidden behind the DIV#related-videos-wrapper which has a negative top margin. Remove that from the CSS and see if it reveals itself.
     
    Dodger, Jan 24, 2011 IP
  7. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #7
    Hi thanks for the help, that doesnt seem to work though. :(

    Pity IE doesnt have an inspect element tool like Chrome, itd sure come in handy.
     
    jeremyhowell, Jan 24, 2011 IP
  8. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Try a DIV around the embed, with a height/width to the same height/width of the video. Maybe that will force the stuff below it to move out of the way.
     
    Dodger, Jan 24, 2011 IP
  9. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #9
    Looks like its just not displaying, full stop. So I guess I can safely assume its a problem with 6 lines of code Ill probably never find. Lol.
     
    jeremyhowell, Jan 24, 2011 IP
  10. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Que sera, sera.
     
    Dodger, Jan 24, 2011 IP
  11. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #11
    Too True. Ah well thanks for your help anyway Dodger. Much appreciated.
     
    jeremyhowell, Jan 24, 2011 IP
  12. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Try taking the code from the Html and putting it on a static page by itself, and see if works that way. I am pretty sure that the slider below it is covering it up.
     
    Dodger, Jan 25, 2011 IP
  13. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
  14. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #14
        
    <object  width="645"  height="360">
       <param name="movie" value="http://www.youtube.com/e/s0hTmj3f4Zo"></param>
       <param name="allowFullScreen" value="true"></param>
       <param name="allowscriptaccess" value="always"></param>
       <embed src="http://www.youtube.com/e/s0hTmj3f4Zo" 
           type="application/x-shockwave-flash"  width="645"  height="360" 
          allowscriptaccess="always" allowfullscreen="true">[color=red]</param>[/color]
       </embed>
    </object>
    Code (markup):
    I see the problem now. You have a closing </param> tag inside of your <embed>
     
    Dodger, Jan 25, 2011 IP
  15. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #15
    I actually just noticed that now as I went over the code again, I was hoping it wasn't a problem with the code though. :( I guess I have my work cut out for me finding that file. Thanks for your help Dodger.
     
    jeremyhowell, Jan 25, 2011 IP
  16. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #16
    You can test that by removing from the .html file you just made. If it works, then your work will definitely by less cut out for you.
     
    Dodger, Jan 25, 2011 IP
  17. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #17
    Tested it, it works. Thanks for your help Dodger, once again much appreciated. :)
     
    jeremyhowell, Jan 25, 2011 IP