We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    Quote from: spoetnik at Aug 18, 2006, 09:34 AM

    mm, close but no sigar.

    Using the above fix, shows the pictures verry nice, but i Dont see a "next" or "previous" button. Looks like the slidebox does’nt know where to find these picture-buttons i guess??
    hmm, good point! Could you try to test the following; edit functions.php and..

    change line 421 from:
    	$slidebox_script_str = "<script type=\"text/javascript\">var xml_url = 'assets/galleries/".$modx->documentIdentifier."/gallery.xml';</script>";
    


    to:

    	$slidebox_script_str = "<script type=\"text/javascript\">var xml_url = '" . $modx->config['site_url'] . "assets/galleries/".$modx->documentIdentifier."/gallery.xml';</script>";
    



      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 28218
      • 48 Posts
      Thanks verry much for the quick reply. You are my hero of the day, this works!!
      Just one little hickup, it doesn’t show the little ’X’ to close the slideshow. I dont know how to fix this.

      Maybe this would be a sollution for a future release.
      Thanks verry much, the community makes MODx even better!!
        • 30269
        • 119 Posts
        Today implementend MaxiGallery on our site. Without much in-depth knowledge of Modx, wanted to get MaxiGallery working from cache to make page loading faster. Solution was quite easy:

        Created this Chunk called "MaxiGalleryWFS"
        <table bgcolor="#FFFFFF" cellpadding="0" cellspacing="0">
          <tr>
            <td>[[MaxiGallery? &pic_use_watermark=`1` &pic_watermark_type `text` &pic_watermark_txt=`(c) copyright  2006` &pic_watermark_font=`1` &pic_watermark_txt_color=`333333` &pics_in_a_row=`50` &max_thumb_size=`80` &thumb_use_dropshadow=`1` &display=`embedded` &embedtype=`lightboxv2` &keep_bigimg=`1` &big_img_linkstyle=`popup` ]]
        </td>
          </tr>
        </table>


        Then in template we added:
          <div id="pictBar">
        {{MaxiGalleryWFS}}
          </div>
        


        With the DIV:
        #pictBar{
        	width: 100%;
        	height: 137px;
        	color: #cccccc;
        	clear: both;
        	background-color: #fff;
        	background-image: url(images/L20_slide.jpg);
        	background-repeat: repeat-x;
        	background-position: bottom left;
        	overflow: auto; 
        	padding: 0px;
        }
        


        All seems to work nicely with cache enabled for faster page loads and less database hits.

        Only thing is that before/after loading the page while logged into the Manager, cache has to be flushed for that page. When working on a life-site it makes sense to temporarily set the cache off untill page is updated and then on again when finished to increase performance.


        Tom
          • 19177
          • 2 Posts
          hi-

          I thought I’d comment on an issue in the MaxiGallery output that causes it to fail W3C validation. I think it’s more of a typo than a bug.

          title=\"<b>".htmlentities(stripslashes($pic[’ ...

          You cannot put a <b> or </b> or </br> inside an an attribute. In this case adding html tags inside the title attribute of <a> tag. I removed the <b>,</b> & </br> tags that were nested within the title attribute in the MaxiGallery snippet, now I only get one validation error instead of many. smiley

            • 33372
            • 1,611 Posts
            How about a Thickbox (http://jquery.com/demo/thickbox/) version? I have created my own, but since I first stripped out all the other stuff I didn’t need and added a lot of weird code specific to the site I’m working on now (two more image sizes, etc.) it’s probably not in a useful state for others. I like Slidebox, but the XML files get cached by users’ browsers and so it wasn’t updating consistently (plus the Slidebox JavaScript is way too sophisticated for me; I just wanted to add a dynamic link to the bottom of the display window and it damn near killed me).
              "Things are not what they appear to be; nor are they otherwise." - Buddha

              "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

              Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
              • 7923
              • 4,213 Posts
              I could take a look at the thickbox probably.. I know that many users are already using it in maxigallery..

              Quote from: metrotype at Sep 18, 2006, 02:29 PM

              You cannot put a <b> or </b> or </br> inside an an attribute.
              Yeah, my bad.. that is just there to make the picture descriptions look pretty in lightbox v2..


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 27889
                • 415 Posts
                Doze, is there a reason to use your own scriptaculous and prototype version, there are inside the MODx release and the size of file increase a lot. Why don’t use the script in "manager\media\script\scriptaculous\scriptaculous.js" ?
                I think a script management will be a good thing a kind of :

                if (!$modx->isloaded_script(’scriptaculous’) include(’script’)
                  MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                  MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                  • 7923
                  • 4,213 Posts
                  No reason I guess.. I think at somepoint lightbox or slidebox needed specific version of prototype / scriptaculous..

                  I’ll change it to use the ones that are in modx. There’s no need to do "script management" at the snippet side, modx api regclient** functions does that automatically.


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 16556
                    • 27 Posts
                    Hi, I am very new to modx and am trying to setup the maxigallery. I have read alot of the posts in here and i am not sure if my problem is that my server is in safe mode? or that i am needing to patch my doc.parser file? or something else completely?

                    firstly i have installed everything as per instructions, (and have maxigallery running fine on another server) but when i add a standard call:

                    [[MaxiGallery? &display=`embedded` &embedtype=`lightboxv2` &pics_in_a_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`]]

                    the page doesn’t load and i get the following error (sorry i am a bit of a newbie and my debugging is fairly bad).

                    trlen($validParents)-1); $tblContent= $tbl = $modx->getFullTableName(’site_content’); $activeClause= $showPublishedOnly? ’AND published = 1’: ’’; $query= "SELECT id, pagetitle, longtitle, description, introtext FROM $tblContent WHERE parent IN ($validParents) $activeClause ORDER BY $sortby $sortdir"; if (!$rs= $modx->db->query($query)) { return ’’; } while ($row= $modx->db->getRow($rs)) { $resource[]= $row; } return $resource; } //------------------------------------------------------------------------------------------------- ?>n_id field to database table!"; ?>
                    Fatal error: Call to undefined function: createtable() in /data03/virt11978/domeenid/www.mydomain.com/htdocs/new/manager/includes/document.parser.class.inc.php(705) : eval()’d code on line 589

                    Could anyone shead some light. Or has anyone had a similar problem..

                    thanks. lach.
                      • 7923
                      • 4,213 Posts
                      hmmh, the line number sounds off to me.. is there a possibility that your files could have corrupted on upload? try to upload the files again (and re-paste snippet code in manager). Also, make sure that all files are copied into right places as stated at installation instructions.


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."

                      This discussion is closed to further replies. Keep calm and carry on.