Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Disable uploaded image list
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disable uploaded image list

 Post Reply Post Reply
Author
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Topic: Disable uploaded image list
    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




Edited by Mikey - 11 October 2006 at 8:09pm
Handyman man?
Back to Top
javi712 View Drop Down
Senior Member
Senior Member


Joined: 22 May 2003
Location: United States
Status: Offline
Points: 488
Post Options Post Options   Thanks (0) Thanks(0)   Quote javi712 Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.