Author Topic: Disabling the thumbnail upload for users  (Read 3266 times)

0 Members and 1 Guest are viewing this topic.

Offline Jeremy

  • Newbie
  • *
  • Posts: 10
    • View Profile
Disabling the thumbnail upload for users
« 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?

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Disabling the thumbnail upload for users
« Reply #1 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 ... ;)

Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Jeremy

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Disabling the thumbnail upload for users
« Reply #2 on: November 16, 2006, 09:57:10 PM »
OOO thanks!  :D