Skip to content

Instantly share code, notes, and snippets.

@spiffin
spiffin / textpattern_vimeo_thumb.php
Last active August 29, 2015 14:08
Textpattern form for cached custom Vimeo thumbs. Requires /images/vimcache directory and custom field no 3 = 'vthumbid"
<txp:if_custom_field name="vthumbid">
<img src="<txp:site_url />images/vimcache/<txp:custom_field name='vthumbid' />.jpg" alt="<txp:site_name /> - <txp:title />" class="ex-thumb">
<txp:else />
<txp:php>//<?// CodeMirror
global $thisarticle, $prefs, $id;
$thisid = $thisarticle['thisid'];
if(!function_exists('get')) {
function get($url) {
@spiffin
spiffin / vimeothumb.php
Last active November 10, 2016 20:35 — forked from bramus/vimeothumb.php
forked from bramus/vimeothumb.php
<?php
/**
* Vimeo Thumbnail Script - Gets the poster frame for a Vimeo video id.
* @author Bramus Van Damme <bramus@bram.us>
*
* Example Request: vimeothumb.php?id=83936766
*
* Now for any width up to 1280 - and custom height too - see Thumbnail found section below
*/