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
    How can I display a single users profile? I can only get the userlist to show the whole list or usergroups but I want a single user.
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      Anyone have an idea how to do this? I worked it out using the viewport widget but I don’t want to use an Iframe at all.
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 4310
        • 2,310 Posts
        Ross,
        I’ve just started using/hacking WebloginPE for a client so am interested in different options.
        Is this the logged in managers view, the logged in users own profile view or for the public to see just one specific profile?
        Also how do you want to define which user to view, a url querystring, post form etc.
          • 25551 ☆ A M B ☆
          • 1,231 Posts
          I want to display a single users profile on a page. When you have a userslist you can click on a specific user and it takes you to their own profile page with the contact form. I want to display this single page. I have it displaying each of my test accounts on my site on creation but it’s using the viewport as I said. It’s basically putting an iframe in to the page using the service=viewprofile& string and I made a snippet to find the users ID and put it after the username part of the string. This basically displays the users profile only as the snippet finds the creator of the page and passes it to the ?service=viewprofile&username= string. So I have it as ?service=viewprofile&username=[[profileOwner]] and it shows the creator of this documents profile. The web user is the creator of the document on registration but that’s not important to explain. I just need to know how to include the specific users webloginPE profile on any page I choose but not using the iframe.

          the user name, avatar etc is being taken from webloginPE profile page but it’s in an iframe and does not validate. I don’t like iframes but I don’t know how else to include the info from weblongPE for a specific user on a specific page like this. I need to make a tv or snippet that allows me to do this as I have other snippets on that page that the user can control. The user can edit all the content on the page and galleries etc. I could create tv and use FDM to edit the user name etc but I want to pull the info from webloginPE. It’s late here so I’m tired, not sure I’m explaining myself right! If anyone has a better idea or advice that would be great.

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

            BLUcart - MODX Revolution E-Commerce & Shopping Cart
            • 20413
            • 2,877 Posts
            If anyone has a better idea or advice that would be great.

            I dunno if I dare to say it in this forum section but I use ShowMembers snippet with a whole bunch of different
            chunk templates and then I assign users to the number +country+ output matching their homepage id’s for linking.
            My users change their settings, avatar, and info with WebProfile and FileUpload Snippets. I use the users id, username
            and so on for a lot of stuff. Like In Jot I get the username automatic linked to proile with users own galleries, gustebooks and
            more.

            I have walked my own way. In the end I will be about hacking everything to crazines but it works.
              @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
              • 25551 ☆ A M B ☆
              • 1,231 Posts
              Sounds interesting... would you care to show some examples so I can see how it works etc?

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

                BLUcart - MODX Revolution E-Commerce & Shopping Cart
                • 20413
                • 2,877 Posts
                Im at my work (and working hard  tongue ) but if u
                register at http://4up2date.info/5 u will get access to my Area 51!

                Here you see:
                - [folder] Area 51 (linking to wayfinder tree outputing the docs u have access to)

                - Registered Users FAQ
                - All Users Message Board (see but not contribute)
                - All Users Photo-Gallery (see but not contribute)

                - Add public Web Links (u wont have access)

                - [ My Profile ]
                - [ My Profile Settings ]

                Then I...
                1. Create a webgroup and a documentgroup for ya
                2. Duplicate a friend folder for ya and edit jot and maxigallery rights.
                3. Create 2 chunks for ya
                4. Assign you the folder id and choose a country that match.

                Done! You now are a friend and will be able to see my other friends and
                they will see you. First now you can comment/add links and upload photos.

                I saw your automatic assigned to usergroup registration. That is what I should
                need here.

                But I have many different folders or Rooms (Clients, Work shift, VIP)

                Feel free to register!

                  @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
                  • 4310
                  • 2,310 Posts
                  Ross,
                  This is the snippet call I have in the template for each business detail page :
                  [!WebLoginPE? &type=`users` &usersList=`All Users:default:default:username:ASC:internalKey([*id*]) &usersTpl=`business_detail`!]

                  This only works if the doc id is the same as the internalKey, but it could be modified to accept another parameter as the filter.
                    • 25551 ☆ A M B ☆
                    • 1,231 Posts
                    Thanks to you both, I’m trying the ideas now but can’t seem to get it to filter correctly. I’ll keep trying and post back shortly! grin
                      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                      AugmentBLU - MODX Partner

                      BLUcart - MODX Revolution E-Commerce & Shopping Cart
                      • 25551 ☆ A M B ☆
                      • 1,231 Posts
                      Nope it either doesn’t show any profiles or it’s showing the whole list...



                      [!WebLoginPE? &type=`users` &usersList=`All Users:default:default:username:ASC:internalKey([!AuthorID!])` &usersTpl=`designerListTpl` &viewProfileTpl=`viewProfileTpl`!]

                      AuthorID is a basic snippet that gets the ID of the document creator, I’m trying that instead of [*id*] as that just showed the whole list of users.  Using AuthorID or [*id*] stopped it working altogether.

                      Am I missing something?  Thanks!


                      EDIT
                      got it working how I need it




                      [[WebLoginPE? &type=`users` &usersList=`User Profile:default:default:username:ASC:id([*createdby*])` &usersTpl=`designerListTpl` &viewProfileTpl=`viewProfileTpl`]]


                      YEY!!!
                        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                        AugmentBLU - MODX Partner

                        BLUcart - MODX Revolution E-Commerce & Shopping Cart