We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9017
    • 5 Posts
    Hello,

    I am a relative n00b when it comes to web programming. I have looked through the documentation for the MaxiGallery, but am quite frankly a little overwhelmed. Luckily, I don’t want to get too fancy here, so hopefully someone can help me with these items.

    I have created a website ( www.babyalex.info/index.php?id=4 ) using ModX and want to use Maxi Gallery to manage my photos. The gallery is not linked on the main site at the moment, but if you set id=4 in the url you will see the main gallery page where i want to have to user choose the child gallery. If you look at this page, it should be obvious that there is a problem, in that the photo links to Gallery 1 and the photos shown from that gallery do not appear in the main content div, or rather the div does not expand behind the pics like it would with normal content. Any ideas on how to correct this?

    Secondly, if you use the link on the page for ’Pictures of Me’ (or, id=3), you will see that the manually setup pictures I have inserted have a nice frame around them. I have achieved this by using a class called ’pic’. How can I have the class ’pic’ applied to the generated images? Or, is there a different approach I should use to achieve the desired effect?


    In the end, what I would really like to have happen is this, though I am quite uncertain how to accomplish it:

    I want the main page when going to photos to look similar to the current ’Pictures of Me’ page, but with each item a link to a child gallery, with some Text under it and possibly some hover over text also to describe the gallery. When a child gallery image is clicked, the user will see the embedded slimbox type view of the pictures in that gallery. Clicking on the picture in the slimbox view would display (probably in a new window) the largest resolution image for downloading.



    Any help would be greatly appreciated.

    erik

    ModX 0.9.6
    MaxiGallery 0.5.2
      • 7923
      • 4,213 Posts
      Quote from: erik at Aug 26, 2007, 05:59 PM

      I have created a website ( www.babyalex.info/index.php?id=4 ) using ModX and want to use Maxi Gallery to manage my photos. The gallery is not linked on the main site at the moment, but if you set id=4 in the url you will see the main gallery page where i want to have to user choose the child gallery. If you look at this page, it should be obvious that there is a problem, in that the photo links to Gallery 1 and the photos shown from that gallery do not appear in the main content div, or rather the div does not expand behind the pics like it would with normal content. Any ideas on how to correct this?
      You need to add
      <br style="clear:both"/> 
      to your site template after [*content*] placeholder.

      Quote from: erik at Aug 26, 2007, 05:59 PM

      Secondly, if you use the link on the page for ’Pictures of Me’ (or, id=3), you will see that the manually setup pictures I have inserted have a nice frame around them. I have achieved this by using a class called ’pic’. How can I have the class ’pic’ applied to the generated images? Or, is there a different approach I should use to achieve the desired effect?
      The maxigallery galleryPictureTpl (see assets/snippets/maxigallery/templates folder, and wiki info about parameters that have "tpl" in them) is used for rendering individual picture element in the gallery overview view. Add the ’pic’ class there to the img tag. You can modify the default template or create a new one based on that and define it in the snippet call.

      Quote from: erik at Aug 26, 2007, 05:59 PM

      In the end, what I would really like to have happen is this, though I am quite uncertain how to accomplish it:

      I want the main page when going to photos to look similar to the current ’Pictures of Me’ page, but with each item a link to a child gallery, with some Text under it and possibly some hover over text also to describe the gallery. When a child gallery image is clicked, the user will see the embedded slimbox type view of the pictures in that gallery. Clicking on the picture in the slimbox view would display (probably in a new window) the largest resolution image for downloading.
      Create each gallery as separate document under the main gallery document. Then in the main gallery document, use this example to show only one picture in page, but all pics in slimbox picture set. Use the &gal_query_ids parameter or &view_gallery parameter to get each individual gallery to the page. You can also list the documents using Ditto and have the maxigallery calls in Ditto’s template to build an automated system. Then when you create new child gallery document, it will automatically be listed in the main gallery page. In the ditto template, use &gal_query_ids=`[+id+]` or &view_gallery=`[+id+]` to get the gallery.

      It’s not possible to make a link from the slimbox picture to a bigger original picture. Atleast not without modifying it’s code. You can though create a link to the slimbox picture description for the bigger image. (Note that this code will not validate by W3 validator):

      In the "mgGalPicTplHidden" chunk (name corresponds to the wiki article guide) replace:
      title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]"
      with:
      title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]<br/><a href='[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]' target='_blank'>Open large picture</a>"



        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 9017
        • 5 Posts
        Doze, thanks for you help on this. Below is a description on how I fared trying to implement your recommendations.

        Thanks for all your help,

        erik


        You need to add
        <br style="clear:both"/> 


        to your site template after [*content*] placeholder.
        OK, this worked well, thanks.

        The maxigallery galleryPictureTpl (see assets/snippets/maxigallery/templates folder, and wiki info about parameters that have "tpl" in them) is used for rendering individual picture element in the gallery overview view. Add the ’pic’ class there to the img tag. You can modify the default template or create a new one based on that and define it in the snippet call.
        OK, this kinda worked. If you look at the page now ( www.babyalex.info/index.php?id=4 ) you will see that a small white box has been placed around the pictures, but there are still two problems:

        1) The blue border, defined in the class ’pic’ does not show up. I am not sure if this is a css precedence issue or something else in the maxiGallery code.
        2) There is a little golden dot that I cannot seem to find the source of. I would like to remove this. Any suggestions?


        Regarding the one pic with all in slimbox, I haven’t gotten that far yet. Once I have the remaining issues cleared up, I would then like to try getting that going. One thing at a time, you know.

        Thanks again for all your help.
          • 7923
          • 4,213 Posts
          Quote from: erik at Aug 28, 2007, 04:55 PM

          1) The blue border, defined in the class ’pic’ does not show up. I am not sure if this is a css precedence issue or something else in the maxiGallery code.
          In maxigallery default css, take the "border" declare out from this block:
          ul.thumbs li img {
          	border:			medium none;
          	margin:			0pt !important;
          }
          

          Quote from: erik at Aug 28, 2007, 04:55 PM

          2) There is a little golden dot that I cannot seem to find the source of. I would like to remove this. Any suggestions?
          In maxigallery default css, add "background:none;" declare to this block:
          ul.thumbs li {
          	display:		block;
          	float:			left;
          	list-style-image:	none !important;
          	list-style-position:	outside;
          	list-style-type:	none;
          	margin:			5px 5px 0pt !important;
          }
          


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 9017
            • 5 Posts
            Doze,

            Thanks again for your help. I made these changes and now it is working as I intended. I hope I can figure out the rest without any more assistance, now that I know where to look for issues and make changes in the tplXX files and the css file.

            erik
              • 9017
              • 5 Posts
              Doze,

              I have gotten everything working the way I want it now, with only one small issue. I hope you can take a few moments to help with this last item.


              First of all, the Gallery test page (http://www.babyalex.info/index.php?id=4) contains the following:
              [!MaxiGallery? &display=`childgalleries` &order_by=`pos` &limit=`1`!]


              While each gallery page has this:
              [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`!]


              I modified slightly some of the tpl files, so the images shown in both the main gallery page and the child galleries will use the ’pic’ class we discussed previously.

              Next, I modified the gallerypicturetpl file in the following manner, in order to add the link to make the full sized image available for download:
              [+maxigallery.embedtype:is=`slimbox`:then=` 
              
              	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" 
              	rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]<br/><br/><a href='[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]' target='_blank'>-- Open full size picture for saving</a>">		
              
              										
              `+]
              


              The issue I have, is the link embedded in the title (-- Open full size picture for saving) does not show up. Rather, the link is there and works, but the text is either hidden, or is white in color and not viewable against the background. When I click on the link, it shows up in red text. I have scoured the css files and tpl files, looking for a line that sets this to be hidden or colored white, but cannot find it. I have also tried placing some css color statements in the slimbox.css, but still no luck.

              Do you have a suggestion or fix to this problem? I really think this is the last one before the site works how I want.

              Thanks in advance for any help you could give.


              erik
                • 7923
                • 4,213 Posts
                In your site template css, you have defined all the links to be white:
                a, a:link { 
                    text-decoration: none;
                    color: #fff;
                }
                a:visited { color: #fff; }
                a:hover { color: #fff; text-decoration: underline;  }
                a:active { color: #c33; border-color: #c33 }
                

                Define a class for the link that is in slimbox, eg. change:
                <a href='[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]' target='_blank'>
                

                to:
                <a class='slimboxlink' href='[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]' target='_blank'>
                

                Then add to your site template css file (or maxigallery, or where ever you want):
                a.slimboxlink, a.slimboxlink:link { 
                    text-decoration: none;
                    color: #000000;
                }
                a.slimboxlink:visited { color: #000000; }
                a.slimboxlink:hover { color: #000000; text-decoration: underline;  }
                a:active { color: #c33; border-color: #c33 }
                


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 9017
                  • 5 Posts
                  Thanks Doze, and can I say.... Duhhh Erik!! I was so intent on finding the css color statements in the MaxiGallery stuff that I neglected my own code. Thanks again for all the help.


                  erik - signing off....i think