Advertisement:

Bridge login module.. can i get rid of login drop down box for session length?!

Aloittaja splinter, lokakuu 05, 2005, 02:56:41 IP

« edellinen - seuraava »

splinter

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  :)

Ronny

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" />&nbsp;
'.$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  ;)

splinter

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?

Mike_B

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

Kindred

Mike, this area is specifically for support of the SMF forums bridged to Mambo (or Joomla) CMS...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Mike_B

LOL

Tx buddy - I came in the wrong door - will post in a plainer section :-)

Mike

Advertisement: