e2interactive forums » Sample of (E)2 Photo Gallery

Search:

How i can define the number of thumbnails

(8 posts)
  • Started 9 months ago by vaniltoncoelho
  • Latest reply from e2

  1. vaniltoncoelho
    Member

    would he like knowing how I can leave the quantity of thumbnails indeterminately? because I do not want to leave this value fixed.

    in this line in e2photo.js: var maxthumbvisible = 0; i put zero but the thumbnail container is very big when space is left for thumbs.

    in this page an example can be seen:
    http://www.salvadorapartments.com.br/album.php?tipo=imovel&id=5

    Posted 9 months ago #
  2. If you'd like to have the thumbnails hidden by default, which is what I think you're asking for, you would simply put the following code at the end of the index.php file

    Look for:

    <script type=\"text/javascript\">loadinfo();</script>

    and add this:

    <script type=\"text/javascript\">thumbs(); loadinfo();</script>

    This will set the thumbnails to auto hide at the beginning.

    Posted 9 months ago #
  3. vaniltoncoelho
    Member

    I think that you did not understand me, the script comes already to show for default at most 5 thumbs, and I would not like leaving that fixed. the number of thumbs had to be the quantity what they find in the folder.

    thanks for help.

    Posted 9 months ago #
  4. What var maxthumbvisible = 0; defines is how many thumbnails there are showing at first in the thumbnail panel. It helps determine the math for moving them side to side, setting it to 0 just will mess up the math, and that is why on your sample when you push the arrow to move to see more thumbs when it reaches the end of the thumbs, it still allows you to keep moving the thumbs.

    What are you wanting to do? I am not sure I understand what you're asking. Do you want every thumbnail to be visible?

    Posted 9 months ago #
  5. vaniltoncoelho
    Member

    exactly, and I do not know how many thumbs will go, an hour can have 7, another hour can have 20, this number is a variable, I cannot define the max number of thumbs, this value is not fixed, and there it was fixed like 5. i need that this value be variable.

    thanks for attention

    Posted 9 months ago #
  6. That variable has nothing to do with the total number of thumbnails, it only has to do with the number of thumbnails visible in the thumbnail viewing area. There is no limit to the number of thumbnails that can be in the e2 photo gallery. If you have 20 you can have 20, if you have 7 you can have 7. The var maxthumbvisible = 5; doesn't effect the total number of thumbnails, only the total that are visible.

    Posted 9 months ago #
  7. vaniltoncoelho
    Member

    But this value can be dynamic?

    Posted 8 months ago #
  8. You'd have to modify some aspects of the code, but I am not sure what you are trying to do, to be able to help you.

    Posted 8 months ago #

RSS feed for this topic

Reply

You must log in to post.