BACK TO DIRECTORY

ytlink

by xundeenergie

5.0
(1 ratings)

Gives you a shortcode for Youtube-Videos and makes a preview-pic for this Video and realizes to watch the video with fancybox for wordpress oder prettyPhoto or in a extra tab. You choose, what you want.

The URL ist for example: http://www.youtube.com/watch?v=XmRLJ4XvpZk
The shortcode is

[ytcode ytid="XmRLJ4XvpZk"]
[ytcode ytid="XmRLJ4XvpZk" tit="Vemma Strategie Deutsch"]
[ytcode ytid="XmRLJ4XvpZk" tit="Vemma Strategie Deutsch" x="800" y="488"]
[ytcode ytid="XmRLJ4XvpZk" x="800" y="488" ppic="2"]
[ytcode ytid="XmRLJ4XvpZk" ppic="default"]
[ytcode ytid="XmRLJ4XvpZk" fso="v"]
  • Options:
  • float=”left|none|right”
    if float is none, you can choose the alignment:

  • align=”left|center|right”

  • fso=”h|v|n”
    horizontal, vertical, none filmstripes

  • ppic=”default|1|2|3″
    takes the previewpic from youtube. This are the four possible picture-names.

  • vb=”prettyphoto|fancybox|blank”
    if installed it uses prettyphoto or fancybox. Or it opens the video in a new tab (target=”_blank”)

  • pfeil=”FF0000″
    the color of the arrow is now red

Arbitrary section

*Known Issues:
– Publishing an Artikel/Site or update ist can cause an error-message “Warning: Cannot modify header information – headers already sent by (…)”
maybe this is theme specific or it depends to other plugins!

A brief Markdown Example

Unordered list:

  • Make opacity from the overlay-pic with the arrow on the preview-pic adjustable
  • resizing of the previewpic doesn’t work correct!

Here’s a link to WordPress and one to Markdown’s Syntax Documentation.
Titles are optional, naturally.

Markdown uses email style notation for blockquotes and I’ve been told:

Asterisks for emphasis. Double it up for strong.

<?php code(); // goes in backticks ?>

Screenshots

Page one "Settings for Youtube-Link"

Page one "Settings for Youtube-Link"

Settings for Fancybox

Settings for Fancybox

Plugin Details

Active Installs
10
Total Downloads
2,717
Version
0.9.2
Requires WP
3.0.1
Requires PHP
Tested Up To
3.5.2
Added
2013-03-07
Last Updated
2013-04-01 3:55am GMT

Ratings

5
1
4
0
3
0
2
0
1
0