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.
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?
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.
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?
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.
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.
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.
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.
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.
<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>
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.
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.