CuteEditor as Image Selector

Last post 04-03-2009, 12:05 AM by Adam. 4 replies.
Sort Posts: Previous Next
  •  04-02-2009, 12:31 PM 50700

    CuteEditor as Image Selector

    I've seen the example on the website at http://cutesoft.net/asp/use-CuteEditor-as-image-selector.asp. But I cannot find any code for how to do this. I've looked throughout the online Document, even searching both it and the forums. Several forum posts referenced the link above for how to do it, but there's no code there. I've tried viewing it in FF, IE, and Chrome just to make sure it wasn't a browser issue hiding the code.
     
    How can I go about using CE as an image selector?
  •  04-02-2009, 1:58 PM 50712 in reply to 50700

    Re: CuteEditor as Image Selector

    Bradley,
     
    If you are using verison 6.x, you can find the following file in the download package.
     
    use-CuteEditor-as-image-selector.asp
     
    Hope it helps.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-02-2009, 3:25 PM 50722 in reply to 50712

    Re: CuteEditor as Image Selector

    I feel rather dumb now. I scoured the web for over an hour, and they sat on my hard drive.
     
    Thanks, Adam!
  •  04-02-2009, 4:18 PM 50730 in reply to 50722

    Re: CuteEditor as Image Selector

    Okay, now I'm having a second issue. I have two editors on the same page.
     
    1. Dim editor1  
    2. Set editor1 = New CuteEditor  
    3. editor1.ID = "LogoEditor"  
    4. editor1.Width = "201"  
    5. editor1.Height = "108"  
    6. editor1.AutoConfigure = "None"  
    7. editor1.FilesPath = "/Dashboard/CuteEditor_Files"  
    8. editor1.ImageGalleryPath = path1  
    9. editor1.ShowBottomBar = false  
    10. editor1.Draw()  
    11.   
    12.   
    13.   
    14. Dim editor2  
    15. Set editor2 = New CuteEditor  
    16. editor2.ID = "MainPicEditor"  
    17. editor2.Width = "350"  
    18. editor2.Height = "200"  
    19. editor2.AutoConfigure = "None"  
    20. editor2.FilesPath = "/Dashboard/CuteEditor_Files"  
    21. editor2.ImageGalleryPath = path2  
    22. editor2.ShowBottomBar = false  
    23. editor2.AllowUpload = false     
    24. editor2.AllowCreateFolder = false     
    25. editor2.AllowRename = false     
    26. editor2.AllowDelete = false  
    27. editor2.Draw()  
    On the first one, I'm getting an error saying "The area you are attempting to access is forbidden". However, I can set the second editor to the first one's path, and the second one works, while the first one does not. If i remove the second editor from the page, the first one works just fine. I've tried adding the restrictions (upload, create folder, rename, delete) to the first one, and also removing them from the second - neither solves anything.
     
    Both paths are valid and are accesible. I can do one editor or the other, and each reaches it's own path just fine. But something about them being on the same page is affecting the first one.
     
    They are set up this way because the first one is for the users to upload images to their own folder, and the second one will be pulling from a folder common to multiple users with pre-selected stock images already in place.
  •  04-03-2009, 12:05 AM 50745 in reply to 50730

    Re: CuteEditor as Image Selector

    It's because editor stores the security information in the session and it expects the security information is same for the same page.
     
    If editor is only by trusted users, please try the following solution:
     
    Open include_Security.asp and change the following code:
     
    badrequest=false
     
    to
     
    badrequest=true
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML