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

    Quote from: goldsky at Aug 05, 2010, 08:23 PM

    For your case, I look at your code as the suspect
    Quote from: chrisg at Aug 05, 2010, 06:04 PM

    [!easy2?&grid=`table`!]


    When you’re using a snippet with its parameters, try to NOT attach the "?" with the "&".

    [!easy2? &grid=`table`!]
    but you can attach "?" with the string directly:

    [!easy2?grid=`table`!]

    Well i have a feeling it might be a server issue, I do own the box at the co-lo so I will look in the log files to see if I’m getting any errors.

    Even when i use the corrected code - nothing is displayed, I will have to re-approach this and see if I can find the culprit.

    I tried installing the gallery on another domain and got the errors that "dev_cw" was getting above, so i will try his solution and see what happens.

    I will post up if I have further questions. Thanks for the help!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I am so proud of myself! I have created a plugin and it actually works shocked shocked Of course, all it does now is put "hello, world" on the thumbnails, but hey, gotta start somewhere cool

      Is plugin creation documented anywhere? I’m just basing this on the starrating plugin. Looks fairly simple to do something useful.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 34084 ☆ A M B ☆
        • 756 Posts
        When creating a new gallery using the following parameters:

        [!easy2? &gid=`4` &slideshow=`galleryview` &ss_config=`filmstrip` &w=`600` &h=`400`!]


        the page loads but returns the following error:
        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource:
        « `` is not numeric and may not be passed to makeUrl() »
        



        ...then if I change the snippet call to the following I can see all the images listed
        [!easy2? &gid=`4`&slideshow=`contentflow` &ss_config=`default`!]


        ...pondering the cause
          Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
          Visit CharlesMx.com for latest news and status updates.
          • 5187
          • 14 Posts
          Ok found some permissions problems, a corrupt config file and reinstalled. Got the gallery to work however now i have a bigger problem..

          when I hit the main index page for the site i get the following error...

          Unauthorized access

          You’re not allowed to access file folder

          I’m searching through the MODx forums but so far not much luck.. one hit on an attack.. but thats not the case on this...

          any ideas???

          OK found the problem somehow the index.html page got uploaded or added to the base dir. i removed that and the site is back to normal.

          Does easy2gallery add that index.html at install?
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            @dev_cw,
            Glad it works.

            Quote from: sottwell at Aug 06, 2010, 12:27 PM

            I am so proud of myself! I have created a plugin and it actually works shocked shocked Of course, all it does now is put "hello, world" on the thumbnails, but hey, gotta start somewhere cool

            Is plugin creation documented anywhere? I’m just basing this on the starrating plugin. Looks fairly simple to do something useful.
            Well, for RC1, I only wrote all on your Help tab menu.
            Please note that it only runs on the front-end.

            For RC2, I rework the plugin again, so now it runs like the MODx’s plugin.
            Works on the front-end AND the back-end.
            I use the YAMS and Uploadify as my initial cases.
            I still test and debug it, but you can see the snapshots here.

            Quote from: charless at Aug 06, 2010, 02:39 PM

            ...pondering the cause
            Hm... this is the slideshow’s specific issue. I’ll hunt the bug. Thx for the report.

            Quote from: chrisg at Aug 06, 2010, 06:48 PM

            Does easy2gallery add that index.html at install?
            Yes, but always starts from the gallery’s root directory which you set on the config tab.
            Did you change it, like: assets/images/gallery?
              Rico
              Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
              MODx is great, but knowing how to use it well makes it perfect!

              www.virtudraft.com

              Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

              Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

              Maintainter/contributor of Babel

              Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
              • 11055 ☆ A M B ☆
              • 3,112 Posts
              @charless,
              Open the easy2/slideshows/galleryview/galleryview.php, and note the change below
              <?php
                  /**************************************************/
                  /*              THE filmstrip CONFIG               */
                  /**************************************************/
              
                  if ($ss_config=='filmstrip') {
                      // ------------- open slideshow wrapper ------------- //
                      $ss_display = '
                  <div id="photos" class="galleryview">
                      <ul class="filmstrip">';
              
                      // ------------- start the images looping ------------- //
                      $j=0;
                      $landingpage = $landingpage!='' ? $landingpage : $modx->documentIdentifier; // <== Please, add this.
                      for ($i=0;$i<$count;$i++) {
                          // and change the makeURL as below
                          $ss_display .= '
                          <li><a target="_self" href="'.$modx->makeUrl($landingpage,null,'fid='.$_ssfile['id'][$i]).'&lp='.$landingpage.'">
                                  <img src="'.$_ssfile['thumbsrc'][$i].'" alt="'.$_ssfile['name'][$i].'" title="'.$_ssfile['title'][$i].'" />
                              </a>
                          </li>';
                          $j++;
                          if ($j==$ss_limit) break;
                      }
                      // ------------- end the images looping ------------- //
              
                      // ------------- close slideshow wrapper ------------- //
                      $ss_display .= '
                      </ul>
                  </div>';
                  }
              
                Rico
                Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                MODx is great, but knowing how to use it well makes it perfect!

                www.virtudraft.com

                Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                Maintainter/contributor of Babel

                Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                • 34084 ☆ A M B ☆
                • 756 Posts
                thanks, that fixed the issue - great work on this module again smiley
                  Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                  Visit CharlesMx.com for latest news and status updates.
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  yw
                    Rico
                    Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                    MODx is great, but knowing how to use it well makes it perfect!

                    www.virtudraft.com

                    Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                    Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                    Maintainter/contributor of Babel

                    Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    I now have a "voting" plugin that has a button similar to the comment button, but when you click it it just adds one to a field in a custom table. I used a MODx resource with a snippet for the AJAX processor.

                    Now all I need to do is decide how to limit voting (only one vote to a IP address per day, maybe...) and it’s good to go. I’ll write up an article on it with all the code on my site.

                    By the way, the starrating plugin comments lie;
                    /*
                    * Available file’s $_plug array : [id]
                    * [dir_id]
                    * [filename]
                    *
                    * [name]
                    * [description]
                    * [date_added]
                    * [last_modified]
                    * [comments]
                    * [status]
                    */
                    The only value available to a plugin like this is the $_plug[’id’].
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      Cool!

                      You don’t mind if I’ll use it as the default companion with the package, right? wink
                      Your credit will stay intact.

                      You may see the comments.easy2gallery.php, as how I applied the IP banning system.
                      <?php
                      $ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
                      


                      I’d store the SQL’s result in an array, so if the IP is in_array, the script would not display the input form, but directly to the result.
                        Rico
                        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                        MODx is great, but knowing how to use it well makes it perfect!

                        www.virtudraft.com

                        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                        Maintainter/contributor of Babel

                        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.