We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24253
    • 125 Posts
    Another point with QE is that it’s getting called, even when you’re _not_ logged in into the manager.
    IMHO, this should be checked _before_ starting to go on and execute QE code.
    I think, this will do in the QE plugin code:

    // Check if we are a manager user, if not, return immediately
    if(!isset($_SESSION['mgrValidated'])) {
           return;
    }
    
    // Set configuration variables if not already set
    if(!isset($mod_path)) { $mod_path = 'assets/modules/quick_edit'; }
    


    Just before any other code in the plugin smiley

    Now, the ouput.class.inc.php.even more has this check to, which is then of course redundant...

    Remon
      • 1764
      • 680 Posts
      Quote from: R.S. at Dec 22, 2005, 02:06 PM

      QE looks in it’s own lang directory for the current set lang in the manager.

      Ah, I put so much work into getting this to work right and then such a stupid bug blew the whole thing up. I just commited a fix and the new version sholuld work fine. QuickEdit will look in both it’s own lang directory and the main lang directory for translations. So you can add your translations in either place.

      Quote from: R.S. at Dec 22, 2005, 02:41 PM

      Another point with QE is that it’s getting called, even when you’re _not_ logged in into the manager.

      Right again. It used to have to run even for a visitor becaus the [*#*] tags had to be turned into [**] tags but Raymond recently added the tag conversion into the core parser so it’s not really necessary anymore so I’ve added the check at the beginning as you suggested.

      Thanks for catching this, after all the work I put into getting QE to be multi-lingual I’d of hated to see that bug make it into the release.

      P.S. I’m not sure when we’ll get another snapshout out for testing or if we will before the 0.9.1 release. So I’m attaching the updated QE module.
        • 24253
        • 125 Posts
        Yeah, but thats how it goes. I think it has to do with usage patherns or something. Each person tends to repeats the same usage patherns all the time, and so a dev doesn’t catch all the bugs, and someone else just breaks it lags over it haha.

        So, here’s another one:

        PHP error debug
          Error: 	contentvariable(/home/remon/public_html/test//assets/modules/quick_edit/lang/nederlands.inc.php): failed to open stream: No such file or directory	 
          Error type/ Nr.: 	Warning - 2	 
          File: 	/home/remon/public_html/test/assets/modules/quick_edit/contentVariable.class.inc.php	 
          Line: 	63	 
          Line 63 source: 	include_once($qe_eng_path);
        


        Also note that there are 2 // before assets. It works, but it’s not so nice....

        Perhaps, if there are more of these things somewhere..... ;-)

        Greetz,

        Remon
          • 24253
          • 125 Posts
          Oh well, it’s a copy paste smiley

          See attached files

          Remon

          P.S.
          VERY nice work btw, the QE is in Dutch all of a sudden smiley
            • 25663 MODX Staff
            • 12,272 Posts
            Does anyone object to updating the default install state as follows:


            • Turn on using access permissions
            • Remove the "p" from FURL prefixes (but NOT turning on FURLs by default)
            • Setting use FURL aliases (but NOT alias paths)
            • Setting default published/cached/searchable state to on

            Also, if the signup messages come from the language files, why do we have them inserted into the database during install?
            (’emailsender’,’[email protected]’),
            (’emailsubject’,’Your login details’),
            (’signupemail_message’,’Hello [+uid+] \r\n\r\nHere are your login details for [+sname+] Content Manager:\r\n\r\nUsername: [+uid+]\r\nPassword: [+pwd+]\r\n\r\nOnce you log into the Content Manager at [+surl+], you can change your password.\r\n\r\nRegards,\r\nSite Administrator’),
            (’websignupemail_message’,’Hello [+uid+] \r\n\r\nHere are your login details for [+sname+]:\r\n\r\nUsername: [+uid+]\r\nPassword: [+pwd+]\r\n\r\nOnce you log into [+sname+] at [+surl+], you can change your password.\r\n\r\nRegards,\r\nSite Administrator’),
            (’webpwdreminder_message’,’Hello [+uid+]\r\n\r\nTo active you new password click the following link:\r\n\r\n[+surl+]\r\n\r\nIf successful you can use the following password to login:\r\n\r\nPassword:[+pwd+]\r\n\r\nIf you did not request this email then please ignore it.\r\n\r\nRegards,\r\nSite Administrator’),
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 25663 MODX Staff
              • 12,272 Posts
              Quote from: R.S. at Dec 22, 2005, 04:21 PM

              Oh well, it’s a copy paste smiley

              See attached files
              What do the attached files fix?

              Also, for Adam:

              Did you test QE with stop on notice on?
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 25663 MODX Staff
                • 12,272 Posts
                Quote from: jaredc at Dec 22, 2005, 09:07 AM

                I have a need that I’d REALLY like to see integrated into a very near release. The auto menuindex feature really throws me off.

                Thank you for making such a great request complete with a total how-to manual! This will be the first commit post-0.9.1 so you can safely hack the release away with this and rest assured it will make it ino 0.9.2. Or, if you can make sure it also handles upgrade installs, we could go ahead and get it in I suppose.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Also, if the signup messages come from the language files, why do we have them inserted into the database during install?

                  If I’m getting this right, I think that until you save your settings, it won’t update the database with the "native" email message... hmmm...

                  Perhaps the future language updates could/should include dual native/english messages for safety.

                  And definitely another reason to save your site config once you login to the manager the first time!
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 25663 MODX Staff
                    • 12,272 Posts
                    OK... now I think we’re seriously ready for just the warning notice testing... Rev 637 attached.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 25663 MODX Staff
                      • 12,272 Posts
                      And the final final test build with Friendly Alias paths even working flawlessly now!

                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me