m3ssy
New Member
- Joined
- Feb 19, 2009
- Messages
- 24
- Reaction score
- 0
Ive added such a code to forum.php but it shows the movie only while browsing forum and not in news on a main page.
Any ideas how to make it work on the main page?
@edit
lol, i solved it myself.
just needed to add one line in latestnews.php
Code:
while(stripos($text, '[youtube]') !== false && stripos($text, '[/youtube]') !== false )
{
$youtube = substr($text, stripos($text, '[youtube]')+14, stripos($text, '[/youtube]') - stripos($text, '[youtube]') - 14);
$text = str_ireplace('[youtube]'.$youtube.'[/youtube]', '<embed src="http://www.youtube.com/v/'.$youtube.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>', $text);
}
Any ideas how to make it work on the main page?
@edit
lol, i solved it myself.
just needed to add one line in latestnews.php
Last edited: