Hi
I think the best menu type would be "separator", so it will not redirect after clicking. Than the important part is to have login popup box prepared in default.php.
This post old and since I've answered here the last time I've learned a new method. Much simplier I believe. Steps are still the same:
1. Adding a module class suffix to menu item which will trigger the popup. For example " login_popup"
2. Adding a popup box to default.php file, You can place there a module position.
- Code: Select all
<div id="login_popup">
<jdoc:include type="modules" name="login-popup" />
</div>
3. Adding a jQuery code which will open popup on click:
- Code: Select all
<script type="text/javascript">
(function($) {
$(document).ready(function() {
$('#login_popup').hide();
$('.login_popup').click(function() {
$('#login_popup').toggle('slow', function() { });
});
});
})(jQuery)
</script>
4. With this method some styling to new box will be required, but this is up to You.