Author Topic: Utube videos - anyone know how to embed them?  (Read 2747 times)

Offline paddygoat

  • Wiki Editor
  • Barrel scraper
  • *
  • Posts: 6
Utube videos - anyone know how to embed them?
« on: November 30, 2010, 06:24:09 PM »
Utube videos - anyone know how to embed them? I've tried a few ways and no joy yet. ???

I will try this next, if i have admin access:

As someone suggested—and a big thank you to them whoever it was—here is a very simple way to to embed YouTube videos in your weblog.

I first tried a couple other ways that people suggested, but they did not work for me.

For all of those people who run their own site, but are not experts, like myself, here is how to do it step-by-step.

1.  Go to your control panel.

2.  Click on the “ADMIN” tab.

3.  Click on “Weblog Administration”.

4.  Click on “Custom Weblog Fields”.

5.  Click on “Add/Edit Custom Fields”.

6.  Click “Create a New Custom Field”.

7.  In “Field Name”, type “youtube”.

8.  In “Field Label”, type “youtube”.

9.  In “Field Instructions”, you can either type something like “Paste the code from the YouTube ‘Embed’ field”, or you can just leave this field blank.

10. Change the “Field Type” pulldown menu to “Textarea”.

11. You don’t need to change anything else.

12. Click on “Submit”.

—————-

Now you need to add this field to your weblog page so that it is displayed.

This is how you do that.

13. Click on the “Templates” tab.

14. Click on the template that displays your weblog page where you want the YouTube video to show.

For me, this template is called “comments”. For you, it may be called something else.

15. Determine where you want the YouTube video displayed on the page.

16. Insert the following code. (The “if…” statement simply says “if the field called youtube is not blank, display that field.)

—————

<!—-Youtube Link—->

{if youtube != “”}
{youtube}
{/if}

<!—-Youtube Link End—->

—————

That’s it.

Then just simply copy and paste the “Embed” code from YouTube into the “youtube” field on the entry where you want it to display.

Here is a sample of the code that you will paste into the “youtube” field:

<object width=“425” height=“344”></param><embed src=“http://www.youtube.com/v/OpzEF0D2xfE&hl=en” type=“application/x-shockwave-flash” width=“425” height=“344”></embed></object>

« Last Edit: November 30, 2010, 06:27:12 PM by paddygoat »

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6378
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Utube videos - anyone know how to embed them?
« Reply #1 on: November 30, 2010, 06:33:37 PM »
Paddy ...

Tony's the man for that.  But you could try having a look on the Whole Batch Demeth page and looking at the code for the vid there.
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline paddygoat

  • Wiki Editor
  • Barrel scraper
  • *
  • Posts: 6
Re: Utube videos - anyone know how to embed them?
« Reply #2 on: November 30, 2010, 06:41:56 PM »
ok ..... sounds like the easiest way. Cheeers!

Offline Tony

  • Administrator
  • Oil baron
  • *******
  • Posts: 5104
  • Fo' shizzle, biodizzle
    • Southampton Waste Oil Collection
  • Location: Southampton
Re: Utube videos - anyone know how to embed them?
« Reply #3 on: November 30, 2010, 07:05:24 PM »
There's one on the Methanol page I quite like too!

http://www.biopowered.co.uk/wiki/Methanol

Just put in something like:

{{#ev:youtube|98JuJ-G1qXY|240|right|Methanol burning in a water cooler - source: Mad Physics}}

The code thing being the youtube video identifier.

Offline paddygoat

  • Wiki Editor
  • Barrel scraper
  • *
  • Posts: 6
Re: Utube videos - anyone know how to embed them?
« Reply #4 on: November 30, 2010, 08:57:01 PM »
Cheers, worked well for me.