Hi!!
i would like to remove the users ability to choose session length and have them always logging in 'forever'...
could someone please tell me how i can remove this from the login module.. but ensure the parameter 'forever' is always passed when they log in?! would be eternally grateful!
thanks :)
Splinter replace <form> with this:
<form action="', $scripturl, 'action=mambo_login" method="post" style="margin: 3px 1ex 1px 0; text-align:'.$smf_align.';">
'.$txt[35].':<input class="inputbox" type="text" name="user" size="10" />
'.$txt[36].':<input class="inputbox" type="password" name="passwrd" size="10" />
<input type="hidden" name="cookielength" value="-1">
<input type="hidden" name="op2" value="login" />
<input type="submit" class="button" value="', $txt[34], '" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="returnurl" value="', $params->get('login'),'" />
<input type="hidden" name="lang" value="',$mosConfig_lang,'" />
<input type="hidden" name="return" value="',$mosConfig_live_site,'/',basename($_SERVER['PHP_SELF']),'?',$_SERVER['QUERY_STRING'],'" />
<input type="hidden" name="message" value="',$message_login,'" />
</form>
Ronny ;)
nice one mate thanks!!!
one more question tho ...
iv changed both the smf module login options to re-direct to the SAME page you logged in or out of ... it works for logout ... but when i log in from the forums its taking me back to the homepage? when i log into the main page it works fine i go back to the main page.. but when i log into the forums its taking me back to the homepage?!? very frustrating! ay ideas guys?
Hi - I have the same problem but didnt understand the solution...
Which php module and which form split??
Also do I have to have something called mambo for this?
Sorry about dumb questions - am just an admin guy lol
Mike
Mike, this area is specifically for support of the SMF forums bridged to Mambo (or Joomla) CMS...
LOL
Tx buddy - I came in the wrong door - will post in a plainer section :-)
Mike