Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 08:08 am EST

Geeklog Forums

Allow HTML for YouTube


Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
hopeful
I would like to be able to embed YouTube videos on my site. I downloaded the YouTube plugin which works perfectly with staticpages. However, I would like to embed such videos in a story.

Example code for embedding YouTube videos is,

Text Formatted Code
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/GbDumbUXEmA"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/GbDumbUXEmA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>


I added the relevant tags and attributes to config.php. Now the admin_html array reads,

Text Formatted Code
$_CONF['admin_html'] = array (
    'p'     => array('class' => 1, 'id' => 1, 'align' => 1),
    'div'   => array('class' => 1, 'id' => 1),
    'span'  => array('class' => 1, 'id' => 1),
    'table' => array('class' => 1, 'id' => 1, 'width' => 1, 'border' => 1,
                     'cellspacing' => 1, 'cellpadding' => 1),
    'tr'    => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1),
    'th'    => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1,
                     'colspan' => 1, 'rowspan' => 1),
    'td'    => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1,
                     'colspan' => 1, 'rowspan' => 1),
    'object'    => array('class' => 1, 'id' => 1, 'width' => 1, 'height' => 1),
    'param'    => array('class' => 1, 'id' => 1, 'name' => 1, 'value' => 1),
    'embed'    => array('class' => 1, 'id' => 1, 'src' => 1, 'type' => 1,
                     'wmode' => 1, 'width' => 1, 'height' => 1)
);


The last three tags having been newly added. It isn't allowing me to embed videos into a story. Is there something I am missing or doing incorrectly.

Any help would be greatly appreciated.

Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: ofey

I would like to be able to embed YouTube videos on my site. I downloaded the YouTube plugin which works perfectly with staticpages. However, I would like to embed such videos in a story.

The youtube plugin should also work with stories. Opening up < embed > is dangerous to your sites' security.
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
Posts: 242
Location:Mexico
it watches this

Grettings !! Mr. Green
**Cuando el Alumno esta listo, el Maestro Aparece **
::Geeklog support in Spanish::
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
hopeful
jmucchiello,

Thanks for your help.

For stories neither [youtube:4iwDM9NAAwU]
and the youtube embed code are not working.

For staticpages: [youtube:4iwDM9NAAwU] doesn't work, but youtube emded code does work.

Am I missing something.

Shane

PS Koalasoft your post confuses me Confused
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: koalasoft

it watches this

Grettings !! Mr. Green

I completely misread his post. My 782 also handles inline YouTube videos.
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: ofey

PS Koalasoft your post confuses me Confused

Both Koala's and my last posts indicate two different plugins that you can download to provide support for embedding youtube videos in geeklog. Once you install and enable either plugin you will be able to embed youtube videos using the [youtube:videoid] autotag. My plugin allows for customizing various autotags. The youtube plugin Koalasoft pointed to only provides youtube support.

If you haven't installed a plugin before, go with the youtube plugin. It is the simpler of the two plugins.
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
hopeful
Hi,

Thanks for the reply. First, I didn't know there were two plugins which do this job.

Simply putting in something like,

[youtube:7X1T3sFdwN4]

into the story isn't working for me. So I am going to try your Autotags plugin.

Thanks for the help so far I will let you know how I get on.

Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
hopeful
I successfully (I think successfully) installed the autotag plugin.

Is the exact code to display a video,

Text Formatted Code
[youtube:7X1T3sFdwN4]


or

Text Formatted Code
[youtube:video_7X1T3sFdwN4]


I tried both and Mozilla wants me to install a plugin.

Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Look at the page source of the output, it should have generate the same < embed > text that your example had. I don't see why it would want to install a plugin unless you don't have flash installed on that copy of Mozilla.

And it is just [youtube:7X1T3sFdwN4]

And don't forget to enable "youtube" on the autotag admin page.
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
Hi,

The youtube tag is definitely enabled.

Here's some of my page source

Text Formatted Code
<!-- START OF CONTENT AREA -->
<b>Today's Featured Article</b>
<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>
  <td class="storytitleleft" width="85%" bgcolor="#FFCC00" nowrap>&nbsp;<a href="http://www.shanegibney.com/article.php?story=YouTubeTestPage">YouTube Test Page</a></td>
  <td class="storytitleright" width="15%" bgcolor="#FFCC00" align="right" nowrap>&nbsp;</td>
</tr>
<tr>
  <td class="storybox" colspan="2">
  <table class="storymainsection" border="0" cellpadding="3" cellspacing="0" width="100%">
  <tr><td><p><object width=\\\\\\\"425\\\\\\\" height=\\\\\\\"350\\\\\\\"><param name=\\\\\\\"movie\\\\\\\" value=\\\\\\\"http://www.youtube.com/v/7X1T3sFdwN4\\\\\\\"></param><param name=\\\\\\\"wmode\\\\\\\" value=\\\\\\\"transparent\\\\\\\"></param><embed src=\\\\\\\"http://www.youtube.com/v/7X1T3sFdwN4\\\\\\\" type=\\\\\\\"application/x-shockwave-flash\\\\\\\" wmode=\\\\\\\"transparent\\\\\\\" width=\\\\\\\"425\\\\\\\" height=\\\\\\\"350\\\\\\\"></embed></object></td></tr>
  <tr><td width="100%">
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td
    align="left"></td><td align="right"><em>Contributed by:

        </table></td>


As you can see there a huge number of slashes. Is that normal?

So I went in to the autotag editor and noticed the slashes are there too. Next I deleted them and saved. But still not working in the story. I notice that everytime I save in the autotag editor, two more slashes are created where the slashes are.

I presume the autotag for youtube, which comes with it, is complete or is there something else I need to do with it, besides just making sure it is enabled?

As I said before I could run the videos in a static page so I know I don't need a plugin. (Although that was with the youtube plugin) There's something else wrong.

Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
Could there be a conflict if running both the Autotags and YouTube plugins together?

I haven't uninstalled the YouTube plugin.

Thanks for you help,

Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
You could disable one or the other but I don't know how they interact together. I'll have to look into the slashes problem. I wrote the plugin for the 1.4.0. What version are you running? I haven't tested it again 1.4.1 yet.
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
Posts: 242
Location:Mexico
youtube plugin run perfectly in geeklog 1.4.1 :banana: :shakehands:

Grettings !! Mr. Green
**Cuando el Alumno esta listo, el Maestro Aparece **
::Geeklog support in Spanish::
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
confused
I am currently running version 1.4.0sr5-1

By allowing HTML, is for me the only way to enable youtube videos in stories.

Thanks for your help folks,

Shane


Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

dkcollier

Forum User
Newbie
Registered: 04/30/04
Posts: 3
The YouTube plugin works in both static and story pages. How can I control the screen display size? Let's say I want the viewer only to be 225x150
<object width="225" height="150">
 Quote

All times are EST. The time is now 08:08 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content