We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21767
    • 44 Posts
    Quote from: splittingred at Jul 22, 2010, 02:44 PM

    Quote from: norblenn at Jul 22, 2010, 02:40 PM

    Hello Shaun,

    I have installed the pagacke again, but the snippet source code of UpdateRegister is as same as of Register snippet. Is this an accident in the package? So, I need the code of UpdateRegister now.

    Norbert

    Norbert,

    I’m not sure what you’re talking about. There is no UpdateRegister snippet.

    I mean UpdateProfile, sorry.

    http://svn.modxcms.com/docs/display/ADDON/UpdateProfile

    When I open it in the manager, then it starts with this:

    <?php
    /**
    * Register
    *
    * Copyright 2010 by Shaun McCormick <[email protected]>
      • 28215
      • 4,149 Posts
      It’s just the comment...the snippet works fine.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 21767
        • 44 Posts
        Quote from: splittingred at Jul 22, 2010, 04:59 PM

        It’s just the comment...the snippet works fine.

        Oh, my mistake, I was hocused by the start and the end of the file. I am new in CMS and MODx. I have also trouble with my PC, only a LAMP-Server on localhost which has no email support and the examples and documentation, of course. I need more time to becone confident but Revo looks very modern.

        Other question: How can I ask for the login name to display it after login?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          If you have an email account somewhere else, you can set up your MODx to use it for mail by modifying your php.ini to use it for mail() functions.

          [mail function]
          SMTP = YOUR_PROVIDER (eg. smtp.mymaildomain.com)
          smtp_port = 25
          username = USERNAME
          password = YOUR_PASSWORD
          


          Or modify the phpmailer class file in manager/includes/controls and modify your contact form to use SMTP rather than mail(). (sorry, this is Revo; I don’t know if it includes the phpmailer class by default)

          Or use something like this http://www.codewalkers.com/c/a/Email-Code/Smtp-Auth-Email-Script/
            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
            • 3749
            • 24,544 Posts
            Revo has mail methods and you can change the SMTP-related System Settings to have SMTP used site-wide for all mail.
              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
              • 21767
              • 44 Posts
              Installation

              I made a fresh installation of Revolution 2.0 RC-3 localhost Ubuntu 10, LAMP-Server with database rtest

              After that I installed the Login Package and I get this message from Console Window:

              Console running...

              Created table`rtest_categories_closure` SQL: CREATE TABLE `rtest_categories_closure` (`ancestor` INT(10) unsigned NOT NULL DEFAULT ’0’,`descendant` INT(10) unsigned NOT NULL DEFAULT ’0’,`depth` INT(10) unsigned NOT NULL DEFAULT ’0’, PRIMARY KEY (`ancestor`,`descendant`)) TYPE=MyISAM
              Package found...now preparing to install.
              Workspace environment initiated, now installing package...
              Attempting to install package with signature: login-1.0.3-rc1
              Successfully installed package login-1.0.3-rc1
              Error 42S02 executing statement: INSERT INTO `rtest_categories_closure` (`ancestor`, `descendant`, `depth`) VALUES (’1’, ’1’, ’0’) Array ([0] => 42S02 [1] => 1146 [2] => Table ’rtest.rtest_categories_closure’ doesn’t exist )
              Grabbing package workspace...

              What should it mean? Important Error?
                • 28215
                • 4,149 Posts
                Ignore it, it’s just a trivial bug in 2.0-pl that wont affect anything.
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 21767
                  • 44 Posts
                  Okay, further from the scratch.

                  I used the Register example form by http://svn.modxcms.com/docs/display/ADDON/Register.Example+Form+1#Register.ExampleForm1-TheResource

                  This is strange: At the begin, the field-names are "register.username", "register.password" etc. Then I edited the value item in row 16 value="" to value="1". Since that action I am geting the correct English field names "Username", "Password" from the lexicon.
                    • 21767
                    • 44 Posts
                    About documentation:

                    The example in http://svn.modxcms.com/docs/display/ADDON/Register.Example+Form+1#Register.ExampleForm1-TheResource comes with an extra myActivationEmailTpl chunk. But the package has already the same ActivationEmailTpl chunk. I would use the latter one and would delete the myActivationEmailTpl chunk because it is not necessary to understand the function.
                      • 21767
                      • 44 Posts
                      There are the system settings Blocked Minutes and Failed Login Attempts. I assume that they are not used anyway in the front end interface.