Quote:
|
easythumb Easythumb is an alternative to the complete Webthumb API. It has a smaller featureset but only requires a single GET request and supports caching thumbnails on Webthumb's servers. specification Endpoint: http://webthumb.bluga.net/easythumb.php Parameters: user: Your Webthumb user_id available on your user page url: Site to thumbnail, make sure to urlencode this size: Size of the thumbnail to return small, medium1, medium2, larger cache: The # of days old a cached version of the thumbnail can be - 1 to 30 hash: The security hash components are covered below security hash The security hash is an md5 hash encoded in hexidecimal containing the following concatenated together current date: The current date in gmt formated as YYYYmmdd url: The url to thumbnail not urlencoded apikey: Your Bluga.net apikey example Any example request looks like: http://webthumb.bluga.net/easythumb....dium &cache=1 Easythumb requests return an image and include the Content-type headers so they can be used directly in an img tag |
The big problem is make a md5 that contains date,url and apikey.
Well, i have modified link_summary.tpl to get variables.
- First, parameters:
PHP Code:
$url = '{$url_short}';
$apikey = '3587af0be8710bc1464116918f700ad0';
$userId = 4152;
$date = gmdate('Ymd');
$size = 'medium';
PHP Code:
<a class="previewlink" href="{$url}" target="_blank"><img src="http://webthumb.bluga.net/easythumb.php?user={php} echo $userId; {/php}&url={php} echo urlencode($url); {/php}&hash={php} echo md5($date.$url.$apikey); {/php}&size={php} echo $size; {/php}" width="150" height="112" border="0" alt="SnapShot"/></a></div>
I have got show all parameters, but not $url
the problem i have is i canīt get to show the variable-->
PHP Code:
$url = '{$url_short}';
PHP Code:
{php}
$url = 'http://www.yahoo.es';
$apikey = '7414af0be8710bc1464116918f700ad0';
$userId = 1245;
$date = gmdate('Ymd');
$size = 'medium';
{/php}
<a class="previewlink" href="{$url}" target="_blank"><img src="http://webthumb.bluga.net/easythumb.php?user={php} echo $userId; {/php}&url={php} echo urlencode($url); {/php}&hash={php} echo md5($date.$url.$apikey); {/php}&size={php} echo $size; {/php}" width="150" height="112" border="0" alt="SnapShot"/></a></div>
do you know how i can do it?
Someone knows how i can achieve it?
Thanks!





Linear Mode

