a litle bit
but i try to learn
this is the link.tpl code
[php]
<!-- BEGIN: FILE RESULTS TABLE -->
<if="is_file($mmhclass->info->root_path.$mmhclass->info->config['upload_path'].$mmhclass->funcs->thumbnail_name("<# FILENAME #>")) == false && preg_match("/links|viewer/", $mmhclass->input->server_vars['php_self']) == false && $mmhclass->templ->templ_globals['extension'] != "bmp" && $mmhclass->templ->templ_globals['extension'] != "ico"">
<div style="text-align: center;">
<b>Notice</b>: Failed to generate thumbnail for file <b><# FILENAME #></b> because of an internal error.
<br /><br />
</div>
</endif>
<if="preg_match("/viewer/", $mmhclass->input->server_vars['php_self']) == false">
<div style="text-align: center;">
<a href="viewer.php?file=<# FILENAME #>" class="button1">View Full Image</a>
</div>
<br />
</endif>
<table cellpadding="5" cellspacing="0" width="100%">
<tr>
<td style="width: 20%;" valign="middle">
<div style="text-align: center;">
<a href="<# BASE_URL #>viewer.php?file=<# FILENAME #>"><img src="index.php?module=thumbnail&file=<# FILENAME #>" class="thumbnail" alt="<# FILENAME #>" style="max-height: 125px; " /></a>
</div>
</td>
<td style="width: 80%;">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td><input readonly="readonly" class="input_field" onclick="javascript
:highlight(this);" type="text" style="width: 610px" name="option" value="<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>" /></td>
<td>Direct Link</td>
</tr>
<tr>
<td><input readonly="readonly" class="input_field" onclick="javascript
:highlight(this);" type="text" style="width: 610px" name="option" value="<a href="<# BASE_URL #>viewer.php?file=<# FILENAME #>"target="blank"><img src="<# THUMBNAIL #>" border="5" alt="<# FILENAME #>" /></a>" /></td>
<td>Thumbnail for Websites</td>
</tr>
<tr>
<td><input readonly="readonly" class="input_field" onclick="javascript
:highlight(this);" type="text" style="width: 610px" name="option" value="
[IMG]<# THUMBNAIL #>[/IMG]" /></td>
<td>Thumbnail for forums</td>
</tr>
<tr>
<td><input readonly="readonly" class="input_field" onclick="javascript
:highlight(this);" type="text" style="width: 610px" name="option" value="Thanks to <# SITE_NAME #> for <a href="<# BASE_URL #>">Free image hosting</a>" /></td>
<td>Link to us</td>
</tr>
<tr>
<td><input readonly="readonly" class="input_field" onclick="javascript
:highlight(this);" type="text" style="width: 610px" name="option" value="
[IMG]<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>[/IMG]" /></td>
<td>Hotlink for forums</td>
</tr>
<tr>
<td><input readonly="readonly" class="input_field" onclick="javascript
:highlight(this);" type="text" style="width: 610px" name="option" value="<a href="<# BASE_URL #>"target="blank"><img src="<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>" border="0" alt="<# SITE_NAME #>" /></a>" /></td>
<td>Hotlink for Websites</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- END: FILE RESULTS TABLE -->
[/php]