Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Youtube in news

Asked Modified Viewed 3,332 times
S
Shadow_asp
S
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
asked
Junior Member

I'm trying to get the Youtube embed code to work in news articles but the code is disappearing when I click preview.
I'm trying to get this code to work in the extended news section:
<iframe width="640" height="360" src="http://www.youtube.com/embed/I0untAgEncI?rel=0" frameborder="0" allowfullscreen></iframe>

I have a Youtube bbcode installed and working for the forum.
Do I need some sort of mod or infusion for this?
I'm using PHPF 7.02.05
Thanks in advance.
0 replies

3 posts

P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Use old youtube code.
0 replies
S
Shadow_asp
S
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

PolarFox wrote:

Use old youtube code.

Here is the old code:
<object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/I0untAgEncI?version=3&amp;hl=nb_NO&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/I0untAgEncI?version=3&amp;hl=nb_NO&amp;rel=0" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></object>

That also disappear when I click preview.
Here is the news-page.
HTML source:
[syntaxhighlighter brush=html,first-line=1,highlight=0,collapse=false,html-script=false]<table border="0">
<tbody>
<tr>
<td><img style="vertical-align: middle; display: block; margin-left: auto; margin-right: auto;" src="/news_images/web_stratis_artwork_1.jpg" alt="" width="724" height="270" /></td>
</tr>
<tr>
<td>
<h2 style="text-align: center;"><span style="color: #ffffff;">Introduction</span></h2>
<p style="text-align: center;"><span style="color: #ffffff;">Operating under NATO&rsquo;s Mediterranean Joint Force Command, Stratis is now home to Task Force Aegis, a predominantly US Army deployment tasked with maintaining the security of Air Station Mike-26. Originally Greece&rsquo;s &lsquo;first green island&rsquo;, the island was repurposed into a military installation in the early 2020s. Now the front-line watch over an expanding Iranian empire, the island holds several strategic locations, including a large airfield built on reclaimed land and an advanced radar facility, which forms a key part of the radar belt monitoring NATO&rsquo;s eastern front.</span></p>
</td>
</tr>
<tr>
<td><img style="vertical-align: middle; display: block; margin-left: auto; margin-right: auto;" src="/news_images/web_stratis_artwork_2.jpg" alt="" width="724" height="270" /></td>
</tr>
<tr>
<td>
<h2 style="color: #ffffff; text-align: center;">Geography</h2>
<p style="color: #ffffff; text-align: center;">Approximately 30 km south west of the shores of Limnos, Stratis is a dry, hilly island with an area of 25 square kilometres situated in North Aegean (39&deg;31&rsquo;8&Prime;N, 25&deg; 0&rsquo;24&Prime; E). The highest peak reaches over 200 meters above sea level. There are two main settlements on the island: Agios Efstratios and Agios Nikolaos, sparsely inhabited by a small civilian population, who provide fishing and general maintenance services to the military personnel.</p>
</td>
</tr>
<tr>
<td><img style="vertical-align: middle; display: block; margin-left: auto; margin-right: auto;" src="/news_images/web_stratis_artwork_3.jpg" alt="" width="724" height="270" /></td>
</tr>
<tr>
<td>
<h2 style="color: #ffffff; text-align: center;">History</h2>
<p style="color: #ffffff; text-align: center;">For a long time, this remote island served as home to those forced to withdraw from their normal life; from the exiled Saint Eustratius in 9th century, and from whom Stratis takes its name, to the political prisoners and exiles in early 20th century and 1970s. After the 1968 earthquake, much of Agios Efstratios had to be rebuilt, the traditional fishing houses replaced by the uniform blockhouses still to be seen in the settlement today. In 2009, an ambitious project to turn Stratis into Greece&rsquo;s first &lsquo;green island&rsquo; &ndash; with a complete reliance on renewable energy sources for all domestic and transportation needs &ndash; was launched. By the late 2010s, Stratis had completed 90% of its goal.</p>
<p style="color: #ffffff; text-align: center;">In 2019, construction of an artificial area for a future military airstrip was commenced; 18 months later, an airfield, defensive structures and Air Station Mike-26 were fully operational. After the Iranian attack on Turkey in 2033, the base served as transition and training facility for the NATO troops pouring into Istanbul. Shortly before the armistice, formalised by the Jerusalem Accords, the sea between Stratis and Limnos saw sporadic air and naval engagements. After the cease-fire, Stratis and Air Station Mike-26 has become the Easternmost headland of NATO forces in the Mediterranean, and the first port of call for exiles of the Iranian invasion of Limnos.</p>
</td>
</tr>
<tr>
<td><img style="vertical-align: middle; display: block; margin-left: auto; margin-right: auto;" src="/news_images/web_stratis_artwork_4.jpg" alt="" width="724" height="270" /></td>
</tr>
<tr>
<td>
<h2 style="color: #ffffff; text-align: center;">Situation</h2>
<p style="color: #ffffff; text-align: center;">Stratis has been literally turned into a military base, currently housing the US Army task force, an airfield and a radar station personnel and security troops. The recent build-up of Iranian battlegroups on the western coast of Turkey and various Aegean islands has put this installation on high alert. A NATO commanded CTRG group has recently moved to the Stratis in preparation of an undisclosed mission.</p>
</td>
</tr>
</tbody>
</table>
<table border="0" align="center">
<tbody>
<tr>
<td style="text-align: center;"><a href="/images/photoalbum/album_1/arma3_screenshot_stratis_1204_.jpg" target="_blank"><img src="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__t1.jpg" alt="" width="100" height="56" /></a><br /></td>
<td><a href="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__1.jpg" target="_blank"><img src="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__t1_1.jpg" alt="" width="100" height="56" /></a><br /></td>
<td><a href="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__2.jpg" target="_blank"><img src="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__t1_2.jpg" alt="" width="100" height="56" /></a><br /></td>
</tr>
<tr>
<td><a href="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__3.jpg" target="_blank"><img src="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__t1_3.jpg" alt="" width="100" height="56" /></a></td>
<td><a href="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__4.jpg" target="_blank"><img src="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__t1_4.jpg" alt="" width="100" height="56" /></a><br /></td>
<td><a href="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__5.jpg" target="_blank"><img src="/images/photoalbum/album_1/arma3_screenshot_stratis_1204__t1_5.jpg" alt="" width="100" height="56" /></a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><a href="/images/photoalbum/album_1/web_stratis_map_overview.jpg" target="_blank"><img style="vertical-align: middle;" src="/images/photoalbum/album_1/web_stratis_map_overview_t1.jpg" alt="" width="100" height="78" /></a></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><br /></td>
</tr>
</tbody>
</table>[/syntaxhighlighter]
I tried adding the code after </table> (line 65) and inside one of the table cells (line 61). In both cases the youtube code disappear when I hit preview or save.
The Youtube video is located here.

Edit: I noticed if I use the "insert embedded media" button and just paste the url to the movie and go with the default flash-video settings the video shows in the preview window inside the insert/edit media dialog. I can also play the video from there. But when I hit "insert" button I am returned to the news editor and the area where the video is supposed to appear is empty. When I check the HTML source nothing is added.

Merged on Apr 20 2012 at 16:04:29:
I figured out the problem. I was using CKeditor in 7.02.04
7.02.05 is overwriting /administration/news.php with it's own. I again replaced that file with the one that comes with the CKeditor and now CKeditor is back and I can add Youtube videos via the "add flash movie" function and just pasting the url and specifying the size.
Sorry for wasting everyones time.
Edited by Shadow_asp on 20-04-2012 15:04,
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

The problem is "wysiwyg" ...
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
S
S
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet