Tutorials Blog
Hosting
Software
Dolphin Tips
Help Forums FREE Mods
Licensing
People
Donate
News
Search
  •  
 
 
Tutorial
11.21.2008 00:00    Categories: Dolphin     

If you are having problems or issues with the ajax pop-up login when clicking on the "Member Login" link in the top right corner of your site you can do away with the pop-up login.

Maybe you just don't like the pop-up at all.

Some security enhancement code added to .htaccess can block the ajax pop-up from happening, thereby confusing a member.

You can change this so when someone clicks on the "Member Login" link they get a page that prompts them for their login "Nickname" and "Password" like this site does.

First backup the file:
/templates/tmpl_uni/scripts/functions.php

To eliminate the ajax pop-up login open /templates/tmpl_uni/scripts/functions.php

Find:

                <div class="topMemberBlock">
                        <div class="no_hello_actions">
                                <a href="<?= $site['url'] ?>join.php"><?= _t( '_Join Now Top' ) ?></a>
                                <a href="<?= $site['url'] ?>member.php" onclick="showItemEditForm('login_div'); $( '#login_div' ).show().load( '<?= $site['url'] ?>member.php?action=show_login_form&relocate=' + encodeURIComponent( window.location )  );return false;"><?= _t( '_Member Login' ) ?></a>
                        </div>
                </div>



Change to:

                <div class="topMemberBlock">
                        <div class="no_hello_actions">
                                <a href="<?= $site['url'] ?>join.php"><?= _t( '_Join Now Top' ) ?></a>
                                <a href="<?= $site['url'] ?>member.php"><?= _t( '_Member Login' ) ?></a>
                        </div>
                </div>



Save changes to functions.php and re-upload overwriting the original.

Refresh page for changes to take effect. Click on "Member Login" and see the difference.

Restore your backup to undo the changes or reverse the order of these steps to get back to original state.

 

Note:

If you are using a custom template other than the Dolphin Default tmpl_uni just replace tmpl_uni with the name of your template folder above to find functions.php.

Good Luck!!

 

 
Share It