Page 1 of 1

newb query: url doesn't show

Posted: Sun Mar 10, 2013 5:54 pm
by thealexangroup2
the top code is the ORIGINAL iframe code from the index.php file.


<dd><iframe width="221" height="178" src="http://www.youtube.com/embed/<?php echo $video_explode[1];?>" frameborder="0" allowfullscreen></iframe></dd>
</dl>


i thought that if i just replaced this part of url " <?php echo $video_explode[1];? " with the actual part of the youtube embed code url here:

" 0VopFinhWzY ", it would work.

but it doesn't.


<td valign="top" width="42%" class="vidv"><iframe title="" src="http://www.youtube.com/embed/[b]0VopFinhWzY[/b]">" frameborder="0" width="322" height="183"></iframe><br /></td>
<td valign="top" style="padding:0 0 0 2%;"><?php echo $right_cont['description'];?></td>

thanx in advance and if you need more info let me know,
alx

Re: newb query: url doesn't show

Posted: Sun Mar 10, 2013 6:06 pm
by requinix
Look at your HTML.

Code: Select all

<iframe title="" src="http://www.youtube.com/embed/0VopFinhWzY">" frameborder="0" width="322" height="183"></iframe>
You didn't quite replace the PHP properly: you left the > in and added an extra quote.

Re: newb query: url doesn't show

Posted: Sun Mar 10, 2013 8:33 pm
by thealexangroup2
thanx for response,

yeah, sorry, actually, the code i have in cpanel looks like this:

<td valign="top" width="42%" class="vidv"><iframe title="" src="http://www.youtube.com/embed/0VopFinhWzY" frameborder="0" width="322" height="183"></iframe>

and it still doesn't show.

incidentally, this code shows identically in 2 files:

index.php
manage_video.php

now the thing is, when i check the source code of the page, it doesn't show. it still shows the original code, this:
<iframe title="" src="http://www.youtube.com/embed/Jcg-9YCx3G ... S&hl=en_US" frameborder="0" width="322" height="183"></iframe>

even though in my cpanel, the new code is there. i purged/cleared cache, etc. but still same.

Re: newb query: url doesn't show

Posted: Sun Mar 10, 2013 9:54 pm
by requinix
Well, either you're editing the wrong file or there's some caching in place still showing the old version. Since it's the result of PHP code I'm going to guess the former.

Re: newb query: url doesn't show

Posted: Mon Mar 11, 2013 1:30 am
by thealexangroup2
requinix,

your reply got me to looking at other files and it turned out there was an error in the profile.php code. so that got updated and all is good in the world once more.