473,324 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

add a linkbox to script

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
Mar 17 '08 #1
4 1459
Markus
6,050 Expert 4TB

can i ?? should i show link.tpl file??
You can.
And yes, it might help.

Do you have any knowledge in php?
Mar 17 '08 #2
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="[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 &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="[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="&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]
Mar 17 '08 #3
is anyone can help me please :((
Mar 19 '08 #4
Markus
6,050 Expert 4TB
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.
Mar 19 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Sticks | last post by:
ok... im not quite sure how to describe my problem. i have a php script that runs through my entire php site and writes the resulting output to html files. this is necessary as the nature of the...
6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
2
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
3
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
7
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.