0
Welcome Guest! Login
0 items Join Now

Change position of Error Messages in registration

  • Change position of Error Messages in registration

    Posted 15 years 3 weeks ago
    • Hi,How can I change the position of the Error Messages during the registration process (I'm using alphaRegistration) :

      http://www.directoryofkent.co.uk/register.html

      The Error Messages are displayed at the top of the page and you can't see them unless you scroll up...

      I would like them to appear at the bottom of the page or ideally in a popup...

      Any ideas?

      Thanks
  • Re: Change position of Error Messages in registration

    Posted 15 years 3 weeks ago
    • How about this solution to display the system message in modal popup?
  • Re: Change position of Error Messages in registration

    Posted 15 years 3 weeks ago
    • Hi,

      Thanks for your reply.

      Followed instructions but still the same...

      Maybe I'm doing something wrong.

      Mootools are enabled in the template so I didn't add
      <?php JHTML::_('behavior.mootools'); JHTML::_('behavior.modal'); php?>
       

      I've added just before </head> :
      <?php if ($this->getBuffer('message')) : ?>
      <script type="text/javascript">
      window.addEvent('domready', function() {
      var myel = new Element('a',{'href':'#error_info'});
      SqueezeBox.fromElement(myel,{
      handler:'adopt',
      adopt:'error_info',
      });
      });
      </script>
      <?php endif; ?>

      At the end of index.php, just before </body> I added:
      <div style="display:none;">
      <div id="error_info"><jdoc:include type="message" />
      </div>
      </div>
       

      Am I doing something wrong??

      Thanks
  • Re: Change position of Error Messages in registration

    Posted 15 years 3 weeks ago
    • Yes, mootools already loaded, but you need to load the modal. Before the </head>, you need to add:
      <?php JHTML::_('behavior.modal'); ?>
  • Re: Change position of Error Messages in registration

    Posted 15 years 3 weeks ago
    • Hi,

      Thanks again for your reply.

      Done that - still no luck...

      www.directoryofkent.co.uk/register.html

      When I put in wrong username or password the error message still display at the top... no modal... :(
  • Re: Change position of Error Messages in registration

    Posted 15 years 3 weeks ago
    • Regarding to the second step, based on the tutorial, I think you will need to change (not adding):
      <jdoc:include type="message" />
      to
      <div style="display:none;">
      <div id="error_info"><jdoc:include type="message" /></div>
      </div>
  • Re: Change position of Error Messages in registration

    Posted 15 years 3 weeks ago
    • Hi,

      Thanks for your reply.

      I did that and now I'm not getting any messages...

      Can I PM you FTP login so you can have a look please??

      Thanks
  • Re: Change position of Error Messages in registration

    Posted 15 years 3 weeks ago
    • Sure, but I am not sure if the tutorial works. I also see your site loads a lot of external javascripts that might have conflict with the mootools and modal. Have you tried to disable the scripts?
  • Re: Change position of Error Messages in registration

    Posted 13 years 2 months ago
    • Arifin FinLy wrote:
      How about this solution to display the system message in modal popup?

      That link no longer works. But I am in search of a solution to change the error message location.

      I see the error message appearing on top of the template. Which I want to put in my own desired location. i have rt_halcyon installed here : www.microtechs.me/tpx/index.php

      A quick help in this regard from any Rocketeer will be appreciated.

      Thanks

Time to create page: 0.100 seconds