Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Uploading Images
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Uploading Images

 Post Reply Post Reply Page  <12
Author
lodogg View Drop Down
Groupie
Groupie


Joined: 22 August 2003
Location: United States
Status: Offline
Points: 161
Post Options Post Options   Thanks (0) Thanks(0)   Quote lodogg Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2006 at 7:41pm
I added the Modify permission and everything is working now...

Thanks,
-lo
Just trying to have some fun and learn in the process.
Come have Some Fun
Back to Top
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 Posted: 29 June 2006 at 9:31pm

Originally posted by lodogg lodogg wrote:

Awesome write up
The problem is in the bottom left hand corner I do not have a Browse or Upload button?


Only people with the appropriate permissions set for them from the admin area will be able to see and use the upload image button.

To remove the file browser window give this a try (i havent had the chance to test it so please report back on if it works or not)

Find in "RTE_popup_adv_image.asp":

<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>


Remove the code in red
and....

Find in "RTE_popup_adv_image.asp" (just below previous code):

<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>


Also remove this code in red, save the file and upload.

WARNING!!!!
I havent tried this, always back up before attempting any code changing, belive me i have found out the hard way!





Edited by Mikey - 29 June 2006 at 9:42pm
Handyman man?
Back to Top
wizmike View Drop Down
Newbie
Newbie


Joined: 27 June 2006
Location: Australia
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote wizmike Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2006 at 12:05am

For those of you who do not want to see the files that have been uploaded, you could modify: RTE_popup_adv_image.asp

This may not be the most elegant solution but is very simple to implement.
 
The page contains three inline frames, just delete the one which displays all the files. As I have said - not the most elegant solution, but if you cannot write/modify asp then that may be your only option.
 
It would be even better if some user groups could see all the files so that they could select the one they wanted to use (moderators perhaps?) while other groups could not see the files.
 
Again, if you can write asp this should be easy to implement. Each group of people have an id so you could:
 
If blnModerator OR blnAdmin Then
etc.
 
Or you could simply use the groups id of course...
 
I am sure that lots of mods will be written for this new, and I might say, excellent version of the forum.
 
Mike
 
.
Back to Top
kgroba View Drop Down
Newbie
Newbie


Joined: 28 June 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote kgroba Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2006 at 2:13pm

I changed the code in RTE_popup_adv_image.asp from this -- 
<!--<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>-->
to this
<td class="text"><% = strTxtFileName %>:<iframe src="" id="fileWindow" width="0%" height="0px" style="border: #A5ACB2 1px solid;background-color: #FFFFFF;"></iframe></td>
 
I left the iframe in just in case it was referenced from somewhere. So far it has worked really well and increased the form open speed from about 45 seconds to < 1 second. Also, the sensitive images in the admin forum are no longer viewable by everyone. Thanks for your help.
Back to Top
lodogg View Drop Down
Groupie
Groupie


Joined: 22 August 2003
Location: United States
Status: Offline
Points: 161
Post Options Post Options   Thanks (0) Thanks(0)   Quote lodogg Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2006 at 3:25pm

I think we hit on a very important topic!  I think moderators and admins should be able to see all pictures but normal users can only see what they have uploaded.  I would love to see this change happen with the next release maybe?  At least I would like to put it on the wish list  The new forum has a ton of functionality that is great!! 

Thanks for the code mod it worked great!!


-lo
Just trying to have some fun and learn in the process.
Come have Some Fun
Back to Top
mbd2 View Drop Down
Groupie
Groupie


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbd2 Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2006 at 5:24pm

Looking at the code I think around line 365 there should be something that reads

If blnModerator OR blnAdmin Then
       Response.Write( 
Else     
      Response.Write(
End If
%>
 
First write statement need to be converted from ("<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>") to the correct format.
 
 
Second statement need to be converted
Response.Write("<td class="text"><% = strTxtFileName %>:<iframe src="" id="fileWindow" width="0%" height="0px" style="border: #A5ACB2 1px solid;background-color: #FFFFFF;"></iframe></td>")
 
 
At present I don't have time to convert them, maybe somebody with a little time on there hand can do the converting.
 
Dale
Balloon Entertainment at it's best! www.mbd2.com -- Trade Show Presenter - video
Back to Top
cmeurer View Drop Down
Groupie
Groupie


Joined: 23 February 2006
Status: Offline
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmeurer Quote  Post ReplyReply Direct Link To This Post Posted: 09 August 2006 at 3:00pm
Originally posted by kgroba kgroba wrote:


I changed the code in RTE_popup_adv_image.asp from this -- 
<!--<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>-->
to this
<td class="text"><% = strTxtFileName %>:<iframe src="" id="fileWindow" width="0%" height="0px" style="border: #A5ACB2 1px solid;background-color: #FFFFFF;"></iframe></td>
 
I left the iframe in just in case it was referenced from somewhere. So far it has worked really well and increased the form open speed from about 45 seconds to < 1 second. Also, the sensitive images in the admin forum are no longer viewable by everyone. Thanks for your help.

 

Didnt work for me... h,mmmm

Back to Top
cmeurer View Drop Down
Groupie
Groupie


Joined: 23 February 2006
Status: Offline
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmeurer Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2006 at 2:54pm
Okay I tried again and it worked. Be carefull which line you edit, you gotta get the exact one above.. There are 2-3 that are similar.
Back to Top
 Post Reply Post Reply Page  <12

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.