Problems displaying error messages in registration, login

GK User
Sun Dec 12, 2010 5:44 pm
supposely.jpg


supposely2.jpg


I've just realised that if i want to register and there is a validation error, no error messages will be displayed like other templates, for example " the email address is already registered" or if the wrong username/password input, no error messages. Help please. This is really important.:(

The page simply just has no error messages display.

Error messages from other tempates examples are attached.
User avatar
Fresh Boarder

GK User
Sun Dec 12, 2010 10:24 pm
Hi

Black and White template have system message set on popup div, where login and GK register modules are published on our demo template. So, if you want to use like our demo, you need to publish login module on "login" module position and GK Register module on "register" module position.

In other hand, if you don't want this position and need to (i.e.) enable login module on other position, you need to make this following changes:

Open ../gk_blackandwhite/layouts/blocks/popup.php and find this fragment:

Code: Select all
<div id="gk-popup">   
   <div class="main gk-popup-wrap">
        <jdoc:include type="message" />
      <!-- FORMS -->
        <?php $this->loadBlock('usertools/login'); ?>
      <?php $this->loadBlock('usertools/register'); ?>
   </div>
</div>
<?php endif; ?>


replace with

Code: Select all
<div id="gk-popup">   
   <div class="main gk-popup-wrap">
        <jdoc:include type="message" />
      <!-- FORMS -->
        <?php $this->loadBlock('usertools/login'); ?>
      <?php $this->loadBlock('usertools/register'); ?>
   </div>
</div>
<?php else: ?>
<div id="alt-message">
<jdoc:include type="message" />
</div>
<?php endif; ?>



Next step is to add this css class on template.css file:

Code: Select all
#alt-message #system-message {background: #CF3333;}


This should solve the issue.
I will recommend this feature on next update.

Cheers ;)
User avatar
Platinum Boarder


cron