We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16028
    • 15 Posts
    Upon further reflection and testing, I’m now not so sure that it is the "hidden" aspect of the field that is causing my trouble. still playing around with it. any further advice or opinions would be appreciated.
      • 12983
      • 108 Posts
      I use webloginpe in a site. I have a little div that I want to hide only when a user enters in the registration form.
      Pretty easy with the following code:

      if(isset($_POST['service']) && $_POST['service'] == 'registernew'){
      	$html = ' style="display:none;"';
      	$modx->setPlaceholder('hide_this', $html);
      }
      


      So all I have to do in the html is:

      <div[+hide_this+]>
      some stuff
      </div>
      


      It works ok in IE7 and Opera... but not in Firefox! If I look at the html, I can see that in IE and Opera I have the "display:none" into the div, while in Firefox I unexpectedly see:

      <div>
      some stuff
      </div>
      


      How this can happen??
        • 31471
        • 206 Posts
        Look at the WLPE snippet, how the $service var gets its value:
        	$service = $_REQUEST['service'];
        	if (empty($service) || $service == '')
        	{
        		$service = $_REQUEST['serviceButtonValue'];
        	}

        The ieButtonFix.js is called unconditionally from the snippet not depending on the browser type. It renames all buttons to ’serviceButtonValue’ and converts the pressed button’s value to a hidden post value. And it does not only in IE which really needs it.
          • 12379
          • 460 Posts
          I’m trying to tweak the html that [+form.country+] drops in. Obviously tucked away somewhere in the background. I’ve searched without luck in all the WLPE files for:

          <label for="wlpeUserProfileCountry" id="wlpeUserProfileCountryLabel">Country
          <select id="wlpeUserProfileCountry" name="country">
            Mostly harmless.
            • 12983
            • 108 Posts
            It seems to be:

            Default Forms/countryCodes.php
              • 12379
              • 460 Posts
              found it - webloginpe.class.php on lines 1922, 1982,2014 the </label> after </select> needs to be commented out a few lines down after each of these.
                Mostly harmless.
                • 12983
                • 108 Posts
                In a page I call WebloginPE with parameter type = "manager".
                This shows a list of registered web users, each one with two buttons, for profile edit or deletion.

                When I click one of those buttons, I go to the profile editing form, or to the profile deletion form, in Firefox 2 and Opera 9.

                But, in IE7 when I click them nothing happens. I can just click them, but no action is taken by the browser. And there are no javascript errors.
                How can I make those button work in IE7?
                  • 15729
                  • 4 Posts
                  Hello all!

                  I have a website, use modx CMS. I used WebloginPE to make register form and store user infor to database. I want to user can login directly after register (Don’t show login form). How to I can do that?

                  Kevin.
                    • 30552
                    • 75 Posts
                    Regarding WebLoginPE 1.3.1, I must be missing a step or a parameter, because placeholders are not available on my log-in page. Everywhere a placeholder should appear is blank when the page is loaded. Anyone have any ideas?

                    My snippet call is like so:
                    [!WebLoginPE? &type=`simple` &loHomeId=`25` &liHomeId=`26`!]


                    I would really like to have a custom landing page for each person, with a the page’s title including that person’s user name. If I copy the original log-in template section to the landing page (ID 26), the placeholders are blank. However, if I copy the original log-in template to a chunk called loginSuccess, and include &successTpl=`loginSuccess` instead of &liHomeId=`26` everything works just fine, except I don’t have a separate page for someone logging in - it simply keeps them on the log-in page. I just need some guidance about what I might be doing wrong.

                    ::: UPDATE :::
                    Figured out my issue - refer to here: http://modxcms.com/forums/index.php/topic,32315.0.html
                      • 27617
                      • 11 Posts
                      The demo website appears to be down. Is this a broken link or are you modifying the site? I really need to see an example of the proper way of checking if someone is logged in or not.