You tube in Glossary

You tube in Glossary

by Sushil Khatter -
Number of replies: 7

Dear Experts ,

I am trying to insert the You tube videos in Glossary .I would like the videos to appear in small size ,say 200X120 px

Example I am embedding  <iframe width="220" height="115" src="https://www.youtube.com/embed/8oRig0tE4UI" frameborder="0" allowfullscreen></iframe>

It shows as resized 220X115 in the glossary before hit I save. However ,After I save it comes as a full screen.

I have removed " allow full screen" from code above but it does not change .It still shows as full screen.

 http://www.thecareerschoolonline.com/mod/glossary/view.php?id=113&mode=entry&hook=220

I will greatly appreciate If someone can help

Thanks a lot

Sushil

Average of ratings: -
In reply to Sushil Khatter

Re: You tube in Glossary

by Simon Rediss-Whitfield -

Try this


<base target="_blank">

<iframe id="Example2" name="Example2" title="Example2" width="200" height="120" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.youtube.com/embed/8oRig0tE4UI">

</iframe>

In reply to Simon Rediss-Whitfield

Re: You tube in Glossary

by Sushil Khatter -

Dear Simon

Thanks for the help.

Unfortunately,its still showing the full screen with your code and when i give d= 200 x115.

I really do not know what to do.

Hope ,experts can help me try more ways

Thanks

Sushil

In reply to Sushil Khatter

Re: You tube in Glossary

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Did you add ? before the d=200x115 ?

I tried the code I pasted in a post above and it did resize your video.

In reply to Sushil Khatter

Re: You tube in Glossary

by Usman Asar -
Picture of Plugin developers Picture of Testers

Sushil,

There may be a reasons for it,  since you're using Essential theme, go into settings (Features section) and uncheck/Disable FitVids option. as it automatically expands your video to the width of region. alternatively, use in code class="fitvidsignore", so your embed code would be like

<iframe class="fitvidsignore" width="220" height="115" src="https://www.youtube.com/embed/8oRig0tE4UI" frameborder="0" allowfullscreen></iframe>

see if this works!
In reply to Usman Asar

Re: You tube in Glossary

by Sushil Khatter -

Dear Usman

Thanks a TON. It worked. You are the best

Greatly appreciate.

Sushil

In reply to Sushil Khatter

Re: You tube in Glossary

by Usman Asar -
Picture of Plugin developers Picture of Testers

It's not me, it's "theme essential" that is best, Gareth had been working on it for last two years to make it worth the praise wink

Also, if you find solution working, do select "useful" for post, for this goes to document writers that in turn ends up in moodle documentation.

In reply to Sushil Khatter

Re: You tube in Glossary

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Try clicking the code view icon in the text editor of the glossary entry and then pasting in this:


See the docs Media FAQ