We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7752
    • 0 Posts
    Yes, it’s just how do I put a TV in the EvoGallery?

    Thanks
    Steve
      • 25803 ☆ A M B ☆
      • 721 Posts
      Quote from: dogslife at Jun 07, 2011, 07:46 AM

      Yes, it’s just how do I put a TV in the EvoGallery?

      Thanks
      Steve

      We ran into the same problem. In Revolution it’s easy to solve with MIGx but there isn’t such a thing for Evo. So we had our programmer modify the module a bit. Now I didn’t do this but from what I can see this was done:

      For the file modules/evogallery/classes/management.class.inc.php he added:

      $tpl = str_replace('[+url+]', $info['url'], $tpl);


      To the cluster of str_replaces around line 119 (could vary depending on what version you are using).

      Then he added this:

      $filter .= "c.url LIKE '%" . $search . "%' OR ";


      To the the cluster of like code at around 144 that begins with: // Get search filter values.

      Then:

      $fields['url'] = isset($_POST['url']) ? addslashes($_POST['url']) : '';


      To the cluster of like code at around line 102 that has this comment: // Update image information

      And then finally this:

      "`url` varchar(1024) NOT NULL, " .


      To the cluster of like code around line 452 that has this : global $modx;


      Next, you need to modify modules/evogallery/templates/image_edit.html.tpl

      Add this:

      <label for="url">URL:</label> <div class="field"><input type="text" name="url" id="description" value="[+url+]" size="35"></div>


      Just after this line (or wherever you want it to appear in the interface):

      <label for="description">Description:</label> <div class="field"><textarea name="description" id="description" rows="5" cols="35">[+description+]</textarea></div>



      For your templates, the placeholder is [+url+] as in this example:

      <a href="[~[+url+]~]"><img src="[+images_dir+][+filename+]" alt='[+title+]' title="[+title+]" /></a>


      You simply input the document ID into the URL box in the EvoGallery interface. You’ll see a URL field when you edit or update an image and then just enter the doc id, like 40 or 89, etc.

      Of course backup everything before you try this as this is second hand information and I haven’t kept up with EvoGallery’s development since we are using Revo now.
        • 17578
        • 33 Posts
        Hello all,

        I was wondering if anyone had a problem with large galleries? I’m working with a gallery of 141 images and after 125 images the drag and drop sorting becomes odd. I can easily rearrange images before 125 but anything after that will only occasionally work. Is there a default maximum number of images EvoGallery can handle? I’m going to reduce the number of images in the gallery to see if that changes anything. Any help is appreciated. I’m working on a Mac using Safari 5 and Firefox 3.6

        Modx Version 1.0.5 Traditional
        MySQL Version 4.1
        PHP Version 5
        Linux 2.4.21-66
        pdo_mysql is to the best of my knowledge, not installed


        thanks.
          • 18373 ☆ A M B ☆
          • 3,141 Posts
          Just a note that the above was crossposted on Github (which may be more suitable for in depth debugging) here: https://github.com/Mark-H/EvoGallery/issues/24
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 7752
            • 0 Posts
            Just a quick note to say thanks very much for your help guys.
            I managed to do what I needed by combining elements from all your suggestions.

            MODX is awesome!!

              • 6124
              • 9 Posts
              Hello! I can not make a call [[EvoGallery? &docId=`[*id*]`]].There is a call to all of the images in all galleries.
              Normal images are displayed only if I call a specific address &docId (eg: &docId=`7`).
              My version of the call:

              [[EvoGallery? &docId=`[*id*]` &display=`images` &includeAssets=`0` &limit=`16` &tpl=`evogallery` &itemTpl=`image`]]

              Template `evogallery`:

              <div id="content">
              [+items+]
              </div>

              Template `images`:

              <div class="content_inside">
              <div class="parent">
              <a href="[+images_dir+][+filename+]" rel="shadowbox[bigphoto]" title="[+title+]" alt="[+title+]">
              <img src="[+thumbs_dir+][+filename+]" title="[+title+]" alt="[+title+]"/></a>
              </div>
              </div>

              Modx Version 1.0.4
              Denwer 3
              MySQL 5.1
              PHP Version 5.3
              Windows 7

              What am I doing wrong? Sorry for bad English. Thanks.
                • 9995
                • 1,613 Posts
                I think u need to use:
                <img src="[+images_dir+][+filename+]"

                not thumbs_dir
                  Evolution user, I like the back-end speed and simplicity smiley
                  • 6124
                  • 9 Posts
                  Thank you for your comment. The problem is that the standard call [[EvoGallery]] without using my templates and additional parameters displays all the images from all albums. Instructions on the basic challenge is to produce an album with the id of the current document. In what may be the problem? Thank you
                    • 18373 ☆ A M B ☆
                    • 3,141 Posts
                    Are you using the package from the Extras Repository or what is on Github?

                    There’s some initiatives going on to improve this addon, and many bugs have already been fixed on Github (https://github.com/Mark-H/EvoGallery) but not in the Repository. I think this may be one of those bugs.
                      Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                      Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
                      • 9995
                      • 1,613 Posts
                      Hmm ok weird, i use these call for one project:

                      [!EvoGallery? &docId=`[*id*]` &display=`images` &type=`simple-list` &tpl=`gallery-ul` &itemTpl=`gallery-li`!]
                        Evolution user, I like the back-end speed and simplicity smiley