add a linkbox to script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thinkfast
    New Member
    • Mar 2008
    • 3

    #1

    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
    Last edited by ronverdonk; Mar 17 '08, 12:26 PM. Reason: commercial links removed
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    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?

    Comment

    • thinkfast
      New Member
      • Mar 2008
      • 3

      #3
      a litle bit

      but i try to learn

      this is the link.tpl code
      [php]
      <!-- BEGIN: FILE RESULTS TABLE -->

      <if="is_file($m mhclass->info->root_path.$mmh class->info->config['upload_path'].$mmhclass->funcs->thumbnail_name ("<# FILENAME #>")) == false && preg_match("/links|viewer/", $mmhclass->input->server_vars['php_self']) == false && $mmhclass->templ->templ_global s['extension'] != "bmp" && $mmhclass->templ->templ_global s['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.ph p?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?fi le=<# FILENAME #>"><img src="index.php? module=thumbnai l&amp;file=<# FILENAME #>" class="thumbnai l" 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="reado nly" class="input_fi eld" onclick="javasc ript: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="reado nly" class="input_fi eld" onclick="javasc ript:highlight( this);" type="text" style="width: 610px" name="option" value="&lt;a href=&quot;<# BASE_URL #>viewer.php?fi le=<# FILENAME #>&quot;target= &quot;blank&quo t;&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="reado nly" class="input_fi eld" onclick="javasc ript:highlight( this);" type="text" style="width: 610px" name="option" value="[IMG]<# THUMBNAIL #>[/IMG]" /></td>
      <td>Thumbnail for forums</td>
      </tr>
      <tr>
      <td><input readonly="reado nly" class="input_fi eld" onclick="javasc ript:highlight( this);" type="text" style="width: 610px" name="option" value="Thanks to <# SITE_NAME #> for &lt;a href=&quot;<# BASE_URL #>&quot;&gt;Fre e image hosting&lt;/a&gt;" /></td>
      <td>Link to us</td>
      </tr>
      <tr>
      <td><input readonly="reado nly" class="input_fi eld" onclick="javasc ript: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="reado nly" class="input_fi eld" onclick="javasc ript:highlight( this);" type="text" style="width: 610px" name="option" value="&lt;a href=&quot;<# BASE_URL #>&quot;target= &quot;blank&quo t;&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]

      Comment

      • thinkfast
        New Member
        • Mar 2008
        • 3

        #4
        is anyone can help me please :((

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          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.

          Comment

          Working...