We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8894
    • 114 Posts
    I have added the possibility to use a MODx document as a template parameter for WebLoginPE.
    Just add into weblogin.class.php, into the Template function, the lines that are in blue bold font:

    [tt]function Template($chunk)
    {
    global $modx;

    $template = ’’;
    if ($modx->getChunk($chunk) != ’’)
    {
    $template = $modx->getChunk($chunk);
    }
    else if (is_file($chunk))
    {
    $template = file_get_contents($chunk);
    }
    else if (is_numeric($chunk) && ($docInfo = $modx->getDocument($chunk, ’content’)))
    {
    $template = $docInfo[’content’];
    }

    else
    {
    $template = $chunk;
    }
    return $template;
    }
    [/tt]
      • 13736
      • 345 Posts
      Open ID login has already been mentioned, but I was just thinking it would be nice to also integrate with Windows Live ID service.

      Windows Live ID Web Authentication SDK - MSDN Support Page
      http://msdn2.microsoft.com/en-us/library/bb676633.aspx

      Windows Live ID Web Authentication SDK - download page
      http://www.microsoft.com/downloads/details.aspx?FamilyId=24195B4E-6335-4844-A71D-7D395D20E67B

      Plus, it would be nice to link multiple login methods to a single user account. So if a user had a previous MODx account and wanted to start using a Live ID or Open ID, then they wouldn’t have to start from scratch on a new profile.

        • 27302
        • 154 Posts
        I’d like to see the ability to turn profile fields into keywords so that people can view profiles and click on a word to bring up other user profiles with the same keywords. Kind of like the way Facebook profiles work.
          • 24854
          • 10 Posts
          Thx for your WebLoginPE dear Pirate , it’s really amazing wink


          I just see two request :


          • 1. Alias Username for link

          To have something like an alias username, to be able to make link to profile with accent.
          Example : for the user : "Frédéric 53" have a link like :
          <a href="id=55&service=viewprofile&username-alias=frederic-53">View the Frédéric 53 Profile</a>
          


          Actually we have this kind of url for the profil link :
          <a href="id=55&service=viewprofile&username-alias=Frédéric 53">View the Frédéric 53 Profile</a>
          


          And on the viewprofil page, we can’t see the profil of this people.


          • 2. Login with email+password instead of username+password

          Many of user have a lot of account on different websites, with different username.
          Sometimes they have some difficulties to remember their current username.
          But they never forget their email

          That’s why, i think it will be very Friendly !

          An other time, thank you for this snippet. Really helpful.

          bye!
            • 22827
            • 129 Posts
            Quote from: Bruno17 at Feb 15, 2008, 11:45 AM


            I did make some little modifications to webloginPE. Now I only have to put placeholders in the editprofil-form for the groups I want to edit and i have Radiobuttons with Yes and No for adding or deleting the user to a group. You do not need any additional parameters for this work. I can post my changes here if anybody is interested.


            in function ViewUserProfile($username,$inputHandler)


            // von Bruno Perner input placeholders for editing webgroups.
            $web_groups = $modx->getFullTableName(’web_groups’);
            $webgroup_names = $modx->getFullTableName(’webgroup_names’);
            $groupNames = $modx->db->query("SELECT * FROM ".$webgroup_names);
            $usergroups = $modx->db->query("SELECT " .$webgroup_names.".id as id,name FROM ".$web_groups."," .$webgroup_names." WHERE ".$web_groups.".`webuser` = ’".$userID."’ AND ".$webgroup_names.".`id` = ".$web_groups.".`webgroup`");
            $iG=0;
            while ($row = $modx->db->getRow($usergroups)){
            $allgroups[$iG] = $row[’name’];
            $iG=$iG+1;
            }
            $iH=10000;
            if ($groupNames){
            while ($row = $modx->db->getRow($groupNames)){
            $groupname = $row[’name’];
            $groupid = $row[’id’];

            $inputHandler[$iH] = $groupname.’:wlpeUserProfileWebgroup_’.$groupname.’:webgroup_’.$groupname.’:radio:Ja(’.$groupid.’),Nein(’.$groupid*(-1).’)’;
            if (in_array($groupname, $allgroups)){
            $viewUser[’webgroup_’.$groupname]=$groupid;
            }else{
            $viewUser[’webgroup_’.$groupname]=$groupid*(-1);
            }
            $iH=$iH+1;
            }
            }

            // End von Bruno

            foreach ($inputHandler as $value)


            The Placeholder: [+form.webgroup_YourGroupName+]

            Thanks for this Bruno17, saved a lot of time for me. One small adjustment:

            $allgroups = array();

            If this isn’t set prior to the while loop, then if the member is in no groups, it will error during the group test further along.