On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Quote from: smashingred at Nov 10, 2006, 07:57 PM
    Thank you for your kind words.

    But I don’t know if anyone has managed to install it, and also no one has looked into the code.

    But with all positive response I’ll sure keep on developing PPP.

    Need to find a better name for it though, a name with "eXtended" in it would be nice as it’s kind of extends eForm.

    :)
    • Anders,

      I am working on the ability to show all the users items in the list mode and to set the sortby in the parameters. If the listing was more robust, then this would be great for anything you may want to CRUD. Am I right here, anyone?

      Anyway I am working on an xtd listing proof of concept for your snippet.

      Chuck
        Chuck the Trukk
        ProWebscape.com :: Nashville-WebDesign.com
        - - - - - - - -
        What are TV's? Here's some info below.
        http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
        http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
      • Chuck,

        That would be nice!

        But I don’t know what CRUD stands for, my English isn’t that good.

        I’m currently working on the list mode too, but with the ability to specify what field/fields must be filled in for the user to appear in the list. Could be usefull for hiding users that haven’t completed certain fields in the registration, or maybe to only list those with a picture.

        Will also finnishing up the functions for include/exclude users for the list mode as well as selecting which user groups should be shown in list.

        I’ll leave it to you to write an exiting Inner Join sql expression making us able to list from more fields (I have no clue here laugh )

        Soon I also work on picture handling.

        But for now I must go to sleep for like 24 hours, been working with this for 16 hours each day latest week. Takes me a long time creating code as I have to read the php manual everytime I need to do something smiley

        Thanks,

        Anders
        • anders,

          CRUD is just a term used to describe the 4 basic functions of a database program.

          C * Create new Records
          R * Retrieve those records via some search interface, displaying results in a hitlist format
          U * Update existing records, using a form similar to the create phase
          D * Delete some records

          Chuck
            Chuck the Trukk
            ProWebscape.com :: Nashville-WebDesign.com
            - - - - - - - -
            What are TV's? Here's some info below.
            http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
            http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
          • Thanks for the explanation Chuck!

            I’ve made some additions to the list mode function, but I invoked them as extra function call, so it shouldn’t affect any enhancements you’re making. (Don’t know if you’ll just make some example code or if you’ll implement it too, both works fine).

            /Anders
            • hey i solved my problem it was on line 135
              $ppp_PhListUsers .= '<a href="[~'. $directTo .'~]?wid=' . $userId . '">' . $userName . '</a><br />';

              The ? before wid should of been a & as i had already had a ? in my url like www.site.tld/index.php?id=64 so I changed it to a & and it worked.

              Another Question:
              is there anyway I can put on a doc how many people are online and link it to a members page etc?
              • Many snippets that will be adding to the query string like that have a conditional block to determine if the site is using friendly URLs or not, and uses a ? or a & depending on which it is.
                  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
                • SynthX and Susan, thanks for finding that out! I use FURL so I would never have thought of that... If someone have a code snippet for that check, pls post it, that’ll save me two hours... don’t forget, I’m a php newbie, every little thing I do takes me hours wink Or I can check that in another snippet...

                  SynthX, I’m currently working with the list mode, and also I’ll add some new features to show lists of people on line and things like that. Number of people on line is one of the things I’ll fix soon. Probably will take a few days though, must do some "private" stuff that I haven’t had time for latest week. Edit: Maybe there exist already a snippet for that? /Edit

                  When you say "and link it to a members page", do you mean that you want to link to a specific user profile?

                  If so, you can create a separate (not in menu) document for that user and style it as you want. Check the document id of that document and add &webuserid=`##` to the ppp snippet call where ## should be replaced with the user id of the user you want to have a "static" page.

                  Then you add a standard link to that page.

                  I’ll solve this in a better way in next version, it’s on my pretty long todo list.

                  • if($modx->config['friendly_urls'] == 1) {
                      $arg = '?';
                    } else {
                      $arg = '&';
                    }
                    


                    then just use the $arg variable in making your link.
                      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
                    • Quote from: sottwell at Nov 11, 2006, 05:46 PM
                      if($modx->config['friendly_urls'] == 1) {
                      smiley Thanks Susan!

                      I didn’t know (at least didn’t think of it) that you could access that parameter like that, I would have made a database call to the settings table. Stupid me! laugh

                      /Anders