We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    I have created a plugin that allows registered users to created their own user group, pages and add members who request to be added to their group but I have 1 issue... When I add a member to a new user group and that person is signed in, the user group setting won’t take effect till the user logs out and back in again. I have added a clear cache to the plugin which helps for the page creation side but this doesn’t help signed in users. Is there a way to add someone to a user group with out having to have them log out for the permissions to kick in?

    Thanks
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Modify the SESSION array.
        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
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        Thanks for the reply... Within the plugin or do I have to hack one of the core files?
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 20413
          • 2,877 Posts
          Please share rossco!!
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Never hack!!! A plugin would do nicely; I’d have to stop and think and look into it a bit to figure out which event to use; I’m working on three projects right now, and that’s about as far as my concentration can be split unless you really can’t figure it out.
              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
              • 16183
              • 1,390 Posts
              Quote from: sottwell at Aug 23, 2009, 05:33 AM

              ....I’m working on three projects right now.....

              Do these include the how-to-snippets articles you were to add to your site "MODx From the Inside"? I remember you asking what we’d like you to write about next. Can’t find the thread atm.

              cheers/k
                • 25551 ☆ A M B ☆
                • 1,231 Posts
                I’m sure quite a few people would like to be able to add members to groups with out them having to sign out... I have been creating my own bits and pieces but never managed to figure that one out!

                There’s no rush but it would be nice if someone can figure it out.
                  Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                  AugmentBLU - MODX Partner

                  BLUcart - MODX Revolution E-Commerce & Shopping Cart
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Buiding a site with some fancy WebLoginPE usage involved (as well as front-end temporary editing of bits of the content using a simple mootools script (the AJAX bit isn’t needed, since the documents will be printed, not saved), documenting Revolution usage, which means a lot of time studying it and going over the processes I’m documenting until I fully understand what they’re doing (if not exactly how yet), and documenting the actual usage of WebLoginPE. The article on Evolution and snippets is about 1/3 done; but I figured since I’m building the site with WebLoginPE I might as well take the time to document what I’m doing as well.

                  Ok, it all depends on the scripts that are putting people in the groups. If they are setting up the event interrupt, then you can use it in a plugin to set the user’s webgroups in the SESSION. Otherwise, you’ll have to hack the script that is doing the group thing to also set the SESSION. See my site, http://www.sottwell.com/article-sessions.html, for what you’ll need to set.
                    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
                    • 16183
                    • 1,390 Posts
                    Quote from: sottwell at Aug 23, 2009, 07:25 AM

                    Buiding a site with some fancy WebLoginPE usage involved (as well as front-end temporary editing of bits of the content using a simple mootools script (the AJAX bit isn’t needed, since the documents will be printed, not saved), documenting Revolution usage, which means a lot of time studying it and going over the processes I’m documenting until I fully understand what they’re doing (if not exactly how yet), and documenting the actual usage of WebLoginPE. The article on Evolution and snippets is about 1/3 done; but I figured since I’m building the site with WebLoginPE I might as well take the time to document what I’m doing as well.

                    OK thanks. Ye, I noticed the WebLoginPE stuff on your site.

                    cheers/k