We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36571
    • 145 Posts
    I am trying to change the look of the [+form.country+] placeholder, namely by inserting a line-break between "Country:" and the drop-down list.

    Also, I would like to have a different country as the default selection.

    There is probably a very simple solution to this, but I can’t seem to be able to find it.

    Any help is mightily appreciated.

      • 28033
      • 925 Posts
      The fields were either in the lang file or the class file. I know one of the two had all of the country field strings in them.

      Should just be adding a new "blank" string, IIRC. Might have to add a new value to the array in the lang if it’s also there.
        My Snippets
        -> PopUpChunk v1.0
        • 36571
        • 145 Posts
        I found the file with the fields in, and shortened a couple.

        However, the actual problem was with modifying the HTML that was being generated by default by the [+form.country+] placeholder. I have searched all the documents in the webloginpe folder, but can’t seem to find anything.

        Also, I have stumbled on another problem: how do I go about adding more than 1 photo to a profile? I have set up custom fields in the call (photo2, photo3 etc) and used the following HTML on the profile template:
                <label for="wlpeUserProfilePhoto" id="wlpeUserPhotoLabel"> Photo 1
                  <input type="hidden" id="wlpeUserHiddenPhoto" name="userphoto" value="[+user.photo+]" />
                  <input id="wlpeUserProfilePhoto" type="file" name="photo" value="" />
                  <br />
                  Photo 2 <input type="hidden" id="wlpeUserHiddenPhoto" name="userphoto" value="[+user.photo2+]" />
                  <input id="wlpeUserProfilePhoto" type="file" name="photo2" value="" />
                  <br />
                  Photo 3 <input type="hidden" id="wlpeUserHiddenPhoto" name="userphoto" value="[+user.photo3+]" />
                  <input id="wlpeUserProfilePhoto" type="file" name="photo3" value="" />
                  <br />...


        Any ideas?
          • 20206
          • 9 Posts
          Hi,
          I’m sorry for upping this old thread, but im having the same question.
          I want to add some code in form.country and form.gender (some css classes), but it seems i’m not able to find the HTML code.
          I thought i found it in the weblogin.class.php near line 1400 so i changed some things but nothing happened. Everything with this forms is spread all over the code and the files. For me it looks as if someone has something to hide grin
          Could anybody bring some light in the dark for me?

          Moosa

          btw. near line 1520 there is this comment: //$modx->setPlaceholder(’form.gender’, ’YOU FUckTard!’);
          is it a joke or something like this? smiley
            • 20206
            • 9 Posts
            Ah ok, i think i solved it by myself.
            There is the same code again near line 1820. I don’t know why the same code is included twice, but im sure there is a reason for that smiley
            Its still not easy to change as it seems as if modx is caching the class. But now it works ok for me grin