Author Topic: besoin d'aide sur code  (Read 5308 times)

0 Members and 1 Guest are viewing this topic.

Offline ced91

  • Pre-Newbie
  • Posts: 6
    • View Profile
besoin d'aide sur code
« on: December 03, 2006, 05:42:28 PM »
bonjour a tous

j'utilise ce script pour que les membres de mon association puissent poster leur photos mais pour plus de faciliter je cherche le moyen de retirer dans la page upload la partie:
Vignette image:
Taille MAX. du fichier: 100 KO
Largeur MAX. de l'image: 300 pixel
Hauteur MAX de l'image: 300 pixel
 Upload:

URL:
Les extensions valides sont: jpg, gif, png 


si quelqu'un peut m'aider

en vous remerciant

ced :wink:

manurom

  • Guest
Re: besoin d'aide sur code
« Reply #1 on: December 03, 2006, 07:32:37 PM »
Bonjour:
il te faut editer ton fichier "member_uploadform.html" et supprimer ces données.
Voici le code modifié de la page pour 4images 1.7.4:
Code: [Select]
<form method="post" action="{url_member}" enctype="multipart/form-data" onsubmit="uploadbutton.disabled=true;">
  <input type="hidden" name="action" value="uploadimage" />
  {if cat_id}<input type="hidden" name="cat_id" value="{cat_id}" />{endif cat_id}
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td valign="top" class="head1">
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="head1">{lang_user_upload}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_category}</b></td>
            <td class="row1">{cat_name}</td>
          </tr>
          <tr>
            <td class="row2" valign="top">
  <b>{lang_media_file}</b><br />
  <span class="smalltext">
  {lang_max_filesize}<b>{max_media_filsize}</b><br />
  {lang_max_imagewidth}<b>{max_media_imagewidth}</b><br />
  {lang_max_imageheight}<b>{max_media_imageheight}</b><br />
  </span>
</td>
            <td class="row2">
              <b>Upload:</b><br />
  <input type="file" name="media_file" class="input" /><br />
  <b>URL:</b><br />
  <input type="text" name="remote_media_file"  size="30" value="{remote_media_file}" class="input" /><br />
  <span class="smalltext"><b>{lang_allowed_file_types}</b> {allowed_media_types}</span>
            </td>
          </tr>
         
          <tr>
            <td class="row2"><b>{lang_image_name}</b></td>
            <td class="row2"><input type="text" name="image_name"  size="30" value="{image_name}" class="input" /></td>
          </tr>
          <tr>
            <td class="row1" valign="top"><b>{lang_description}</b></td>
            <td class="row1">
              <textarea name="image_description" cols="30" class="textarea" rows="10" wrap="VIRTUAL">{image_description}</textarea>
            </td>
          </tr>
          <tr>
            <td class="row2" valign="top"><b>{lang_keywords}</b></td>
            <td class="row2">
              <textarea cols="30" class="textarea" rows="10" wrap="VIRTUAL" name="image_keywords">{image_keywords}</textarea>
            </td>
          </tr>
{if captcha_upload}
          <tr>
            <td class="row1" valign="top"><b>{lang_captcha}</b></td>
            <td class="row1">
  <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
              <input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
              <br />
              {lang_captcha_desc}
</td>
          </tr>
          {endif captcha_upload}
        </table>
      </td>
    </tr>
  </table>
  <p align="center">
    <input type="submit" name="uploadbutton" value="{lang_submit}" class="button" />
    <input type="reset" value="{lang_reset}" class="button" />
  </p>
</form>
Tu trouveras ce fichier en pièce jointe.

Offline ced91

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: besoin d'aide sur code
« Reply #2 on: December 03, 2006, 07:46:46 PM »
c'est good, ca marche nickel

merci a toi :wink: