We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23491 ☆ A M B ☆
    • 1,056 Posts
    :(

    Looks like I’ve got a new task on my hands...apparently the SMF Connector (bridge) doesn’t play nice w/ WLPE. Looks like it was tied directly to the former WebLogin snippet... We have login, just no forum access (begins rollback process...)
      Mike Reid - www.pixelchutes.com
      MODx Ambassador / Contributor
      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
      ________________________________
      Where every pixel matters.
      • 23562
      • 57 Posts
      @ Uncle68

      YEAH! grin Works! That’s it!

      Looked again into docs, most at Control Parameters to be exact, and began to understand it a bit. cool
      You opened my eyes Uncle68,thanks a lot!

      Now to further customize it with CParameters laugh
        • 28033
        • 925 Posts
        I just thought of an great idea, with the advent of having "private" fields.

        Say one of your members puts something in a field that goes against your ToS. Now, if you delete it, they might be an arse and add it again. So in the Manage type view, create the Private field for that.

        Since only an admin can edit this value, that means the user can’t do anything, because they can’t edit that value.

        Cool, eh?
          My Snippets
          -> PopUpChunk v1.0
          • 26435
          • 1,193 Posts
          ScottyDelicious Reply #294, 19 years ago
          Wow!!!
          I was AFK most of the day. I come back, what do I find?
          A handful of bug reports.... Already fixed by users!
          New users getting their questions answered by other users!

          Is this turning into a REAL MODx snippet, or have I gone mad?

          @pixelchutes:
          Great work on the bug stomping for the event invoking invocation.
          I have made corrections with your suggestions on event order in the Login() method.
          I have also taken your suggestion and placed a error trap in each of the Event methods as well.
          I am going to wait a few more days for more feedback to trickle in before posting 1.3.1.

          Thank you everyone for your suggestions, feedback, bug reports, and forum support help. WebLoginPE would not have come this far without the contributions from every one of you. I salute you all.  :’(

          Keep it real... I’ll be as busy improving this as you all have.

          -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
            How odd --- my custom fields won’t populate. Here’s my text for the profile editor...

            [!WebLoginPE? &type=`profile` &profileTpl=`UserAccountPE` &customFields=`websitename,websiteurl,favtalesgame,otherfavgame,aim,icq,wlm,yim,forumgallery,oekaki,blog,fan_onceuponatime,fan_restoftheheart,shclub_norma,shclub_lloyd` &inputHandler=`<a href="http://destiny.natsukage.nu/">Once Upon a Time: ToD Fanlisting</a>:userProfileOnceuponatime:fan_onceuponatime:checkbox:()||<a href="http://rest.natsukage.nu/">Rest of the Heart: ToS OST Fanlisting</a>:userProfileRestoftheheart:fan_restoftheheart:checkbox:()||<a href="http://tales.rpgplanet.gamespy.com/forum/showthread.php?tid=317">Norma Beatty Fan Club</a>:userProfileShnorma:shclub_norma:checkbox:()||<a href="http://tales.rpgplanet.gamespy.com/forum/showthread.php?tid=350">Lloyd Irving Fan Club</a>:userProfileShlloyd:shclub_lloyd:checkbox:()||`!]


            All of the fields are in the _extended table, so I dunno why it’s not working. The customFields all match up, too.

            EDIT: Is there any way to control where the avatar gets uploaded to? It’s wanting to go to the root of my website, which isn’t allowed, which obviously gives a MODx critical error. This is the error...

            « MODx Parse Error »MODx encountered the following error while attempting to parse the requested resource:
            « PHP Parse Error »

            PHP error debug
            Error: move_uploaded_file(/hsphere/local/home/tales/tales.rpgplanet.gamespy.com/albel.png): failed to open stream: Permission denied
            Error type/ Nr.: Warning - 2
            File: /hsphere/local/home/tales/tales.rpgplanet.gamespy.com/assets/snippets/webloginpe/webloginpe.class.php
            Line: 2503
            Line 2503 source: if (!move_uploaded_file($_FILES[’photo’][’tmp_name’], $userImage))

            Parser timing
            MySQL: 0.0381 s (27 Requests)
            PHP: 1.0318 s
            Total: 1.0699 s
              My Snippets
              -> PopUpChunk v1.0
              • 26435
              • 1,193 Posts
              ScottyDelicious Reply #296, 19 years ago
              Quote from: Soshite at Sep 13, 2007, 07:05 PM

              Scotty, for custom fields, does the field need to be created before it can populate data?

              I’m trying to have custom fields done in the default extra fields table (I decided to ditch the old table) --- but the checkbox doesn’t appear at all. I’m assuming that’s because the field in the database isn’t there?
              No, WebLoginPE takes the value from the parameter &customFields and separates it at the commas putting each word that you had in the comma separated list into an array.
              Next it checks the table specified in &customTable (or {PREFIX}web_user_attributes_extended if customTable is not specified) for columns by the name of each item in the array. If it finds the name (i.e. the table column exists already) it goes to the next item in the array. If it does not find a column by that name, it creates it for you.

              When you look at your MODx database using phpMyAdmin (or whatever you prefer), do you see the extended user table and are the columns you put in &customFields in there? They should be created for you.

              The next step is getting data into that table. You need to specify &customFields everywhere you want to use those custom fields, so... registration pages, profile pages, view user pages.

              Only when a user submits data on a page with &customFields called does the data get stored in the database.

              I think you (or maybe it was someone else, sorry) asked about links to a users profile without going through the &type=`users` page. Here is how

              If the &type=`users` page has the ID 151, then you can put this anywhere in your site:
              <a href="[~151~]?service=viewprofile&username=THEUSERSUSERNAME


              If this is on the web users profile page, you can use
              <a href="[~151~]?service=viewprofile&username=[+user.username+]


              If you want to view a specific user, for instance, a user named "ScottyDelicious"
              <a href="[~151~]?service=viewprofile&username=ScottyDelicious


              I digress...
              Back to the issue regarding &customTables. Would you post the entire snippet call you are using and provide a brief summary of what you wish to accomplish?

              -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
                [+wlpe.message+]
                <form enctype="multipart/form-data" id="wlpeUserProfileForm" action="[~[*id*]~]" method="POST">

                <b class="heading">myBasicInformation</b>

                If you do not have the information to fill in a field, just leave it blank. You do not need to add N/A, etc., in those field(s).<p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileFullName"><b>Display Name</b></td>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileEmail">E-Mail Address</td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileFullName" type="text" name="fullname" value="[+user.fullname+]" /></label></td>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileEmail" type="text" name="email" value="[+user.email+]" /></label></td>
                </tr>
                </table>
                <p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfilePhone"><b>Phone #</b></td>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileMobile">Cell Phone #</td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfilePhone" type="text" name="phone" value="[+user.phone+]" /></label></td>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileMobile" type="text" name="mobilephone" value="[+user.mobilephone+]" /></label></td>
                </tr>
                </table>
                <p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileState"><b>State</b></td>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileZip">ZIP Code</td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileState" type="text" name="state" value="[+user.state+]" /></label></td>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileZip" type="text" name="zip" value="[+user.zip+]" /></label></td>
                </tr>
                </table>
                <p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="100%" class="tab2"><label for="wlpeUserProfileDob"><b>Date of Birth (DD-MM-YYYY)</b></td>
                </tr>
                <tr>
                  <td align="left" width="100%" class="tab3"><input id="wlpeUserProfileDob" type="text" name="dob" value="[+user.dob+]" /></label></td>
                </tr>
                </table>
                <p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileWebsitename"><b>Website Name</b></td>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileWebsiteurl"><b>Website URL</b></td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileWebsitename" type="text" name="websitename" value="[+user.websitename+]" /></label></td>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileWebsiteurl" type="text" name="websitename" value="[+user.websiteurl+]" /></label></td>
                </tr>
                </table>
                <p></p>

                <label for="wlpeUserProfileComment">Anything you want to tell us about yourself?

                <textarea id="wlpeUserProfileComment" name="comment">[+user.comment+]</textarea>
                </label>
                <p></p>

                <b class="heading">myPersonality</b>


                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="50%" class="tab2">Current Avatar</td>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfilePhoto" id="wlpeUserPhotoLabel">Upload an Avatar</td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab3"><img id="wlpeUserProfilePhotoImg" src="[+user.photo+]" alt="[+user.username+]" title="[+user.fullname+]" height="100" width="100" /></td>
                  <td align="left" width="50%" class="tab3"><input type="hidden" id="wlpeUserHiddenPhoto" name="userphoto" value="[+user.photo+]" /><input id="wlpeUserProfilePhoto" type="file" name="photo" value="" /></label></td>
                </tr>
                </table>
                <p></p>

                <b class="heading">myFavorites</b>
                <p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileFavtalesgame"><b>Favorite Tales Game</b></td>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileFavothergame"><b>Other Favorite Game</b></td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileFavtalesgame" type="text" name="favtalesgame" value="[+user.favtalesgame+]" /></label></td>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileFavothergame" type="text" name="otherfavgame" value="[+user.otherfavgame+]" /></label></td>
                </tr>
                </table>
                <p></p>

                <b class="heading">myIdentity</b>
                <p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileAim"><b>AOL Instant Messenger</b></td>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileIcq"><b>ICQ</b></td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileAim" type="text" name="aim" value="[+user.aim+]" /></label></td>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileIcq" type="text" name="icq" value="[+user.icq+]" /></label></td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileWlm"><b>Windows Live Messenger</b></td>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileYim"><b>Yahoo Instant Messenger</b></td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileWlm" type="text" name="wlm" value="[+user.wlm+]" /></label></td>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileYim" type="text" name="yim" value="[+user.yim+]" /></label></td>
                </tr>
                </table>
                <p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileForumgallery"><b>Forum / Gallery</b></td>
                  <td align="left" width="50%" class="tab2"><label for="wlpeUserProfileOekaki"><b>Oekaki</b></td>
                </tr>
                <tr>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileForumgallery" type="text" name="forumgallery" value="[+user.forumgallery+]" /></label></td>
                  <td align="left" width="50%" class="tab3"><input id="wlpeUserProfileOekaki" type="text" name="oekaki" value="[+user.oekaki+]" /></label></td>
                </tr>
                <tr>
                  <td align="left" colspan="2" class="tab2"><label for="wlpeUserProfileBlog"><b>Blog</b></td>
                </tr>
                <tr>
                  <td align="left" colspan="2" class="tab3"><input id="wlpeUserProfileBlog" type="text" name="blog" value="[+user.blog+]" /></label></td>
                </tr>
                </table>
                <p></p>

                <b class="heading">Fanlistings - World Wide Web</b>
                <p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="32%" class="tab3">[+form.fan_onceuponatime+]</td>
                  <td align="left" width="32%" class="tab3">[+form.fan_restoftheheart+]</td>
                </table>
                <p></p>

                <b class="heading">Clubs - Symphonic Heaven</b>
                <p></p>

                <table width="99%" cellspacing="3" cellpadding="3" class="tab1">
                <tr>
                  <td align="left" width="32%" class="tab3">[+form.shclub_norma+]</td>
                  <td align="left" width="32%" class="tab3">[+form.shclub_lloyd+]</td>
                </table>
                <p></p>

                [+form.country+]
                <p></p>
                [+form.gender+]
                <p></p>

                <fieldset id="wlpeNewPasswordArea">
                <legend id="wlpeNewPasswordAreaLegend">Change your password</legend>
                <p id="wlpeNewPasswordInfo">Change your password
                <span class="info">(leave blank if you do not want a new password).</span></p>

                <label for="wlpeUserProfilePassword">New Password
                <input id="wlpeUserProfilePassword" type="password" name="password" value="" />
                </label>

                <label for="wlpeUserProfilePasswordConfirm">New Password (confirm)
                <input id="wlpeUserProfilePasswordConfirm" type="password" name="password.confirm" value="" />
                </label>
                </fieldset>

                </fieldset>
                <fieldset id="wlpeUserProfileButtons">
                <button type="submit" id="wlpeSaveProfileButton" name="service" value="saveprofile">Save</button>
                <button type="submit" id="wlpeProfileDoneButton" name="service" value="cancel">Done</button>
                <button type="submit" id="wlpeProfileLogoutButton" name="service" value="logout">Logout</button>
                <button type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteprofile">Delete My Profile</button>
                </fieldset>

                </form>

                I’ve entered into &customFields all of the custom fields, obviously, since the database recognized it and created them. I also made the &inputHandlers for the checkboxes.

                I just noticed that I had an extra || at the end of the inputHandlers. But that still didn’t get rid of the issue of not seeing the checkboxes. I’m not even seeing them at all. I dunno why, since the form nae in the chunk and the custom field and the inputHandler are done like it should. The normal text fields are saving right, so if we can figure out how to get the checkboxes to appear, it should work okay.

                And that avatar issue is still appearing, since it’s trying to save to the root of the site.
                  My Snippets
                  -> PopUpChunk v1.0
                  • 26435
                  • 1,193 Posts
                  ScottyDelicious Reply #298, 19 years ago
                  Soshite, could you please post the WebLoginPE call you are using on the page? at least the &inputHandler part?

                  -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
                    • 26435
                    • 1,193 Posts
                    ScottyDelicious Reply #299, 19 years ago
                    Also, am I correct in assuming that the [+form.whatever+] placeholder inputs are NOT showing up on the page? Is there a blank area where you are expecting to see the form elements for that placeholder?

                    -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 13, 2007, 07:56 PM

                      Also, am I correct in assuming that the [+form.whatever+] placeholder inputs are NOT showing up on the page? Is there a blank area where you are expecting to see the form elements for that placeholder?

                      -sD-
                      Dr. Scotty Delicious, Scientist DFPA.

                      Yep. I have them inside of a <td> tag, so the table’s basically collasped, because there’s nothing inside of it. And the call and the avatar upload MODx error is on this post...

                      http://modxcms.com/forums/index.php/topic,17359.msg114000.html#msg114000

                      Sorry that the call is all on one line. SMF does that for some reason. >.>
                        My Snippets
                        -> PopUpChunk v1.0