Aangemaakte reacties

2 reacties aan het bekijken - 1 tot 2 (van in totaal 2)
  • Thread starter woodwoody

    (@woodwoody)

    if($field['id'] == 8)
    		{
    		$url = $field_value->value;
    		parse_str(parse_url( $url, PHP_URL_QUERY), $videocode);
    		echo '<iframe width="420" height="315" src="http://www.youtube.com/embed/'.$videocode['v'].'" frameborder="0" allowfullscreen></iframe><br />';
    		}
    Forum: Overige
    In antwoord op: plugin gezocht
    Thread starter woodwoody

    (@woodwoody)

    1.create a new custom field in mingle.
    2.go to /wp-content/plugins/mingle/classes/views/mngl-custom-fields
    3.edit info_fields.php
    4.put on line 8 this code:

    if($field[‘id’] == 8)
    {
    $url = $field_value->value;
    parse_str(parse_url( $url, PHP_URL_QUERY), $videocode);
    echo ‘<iframe width=”420″ height=”315″ src=”http://www.youtube.com/embed/&#8217;.$videocode[‘v’].'” frameborder=”0″ allowfullscreen></iframe>
    ‘;
    }

    you can find the id of the custom made youtubefield in your database.
    change the 8 in your own id!

2 reacties aan het bekijken - 1 tot 2 (van in totaal 2)