longer description and EXIF information

Last post 08-05-2010, 7:39 AM by bertsirkin. 8 replies.
Sort Posts: Previous Next
  •  07-25-2010, 7:40 AM 62697

    longer description and EXIF information

    I would really like to place an HTML formatted description for each image with line breaks. Right now it appears ALL comments entered from the admin panel indicate "guest" - there should be a way for the webmaster to put comments in.
     
    In addition, it would be very helpful to be able to put selected EXIF information in the description using special tags - i.e., #aperture, #shutter, #ISO.
     
    Things to consider for the next version.
     
    bert
     
  •  08-01-2010, 11:40 PM 62909 in reply to 62697

    Re: longer description and EXIF information

    Hi bertsirkin,
     
    1. Open file "\CuteSoft_Client\Gallery\Popup\Default\Code.js"
     
    2. Find section below
     
    var comment=cs[i];
    d=document.createElement("DIV");
     
    3. d=document.createElement("DIV"); is the comment container. You can change the style easily. like
     
    d.style.backgroundColor="red";
     
    Regards,
     
    ken
  •  08-02-2010, 7:52 AM 62932 in reply to 62909

    Re: longer description and EXIF information

    That's actually the wrong code - that pertains to the "hover" popup. That works fine. The area I'm refering to is when you CLICK the image in the gallery and a new Popup shows up with a larger image (based on the browser-window size). That area is very restricted as to how big the description can be. (see http://www.photobert.com/temp/cutesoft.jpg)
     
    BTW, IMHO, it would be easier to change the CSS file for css attributes than doing it in the javascript. 
     
    Is there any way to extend the vertical size of the comment area on the larger popup??
     
    bert
  •  08-03-2010, 2:52 AM 62997 in reply to 62932

    Re: longer description and EXIF information

    Hi bertsirkin,
     
    1. Open file "\CuteSoft_Client\Gallery\Viewer\LightBox\Code.js"
     
    2. Find section below
     
    var th=Math.floor(toolbarheight*tstep/10);
      this.toolbar.style.height=th+"px";
      this.frame.style.height=h+th+"px";
     
    3. Change it to
     
    var th=Math.floor(toolbarheight*tstep/10);
    this.toolbar.style.height="300px";
    this.frame.style.height=h+300+"px";
     
    4. You can change to the value you need.
     
    Regards,
     
    ken
  •  08-03-2010, 8:21 AM 63013 in reply to 62997

    Re: longer description and EXIF information

    Thanks - that just what I needed. In the future, it would be great if that code could dynamically expand the height to accomodate the text.
     
    Also, is there any way to add carriage-returns/new lines to the text?
     
    thanks,
    bert
  •  08-03-2010, 9:32 PM 63050 in reply to 63013

    Re: longer description and EXIF information

    Hi bertsirkin,
     
    Just need to add a line. see the red text below
     
    1. Open file "\CuteSoft_Client\Gallery\Viewer\LightBox\Code.js"
     
    2. Find section below
     
    var th=Math.floor(toolbarheight*tstep/10);
      this.toolbar.style.height=th+"px";
      this.frame.style.height=h+th+"px";
     
    3. Change it to
     
    var th=Math.floor(toolbarheight*tstep/10);
    this.toolbar.style.height="300px";
    this.toolbar.style.wordWrap= "break-word";
    this.frame.style.height=h+300+"px";
     
    4. You can change to the value you need.
     
    Regards,
     
    ken
  •  08-04-2010, 6:44 AM 63067 in reply to 63050

    Re: longer description and EXIF information

    Hi Ken,
     
    Not sure you understand what I mean. Within a description, I would like to be able to add newlines (i.e., \n  or <br>).  For example, I'd like a description like this:
     
    --------------------------------
    THis is line one.
     
    This is line two.
    --------------------------------
     
    Right now, if I enter that, I get:
     
    --------------------------------
    THis is line one. This is line two.
    --------------------------------
     
    is there any way to embed a CR/LF within the text of the description?
     
    thanks,
    bert
  •  08-04-2010, 11:10 PM 63107 in reply to 63067

    Re: longer description and EXIF information

    Hi bertsirkin,
     
    1. Open file "\CuteSoft_Client\Gallery\Viewer\LightBox\Code.js".
     
    2. Find section below
     
    var s2=document.createElement("SPAN");
     
    3. Change it to
     
    var s2=document.createElement("DIV");
     
    4. Find section below
     
    s2.appendChild(document.createTextNode(comment.Content));
     
    5. Change it to
     
     s2.innerHTML=HtmlEncode(comment.Content).split("\n").join("<br/ >").split("\r").join("");
    s2.style.marginLeft="60px";
     
    Regards,
     
    Ken
  •  08-05-2010, 7:39 AM 63120 in reply to 63107

    Re: longer description and EXIF information

    Thanks Ken - that's perfect!
     
    You might want to consider putting that in the next release. 
     
    thanks,
    bert
     
View as RSS news feed in XML