We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    Quote from: BobRay at Aug 20, 2008, 02:52 PM

    Quote from: rthrash at Aug 20, 2008, 08:19 AM

    Setting up the base doesn’t mean doing the initial import. I think it’s basically telling Google Code you want to have SVN and giving it a name. I’ve not done it myself, so I could be very wrong.

    The Google account is set up, so I think all that’s needed is to dump a local repository ( http://www.shokhirev.com/nikolai/programs/SVN/backup_load.html), set the rev number to 0 at Google, and upload the dump.

    I think Soshite might be stuck at creating the local SVN repository. I outlined the steps for that earlier in this thread but may have left something out.


    Nah, I’ve just been busy lately with other stuff. I should have time tonight / tomm. morning.
      My Snippets
      -> PopUpChunk v1.0
      • 28033
      • 925 Posts
      Could someone send me the EOL-valid .php files, or at least give a free editor that can normalize them?
        My Snippets
        -> PopUpChunk v1.0
        • 31471
        • 206 Posts
        http://www.textpad.com/

        I think it’s what you want - it can convert Unix and Windows type of text files.
          • 28033
          • 925 Posts
          Quote from: vhollo at Aug 21, 2008, 10:07 AM

          http://www.textpad.com/

          I think it’s what you want - it can convert Unix and Windows type of text files.

          I keep getting issues w/ the snippet file, although the class file was fixed using that.
            My Snippets
            -> PopUpChunk v1.0
            • 3749
            • 24,544 Posts
            Quote from: Soshite at Aug 21, 2008, 09:54 AM

            Could someone send me the EOL-valid .php files, or at least give a free editor that can normalize them?

            Did you try this in your SVN setup as I mentioned above in this thread:

            *.php = svn:eol-style=native

            In theory, that fixes all EOL problems.

              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 28033
              • 925 Posts
              Quote from: BobRay at Aug 21, 2008, 01:53 PM

              Quote from: Soshite at Aug 21, 2008, 09:54 AM

              Could someone send me the EOL-valid .php files, or at least give a free editor that can normalize them?

              Did you try this in your SVN setup as I mentioned above in this thread:

              *.php = svn:eol-style=native

              In theory, that fixes all EOL problems.

              ### This file configures various client-side behaviors.
              ###
              ### The commented-out examples below are intended to demonstrate
              ### how to use this file.
              
              ### Section for authentication and authorization customizations.
              [auth]
              ### Set store-passwords to 'no' to avoid storing passwords in the
              ### auth/ area of your config directory.  It defaults to 'yes'.
              ### Note that this option only prevents saving of *new* passwords;
              ### it doesn't invalidate existing passwords.  (To do that, remove
              ### the cache files by hand as described in the Subversion book.)
              # store-passwords = no
              ### Set store-auth-creds to 'no' to avoid storing any subversion
              ### credentials in the auth/ area of your config directory.
              ### It defaults to 'yes'.  Note that this option only prevents
              ### saving of *new* credentials;  it doesn't invalidate existing
              ### caches.  (To do that, remove the cache files by hand.)
              # store-auth-creds = no
              
              ### Section for configuring external helper applications.
              [helpers]
              ### Set editor to the command used to invoke your text editor.
              ###   This will override the environment variables that Subversion
              ###   examines by default to find this information ($EDITOR, 
              ###   et al).
              # editor-cmd = editor (vi, emacs, notepad, etc.)
              ### Set diff-cmd to the absolute path of your 'diff' program.
              ###   This will override the compile-time default, which is to use
              ###   Subversion's internal diff implementation.
              # diff-cmd = diff_program (diff, gdiff, etc.)
              ### Set diff3-cmd to the absolute path of your 'diff3' program.
              ###   This will override the compile-time default, which is to use
              ###   Subversion's internal diff3 implementation.
              # diff3-cmd = diff3_program (diff3, gdiff3, etc.)
              ### Set diff3-has-program-arg to 'true' or 'yes' if your 'diff3'
              ###   program accepts the '--diff-program' option.
              # diff3-has-program-arg = [true | false]
              ### Set merge-tool-cmd to the command used to invoke your external
              ### merging tool of choice. Subversion will pass 4 arguments to
              ### the specified command: base theirs mine merged
              # merge-tool-cmd = merge_command
              
              ### Section for configuring tunnel agents.
              [tunnels]
              ### Configure svn protocol tunnel schemes here.  By default, only
              ### the 'ssh' scheme is defined.  You can define other schemes to
              ### be used with 'svn+scheme://hostname/path' URLs.  A scheme
              ### definition is simply a command, optionally prefixed by an
              ### environment variable name which can override the command if it
              ### is defined.  The command (or environment variable) may contain
              ### arguments, using standard shell quoting for arguments with
              ### spaces.  The command will be invoked as:
              ###   <command> <hostname> svnserve -t
              ### (If the URL includes a username, then the hostname will be
              ### passed to the tunnel agent as <user>@<hostname>.)  If the
              ### built-in ssh scheme were not predefined, it could be defined
              ### as:
              # ssh = $SVN_SSH ssh
              ### If you wanted to define a new 'rsh' scheme, to be used with
              ### 'svn+rsh:' URLs, you could do so as follows:
              # rsh = rsh
              ### Or, if you wanted to specify a full path and arguments:
              # rsh = /path/to/rsh -l myusername
              ### On Windows, if you are specifying a full path to a command,
              ### use a forward slash (/) or a paired backslash (\\) as the
              ### path separator.  A single backslash will be treated as an
              ### escape for the following character.
              
              ### Section for configuring miscelleneous Subversion options.
              [miscellany]
              ### Set global-ignores to a set of whitespace-delimited globs
              ### which Subversion will ignore in its 'status' output, and
              ### while importing or adding files and directories.
              ### '*' matches leading dots, e.g. '*.rej' matches '.foo.rej'.
              # global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
              #   *.rej *~ #*# .#* .*.swp .DS_Store
              ### Set log-encoding to the default encoding for log messages
              # log-encoding = latin1
              ### Set use-commit-times to make checkout/update/switch/revert
              ### put last-committed timestamps on every file touched.
              # use-commit-times = yes
              ### Set no-unlock to prevent 'svn commit' from automatically
              ### releasing locks on files.
              # no-unlock = yes
              ### Set mime-types-file to a MIME type registry file, used to
              ### provide hints to Subversion's MIME type auto-detection
              ### algorithm.
              # mime-types-file = /path/to/mime.types
              ### Set preserved-conflict-file-exts to a whitespace-delimited
              ### list of patterns matching file extensions which should be
              ### preserved in generated conflict file names.  By default,
              ### conflict files use custom extensions.
              # preserved-conflict-file-exts = doc ppt xls od?
              ### Set enable-auto-props to 'yes' to enable automatic properties
              ### for 'svn add' and 'svn import', it defaults to 'no'.
              ### Automatic properties are defined in the section 'auto-props'.
              enable-auto-props = yes
              ### Set interactive-conflicts to 'no' to disable interactive
              ### conflict resolution prompting.  It defaults to 'yes'.
              # interactive-conflicts = no
              
              ### Section for configuring automatic properties.
              [auto-props]
              ### The format of the entries is:
              ###   file-name-pattern = propname[=value][;propname[=value]...]
              ### The file-name-pattern can contain wildcards (such as '*' and
              ### '?').  All entries which match (case-insensitively) will be
              ### applied to the file.  Note that auto-props functionality
              ### must be enabled, which is typically done by setting the
              ### 'enable-auto-props' option.
              # *.c = svn:eol-style=native
              # *.cpp = svn:eol-style=native
              # *.h = svn:eol-style=native
              # *.dsp = svn:eol-style=CRLF
              # *.dsw = svn:eol-style=CRLF
              # *.sh = svn:eol-style=native;svn:executable
              *.php = svn:eol-style=native
              *.txt = svn:eol-style=native
              *.js = svn:eol-style=native
              *.xml = svn:eol-style=native
              *.css = svn:eol-style=native
              *.htm = svn:eol-style=native
              *.html = svn:eol-style=native
              *.png = svn:mime-type=image/png
              *.jpg = svn:mime-type=image/jpeg
              *.gif = svn:mime-type=image/gif
              # Makefile = svn:eol-style=native
              
              svn:keywords Date Author Revision


              That’s how the configuration is set up. Did I miss something?
                My Snippets
                -> PopUpChunk v1.0
                • 3749
                • 24,544 Posts
                That looks good, but I don’t think the eol thing will take effect until you do a least one commit of all the files.
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 28033
                  • 925 Posts
                  Quote from: BobRay at Aug 21, 2008, 09:15 PM

                  That looks good, but I don’t think the eol thing will take effect until you do a least one commit of all the files.

                  Anyone wanna take a look at that file, then? I’m basically stuck at that step because of that issue.
                    My Snippets
                    -> PopUpChunk v1.0
                    • 28189
                    • 47 Posts
                    Quote from: Metaller at May 26, 2008, 07:41 AM

                    Bug found: path to user photo is deleted when saving profile.

                    In webloginpe.class.php near
                    if ($field!='photo' || ($_FILES['photo']['name'] !== '' && !empty($_FILES['photo']['name']))) // for update db with value and blank value (except if the field is 'photo')


                    need to add {} bracers
                    if ($field!='photo' || ($_FILES['photo']['name'] !== '' && !empty($_FILES['photo']['name']))) // for update db with value and blank value (except if the field is 'photo')
                    {
                    	// CREDIT: Mike Reid (aka Pixelchutes) for the string escape code.
                    	$charset='"'.$modx->config['modx_charset'].'"';
                    	$generalElementsUpdate[] = " `".$field."` = '".$modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES, $modx->config['modx_charset'])))."'";
                    }


                    I downloaded the latest WebLoginPE, and there are 2 instances of:

                    {
                    	// CREDIT: Mike Reid (aka Pixelchutes) for the string escape code.
                    	$charset='"'.$modx->config['modx_charset'].'"';
                    	$generalElementsUpdate[] = " `".$field."` = '".$modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES, $modx->config['modx_charset'])))."'";
                    }
                    


                    So it was still deleting my user photo on profile update. tongue
                      • 28189
                      • 47 Posts
                      Something I’ve noticed:

                      After "saving" and clicking "done" in the profile edit, $modx->getLoginUserName() seems to return nothing  huh