We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26435
    • 1,193 Posts
    ScottyDelicious Reply #221, 19 years ago
    @ejcross:
    Yes, separate pages.
    Profile page:
    [!WebLoginPE? &type=`profile`!]

    User Page:
    [!WebLoginPE? &type=`user`!]

    You could use a custom form on the profile page with a link to view their profile (how it would look to other users) like this (assuming the `user` page is id (123)):
    <a href="[~123~]?service=viewuser&username=[+user.username+]">View your profile</a>


    @pixelchutes:
    I don’t think it will be ready tonight, but probably tomorrow or thursday depending on how willing bugs are to meet with my foot.

    -sD-
    Dr. Scotty Delicious, Scientist DFPA.

      Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
      All of the above... in no specific order.


      I send pointless little messages
      • 28033
      • 925 Posts
      IIRC, the main change between PPP and WLPE was how WLPE didn’t use the Internal Key/etc. stuff in the same was as PPP, right?

      So, in theory, doing some MySQL commands to convert PPP’s tables to WLPE format would be all that is required, right (for the custom tables)? If so, I could probably be able to help you in finding exactally what needs to be changed over for current PPP users, if it would help you. smiley
        My Snippets
        -> PopUpChunk v1.0
        • 26435
        • 1,193 Posts
        ScottyDelicious Reply #223, 19 years ago
        Quote from: Soshite at Sep 11, 2007, 09:04 PM

        IIRC, the main change between PPP and WLPE was how WLPE didn’t use the Internal Key/etc. stuff in the same was as PPP, right?

        So, in theory, doing some MySQL commands to convert PPP’s tables to WLPE format would be all that is required, right (for the custom tables)? If so, I could probably be able to help you in finding exactally what needs to be changed over for current PPP users, if it would help you. smiley
        Can you give me a list of the DEFAULT column names that were created for the PPP table?

        -sD-
        Dr. Scotty Delicious, Scientist DFPA.
          Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
          All of the above... in no specific order.


          I send pointless little messages
          • 28033
          • 925 Posts
          Quote from: Dr. at Sep 11, 2007, 09:07 PM

          Quote from: Soshite at Sep 11, 2007, 09:04 PM

          IIRC, the main change between PPP and WLPE was how WLPE didn’t use the Internal Key/etc. stuff in the same was as PPP, right?

          So, in theory, doing some MySQL commands to convert PPP’s tables to WLPE format would be all that is required, right (for the custom tables)? If so, I could probably be able to help you in finding exactally what needs to be changed over for current PPP users, if it would help you. smiley
          Can you give me a list of the DEFAULT column names that were created for the PPP table?

          -sD-
          Dr. Scotty Delicious, Scientist DFPA.

          I’m going to sign off for the night...but I should be able to get it to you by tommorow. It might be delayed till Thursday late-afternoon, since I have three college exams to study for, though.
            My Snippets
            -> PopUpChunk v1.0
            • 26435
            • 1,193 Posts
            ScottyDelicious Reply #225, 19 years ago
            WebLoginPE creates two columns by default. `id` which is an auto increment integer column (for self reference) and `internalKey` which is populated with the value of the `id` column from the `web_users` table (other tables in MODx also reference the `web_user`.`id` as "internalKey" so I followed suit.

            I have not installed PPP, but from what I can remember, what I am calling the "internalKey", the PPP snippet is calling "webuser". IF THIS IS THE CASE, you should be able to use phpMyAdmin to change the PPP table column name from "webuser" to "internalKey" and it should be good to go with WebLoginPE.
              Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
              All of the above... in no specific order.


              I send pointless little messages
              • 26435
              • 1,193 Posts
              ScottyDelicious Reply #226, 19 years ago
              Quote from: jesster444 at Sep 10, 2007, 10:03 AM

              I have not had the chance to use WebLoginPE, but maybe it would be useful to add an "id" parameter, similar to ditto (http://ditto.modxcms.com/files/snippet-ditto-php.html#id) so that multiple instances of WLPE can be called on the same page, i.e., one call in the template for the sidebar, and another call in the content for the profile.
              I tried this... >:(
              <?php...
              $id = isset($id) ? $id : mt_rand();
              ...
              $wlpe = 'wlpe'.$id;
              $$wlpe = new WebLoginPE($wlpe_lang, $dateFormat, $userImageSettings);
              ...
              ?>
              

              It doesn’t work. I have to admit, I have no idea how to make this work multiple times on a page. I am searching, but I heard google hates me tonight. At least it seems that way ’cause I’m not getting the answers I am looking for!

              -sD-
              Dr. Scotty Delicious, Scientist DFPA.
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 23491 ☆ A M B ☆
                • 1,056 Posts
                Maybe hit Mark up? (Ditto) I am pretty sure you can define a ditto ID for use with multiple ditto calls on a page where you need one of them to handle associated pagination links...

                The two sound relatively the same to me...?
                  Mike Reid - www.pixelchutes.com
                  MODx Ambassador / Contributor
                  [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                  ________________________________
                  Where every pixel matters.
                  • 26435
                  • 1,193 Posts
                  ScottyDelicious Reply #228, 19 years ago
                  Quote from: pixelchutes at Sep 11, 2007, 10:29 PM

                  Maybe hit Mark up? (Ditto) I am pretty sure you can define a ditto ID for use with multiple ditto calls on a page where you need one of them to handle associated pagination links...
                  The two sound relatively the same to me...?

                  Here is a little snippet of a pseudo conversation I had with God.

                  9:01:21 PM Scotty Delicious: Jason, Why cant I have WebLoginPE successfully called twice on the same page? Why? Why? WHY?!?!?! :’(
                  10:11:18 PM Scotty Delicious: Jason. Let me know if you have any Q & A time tonight.
                  10:12:05 PM OpenGeek: Give me about 20 or 30; setting up for open mic’ at the club
                  10:12:13 PM Scotty Delicious: np
                  10:35:08 PM Scotty Delicious: Just an update Jason... I could not figure out why in the world WebLoginPE would display the profile page fine, but later in the page... nothing! I searched high and low for issues with instantiating a class multiple times on a page. twiddley doo.... long story short, Check the simple stuff first Scotty D! In the snippet code I had "include_once" on the default templates php file. Taking away the _once fixed it. I feel like an R-Tard.
                  10:35:16 PM Scotty Delicious: so... for now, case closed
                  10:37:34 PM Scotty Delicious: Your psychic powers are amazing. It’s like, I just ask you a question, and regardless if you are available to answer it or not, you telepathically put the answer in my head. I don’t know how you do it, and I don’t want to know. Keep that secret safe. That’s a precious nugget :-x

                  STUPID inculde_once!
                  I should have known better! Just two days ago I was having the EXACT problem with the ViewAllUsers() method.
                  Anyway, the "id" thing seems unnecessary at this point so I have re-removed it (LOL), but I did change a few of the services for &type=`simple` so when you are editing a profile page it does not try to save the data twice (causing a total meltdown).

                  Changes to the &type=`simple` services:

                  ’saveprofile’ is now ’saveprofilesimple’
                  ’deleteprofile’ is now ’deleteprofilesimple’
                  ’confirmdeleteprofile’ is now ’confirmdeleteprofilesimple’

                  If you are using type simple and NOT passing values for the parameter &profileHomeId, you will have to change your buttons in the next release.

                  -sD-
                  Dr. Scotty Delicious, Scientist DFPA.
                    Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                    All of the above... in no specific order.


                    I send pointless little messages
                    • 23491 ☆ A M B ☆
                    • 1,056 Posts
                    Ah, good catch!

                    I am curious, how many "services" does WLPE offer?
                    Quote from: "As

                    # login,
                    # logout,
                    # profile,
                    # viewprofile,
                    # messageuser,
                    # saveprofile,
                    # deleteprofile,
                    # confirmdeleteprofile,
                    # registernew,
                    # register,
                    # forgot,
                    # resetpassword,
                    # activate,
                    # activated,
                    # cancel
                    With the next release, can ANY service be disabled via a snippet param?

                    Example: Let’s say you want a locked down registration process (Added By Admins Only) AND you don’t want users to be able to see OTHER USER’s Profiles (thinking more along the lines of a user based application opposed to a traditional user based community website...)

                    Will something like this be an option?
                    &disableServices=`register,registernew,viewprofile`

                    ...where the above example would prevent anyone from passing custom values via the URL to gain access to a WLPE service (as we discussed earlier in this thread)

                    Or, maybe you just don’t want users to be able to delete their profiles just because WLPE is active/installed:
                    &disableServices=`deleteprofile`
                    



                    In other words, have you implemented the ability to disable any service, or just "deleteprofile"? Regardless, how did you accomplish this?
                      Mike Reid - www.pixelchutes.com
                      MODx Ambassador / Contributor
                      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                      ________________________________
                      Where every pixel matters.
                      • 26435
                      • 1,193 Posts
                      ScottyDelicious Reply #230, 19 years ago
                      Quote from: pixelchutes at Sep 11, 2007, 11:25 PM

                      I am curious, how many "services" does WLPE offer? With the next release, can ANY service be disabled via a snippet param?
                      These are the services available for 1.3.0 and they type they are associated with.
                      TYPE simple:
                      login
                      logout
                      profile
                      saveprofilesimple
                      deleteprofilesimple
                      confirmdeleteprofilesimple
                      registernew
                      register
                      forgot
                      resetpassword
                      activate
                      activated
                      default (display login form or welcome message if user is logged in)

                      TYPE register:
                      register
                      cancel
                      login
                      logout
                      default (display registration form)

                      TYPE profile:
                      saveprofile
                      cancel
                      logout
                      deleteprofile
                      confirmdeleteprofile
                      default (display your profile for editing)

                      TYPE users:
                      viewprofile
                      messageuser
                      default (display all users)

                      TYPE manager:
                      editprofile
                      saveuserprofile
                      messageuser
                      deleteuser
                      confirmdeleteuser
                      default (display a list of all the site users)

                      TYPE taconite:
                      Pretty much the same as simple.

                      Quote from: pixelchutes at Sep 11, 2007, 11:25 PM

                      Example: Let’s say you want a locked down registration process (Added By Admins Only) AND you don’t want users to be able to see their Profiles (thinking more along the lines of a user based application opposed to a traditional user based community website...)

                      Will something like this be an option?
                      &disableServices=`register,profile`

                      ...where the above example would prevent anyone from modifying the URL as we discussed earlier in this thread?

                      In other words, have you implemented the ability to disable any service, or just registration? And, how did you accomplish this?
                      I haven’t set a parameter to disable anything except your suggestion for delete profile yet, but I like the way you propose this idea and I think I should try to figure out how to implement conditional disabling of services. it is on the todo list now!

                      -sD-
                      Dr. Scotty Delicious, Scientist DFPA.
                        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                        All of the above... in no specific order.


                        I send pointless little messages