joomla

Can we run two LOGIN MODULES?


My website is having 2 Login Clubs, viz., Userclub and Guestclub. I have activated the login module and in mod_userlogin/tmpl.php, I have edited the code such that login goes to userclub.but how can I create another module for the guest login?

My code:

    function val()
{
if(document.userLogin.LoginName.value=='')
{
document.userLogin.LoginName.focus();
alert('Please enter username');
return false;
}
if(document.userLogin.Password.value=='')
{
document.userLogin.Password.focus();
alert('Please enter password');
return false;
}
}

<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<div id="outerdiv">
<div id="innerdiv">
<form name="userLogin" method="post" action="http://******/UserClub/jsp/checkprevilege.jsp" onSubmit="return val()">

Its not the full code, but vital part is pasted here, I am thinking to put another login via Components!


Solution

  • Try two modules with one redirecting to your Guest page, and one redirecting to your Userclub. Control the access levels of the users granting access / denying access?