Print Page | Close Window

Disable uploaded image list

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21564
Printed Date: 29 March 2026 at 2:48am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Disable uploaded image list
Posted By: Mikey
Subject: Disable uploaded image list
Date Posted: 11 October 2006 at 7:56pm
A few people were asking for this and there was a topic on it but i can't find it now so i'm going to post it as a mod.

This mod removes the pre-uploaded image list from the pop-up upload form.



Open the file 'RTE_popup_adv_image.asp'
First and most importantly BACK THIS FILE UP!

Once you've done that we shall continue

Find the following code...

'If image upload is enabled then display an image upload form
If blnImageUpload Then

%>
            <tr>
              <td class="text"><% = strTxtFileName %>:<iframe src="RTE_file_browser.asp?look=img<% = strQsSID2 %>" id="fileWindow" width="98%" height="180px" style="border: #A5ACB2 1px solid;background-color: #FFFFFF;"></iframe></td>
            </tr>
            <form method="post" action="RTE_popup_adv_image.asp?PB=Y<% = strQsSID2 %>" name="frmUpload" enctype="multipart/form-data" onsubmit="return checkFile();" >
             <tr>
              <td class="text"><% = strTxtImageUpload %></td>
            </tr>
            <tr>
              <td class="smText"><% Response.Write(strTxtImagesMustBeOfTheType & ", " & Replace(strImageTypes, ";", ", ", 1, -1, 1) & ", " & strTxtAndHaveMaximumFileSizeOf & " " & intMaxImageSize & "KB")  %></td>
            </tr>
            <tr>
              <td><input id="file" name="file" type="file" size="35" /></td>
            </tr>
            <tr>
              <td>
                  <input name="upload" type="submit" id="upload" value="Upload">
              </td>
            </tr>
           </form><%
'Else file uploading is disabled so show a larger file browser window
Else

%>
        <tr>
              <td class="text"><% = strTxtFileName %>:<iframe src="RTE_file_browser.asp?look=img<% = strQsSID2 %>" id="fileWindow" width="98%" height="278px" style="border: #A5ACB2 1px solid;background-color: #FFFFFF;"></iframe></td>
            </tr>
<%
End If

%>


and replace with this...


           
'If image upload is enabled then display an image upload form
If blnImageUpload Then

%>
            <tr>
              <td class="text"></td>
            </tr>
            <form method="post" action="RTE_popup_adv_image.asp?PB=Y<% = strQsSID2 %>" name="frmUpload" enctype="multipart/form-data" onsubmit="return checkFile();" >
             <tr>
              <td class="text"><% = strTxtImageUpload %></td>
            </tr>
            <tr>
              <td class="smText"><% Response.Write(strTxtImagesMustBeOfTheType & ", " & Replace(strImageTypes, ";", ", ", 1, -1, 1) & ", " & strTxtAndHaveMaximumFileSizeOf & " " & intMaxImageSize & "KB")  %></td>
            </tr>
            <tr>
              <td><input id="file" name="file" type="file" size="35" /></td>
            </tr>
            <tr>
              <td>
                  <input name="upload" type="submit" id="upload" value="Upload">
              </td>
            </tr>
           </form><%
'Else file uploading is disabled so show a larger file browser window
Else

%>
        <tr>
              <td class="text"></td>
            </tr>
<%
End If

%>


Save and upload the file to the root of your forum overwriting the original (which you HAVE backed up in a nice safe place).

and thats it




-------------
Handyman man?



Replies:
Posted By: javi712
Date Posted: 11 October 2006 at 8:34pm
excellent mod!!!

this is something i asked a few days after the new version came out and borg said it was not possible to remove... so a huge thank you for making this possible!


Posted By: iSec
Date Posted: 10 November 2006 at 1:12am
Thanks Mikey... I needed that one.

-------------
"When it gets dark enough, you can see the stars"
-Charles A. Beard



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net