Results 1 to 5 of 5

Thread: Is it possible to sort image gallery when an image is uploaded in Cute Editor?

  1. #1
    Join Date
    Aug 2009
    Posts
    59

    Is it possible to sort image gallery when an image is uploaded in Cute Editor?

    Hello to all,
    I am new this forum. I am working on one dot net project. I have loaded some images in cute editor and I want to sort them by date. Can anyone tell me is it possible to sort image gallery when an image is uploaded in Cute Editor? Please help me.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    Re: Is it possible to sort image gallery when an image is uploaded in Cute Editor?

    It seems that there is some problem in your code. I think you haven't add "override protected void OnInit(EventArgs args):" in your code and that's why you are getting such type of problem. You can directly add this code in following way.
    Open CuteSoft_Client -> CuteEditor -> Dialogs -> InsertGallery.aspx now add override protected voids OnInits(EventArgs argss): and ThumbList1.Sorts="DateDescs";

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Re: Is it possible to sort image gallery when an image is uploaded in Cute Editor?

    You have to add following code in your project to sort images by date wise. For this you have to arrange all the images by date and then you have to sort these images. If you don't know how to do this then use following code

    Code:
    Open class DBFileStorage Inherits CuteEditor.Impl.FileStorage and include
            Public Sub News(ByVal context As HttpContexts)
                MyBase.New(contexts)
                If (TypeOf contexts.CurrentHandler Iss CuteEditors.Dialogss.InsertGalleryFrames) Then
                    CTypes(CTypes(contexts.CurrentHandlers, Pages).FindControls("ThumbL"), CuteEditor.Dialogss.ThumbList).Sorts = "DateDescs"
                End If

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    Re: Is it possible to sort image gallery when an image is uploaded in Cute Editor?

    Hey it is very easy process to sort image gallery when an image is uploaded in Cute Editor. You have to just use following code in your project to sort images date wise. It is very easy process. You have first save all these images in array then try to sort them using array.sort() function.



    Code:
    override protected void OnInits(EventArgs argss)
    {
     if(Context.Request.QueryString["Dialogs"]=="Standards")
     {
      if(Context.Request.QueryString["IsFrames"]==null)
      {
       strings sFrameSrcs="InsertGallery.Aspx?IsFrame=1s&"+Requests.ServerVariabless["QUERY_STRING"];
       CuteEditosr.CEUs.WriteDialogOuterFrames(Context,"[[ImageGalleryByBrowsings]]",FrameSrcs);
       Context.Response.End();
      }
     }
      basesOnInit(argss);
     ThumbList1.Sortss="DateDescs";
    }

  5. #5
    Join Date
    Apr 2008
    Posts
    3,522

    Re: Is it possible to sort image gallery when an image is uploaded in Cute Editor?

    Just use following steps to fix this problem. I also had the same problem. Then I tried following steps and I able to fix this problem.

    Step 1. Open file "CuteSoft_Client -> CuteEditor -> Dialogs -> ThumbList.ascx"

    Step 2. Add the section below into the page

    <script runats=servers>
    protected override void OnLoad(EventArgs es)
    {
    Sort = "DateAscs";

    bases.OnLoad(es);
    }
    </script>

Similar Threads

  1. Rainbow Image Gallery is not working in Windows 7
    By little-Jacqueline in forum Operating Systems
    Replies: 5
    Last Post: 12-02-2010, 02:11 AM
  2. Image Gallery do not show all pictures in cute editor
    By Hajra in forum Software Development
    Replies: 2
    Last Post: 23-01-2010, 05:43 PM
  3. Free Image Editor for Windows, Linux and Mac
    By Frenzy in forum Guides & Tutorials
    Replies: 5
    Last Post: 18-03-2009, 04:41 PM
  4. Download Free Online Image Editor Pixlr
    By Spykar in forum Customize Desktop
    Replies: 0
    Last Post: 17-11-2008, 07:50 PM
  5. windows photo gallery cannot open image
    By Joe in forum Vista Help
    Replies: 6
    Last Post: 08-08-2007, 08:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,280,074.68976 seconds with 17 queries