Connecting Tech Pros Worldwide Help | Site Map

add a linkbox to script

Newbie
 
Join Date: Mar 2008
Posts: 3
#1: Mar 17 '08
hi i need a help

i have a image share site, and the script from "Mihalism Multi Host"

right now after uploading an image, the sript just give sigle link code

just like this



i want add a complete link code box on bottom just like this



can i ?? should i show link.tpl file??

thanks before

Commerical links removed. Not allowed due to Posting Guidelines - moderator
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#2: Mar 17 '08

re: add a linkbox to script


Quote:

Originally Posted by thinkfast


can i ?? should i show link.tpl file??

You can.
And yes, it might help.

Do you have any knowledge in php?
Newbie
 
Join Date: Mar 2008
Posts: 3
#3: Mar 17 '08

re: add a linkbox to script


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&amp;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="&lt;a href=&quot;<# BASE_URL #>viewer.php?file=<# FILENAME #>&quot;target=&quot;blank&quot;&gt;&lt;img src=&quot;<# THUMBNAIL #>&quot; border=&quot;5&quot; alt=&quot;<# FILENAME #>&quot; /&gt;&lt;/a&gt;" /></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="

" /></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 &lt;a href=&quot;<# BASE_URL #>&quot;&gt;Free image hosting&lt;/a&gt;" /></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="

" /></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="&lt;a href=&quot;<# BASE_URL #>&quot;target=&quot;blank&quot;&gt;&lt;img src=&quot;<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>&quot; border=&quot;0&quot; alt=&quot;<# SITE_NAME #>&quot; /&gt;&lt;/a&gt;" /></td>
<td>Hotlink for Websites</td>
</tr>
</table>
</td>
</tr>
</table>

<!-- END: FILE RESULTS TABLE -->
[/php]
Newbie
 
Join Date: Mar 2008
Posts: 3
#4: Mar 19 '08

re: add a linkbox to script


is anyone can help me please :((
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#5: Mar 19 '08

re: add a linkbox to script


Quote:

Originally Posted by thinkfast

is anyone can help me please :((

What other image links do you want in there?

All you have to do is add them to the html output..

Regards.
Reply


Similar PHP bytes