4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Jeremy on November 16, 2006, 09:08:14 PM

Title: Disabling the thumbnail upload for users
Post by: Jeremy on November 16, 2006, 09:08:14 PM
I want to take out the option for users to upload thumbnails when they upload an image because I am using the auto thumbnail feature.  The user still uploads a thumbnail not knowing it auto resizes automatically.  Can I take that option out and how do I do it?
Title: Re: Disabling the thumbnail upload for users
Post by: mawenzi on November 16, 2006, 09:47:31 PM
... edit your /templates/<your_template>/member_uploadform.html ...
find :
Code: [Select]
         <tr>
            <td class="row1" valign="top">
                          <b>{lang_thumb_file}</b><br />
                          <span class="smalltext">
                          {lang_max_filesize}<b>{max_thumb_filsize}</b><br />
                          {lang_max_imagewidth}<b>{max_thumb_imagewidth}</b><br />
                          {lang_max_imageheight}<b>{max_thumb_imageheight}</b><br />
                          </span>
                        </td>
            <td class="row1">
              <b>Upload:</b><br />
                          <input type="file" name="thumb_file" class="input" /><br />
                          <b>URL:</b><br />
                          <input type="text" name="remote_thumb_file"  size="30" value="{remote_thumb_file}" class="input" /><br />
                          <span class="smalltext"><b>{lang_allowed_file_types}</b> {allowed_thumb_types}</span>
            </td>
          </tr>

and replace with :
Code: [Select]
<!---
         <tr>
            <td class="row1" valign="top">
                          <b>{lang_thumb_file}</b><br />
                          <span class="smalltext">
                          {lang_max_filesize}<b>{max_thumb_filsize}</b><br />
                          {lang_max_imagewidth}<b>{max_thumb_imagewidth}</b><br />
                          {lang_max_imageheight}<b>{max_thumb_imageheight}</b><br />
                          </span>
                        </td>
            <td class="row1">
              <b>Upload:</b><br />
                          <input type="file" name="thumb_file" class="input" /><br />
                          <b>URL:</b><br />
                          <input type="text" name="remote_thumb_file"  size="30" value="{remote_thumb_file}" class="input" /><br />
                          <span class="smalltext"><b>{lang_allowed_file_types}</b> {allowed_thumb_types}</span>
            </td>
          </tr>
--->

... or delete this code lines ... ;)

Title: Re: Disabling the thumbnail upload for users
Post by: Jeremy on November 16, 2006, 09:57:10 PM
OOO thanks!  :D