We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8927
    • 4 Posts
    I posted this in the General Support before I knew about this section.. this seems like the right place to put it.. hopefully some1 can help me out!


    What I’m trying to do is create a members only section of my website so I can give things individually for my members to do.. I would like to be able to share some things with only 1 user if its possible. Sort of like how each page in the site manager has its on separate "Content" area, I would like to have something separate for each user like that.. but if I want to share information with ALL the users at once I would change in the "Template" that ALL the pages share.. my best manager analogy so hopefully it helps every1 understand what i mean smiley

    Web Users
    1. How do I send an email verification?


    Member Pages
    2a. I have a page called "Dashboard" (http://siteurl.com/dashboard) that I would like to be accessible to only people that are signed in.. Is there a way to do this?

    2b. I would like to have "Hello *User’s Name*" how do I do this?
    2c. I would like to be able to change information on User1’s page without it affecting the information on User2’s page is this possible?


    Login & Logout Link
    3. near the top of my website I have <a href="[~22~]">Login</a> and it works perfectly, but How do I change "Login" to "Logout" when the user is already logged in?
      • 8927
      • 4 Posts
      is what i want possible?
        • 13736
        • 345 Posts
        Most of what you are talking about should be possible.

        I’m not exactly sure at the moment about the Login/Logout link. I had it working with the standard login code by using the Personalize 2.0 snippet and creating two chunks to display if a person was logged in or not. However it seems to have stopped working at some point after I installed WebloginPE (among other snippets). I’m not sure what the solution is yet.

        2c. As for putting custom information on User1 or User2’s pages, I would think that should be possible by creating a custom field. Then you could edit the user data to add that info.

        2b. WebLoginPE has place holders for nearly any of it’s database fields. If WebLoginPE has been called somewhere in the template then you can insert a place holder. There is also a snippet called UserPlaceholders that you could install to do something similar.

        2a. I’m not sure what you are wanting to accomplish with the dashboard, but you can setup permission groups in MODx that allows you to group users and then set a page to be only visible by that group. It’s under the Security tab "Web Users" and "Web Permissions".


          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Unfortunately the otherwise excellent documentation that comes with WebLoginPE mistakenly repeats the documentation for the &loginFormTpl. However, the &successTpl documentation does correctly link to the default "successful login" template, which you can modify as desired, using the available placeholders. See also the "Placeholders" tab in the documentation.
          [+wlpe.message+]
          <div id="wlpeUser">
          	<div id="wlpeUserInfo">
          		<div id="wlpeWelcome">
          			<img id="wlpeMyProfileImg" src="[+user.photo+]" alt="[+user.username+]" title="[+user.username+]" height="30" width="30" />
          			<p id="wlpeWelcomeParagraph">Welcome back [+user.username+]!</p>
          		</div>
          		<p id="wlpeLoginCount">You have logged into [(site_name)] [+user.logincount+] times now.<br />
          		Your last login was [+user.lastlogin+]</p>
          		<blockquote>
          			[+user.comment+]
          		</blockquote>
          		
          	</div>
          	<form id="wlpeUserForm" action="[~[*id*]~]" method="POST">
          		<fieldset id="wlpeUserButtons">
          			<button type="submit" id="wlpeLogoutButton" name="service" value="logout">Log Out</button>
          			<button type="submit" id="wlpeProfileButton" name="service" value="profile">Profile</button>
          		</fieldset>
          	</form>
          </div>
            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