Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Aiheen aloitti: splinter - lokakuu 05, 2005, 02:56:41 IP

Otsikko: Bridge login module.. can i get rid of login drop down box for session length?!
Kirjoitti: splinter - lokakuu 05, 2005, 02:56:41 IP
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  :)
Otsikko: Re: Bridge login module.. can i get rid of login drop down box for session length?!
Kirjoitti: Ronny - lokakuu 05, 2005, 03:05:47 IP
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  ;)
Otsikko: Re: Bridge login module.. can i get rid of login drop down box for session lengt
Kirjoitti: splinter - lokakuu 05, 2005, 03:32:19 IP
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?
Otsikko: Re: Bridge login module.. can i get rid of login drop down box for session length?!
Kirjoitti: Mike_B - kesäkuu 14, 2006, 09:47:52 AP
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
Otsikko: Re: Bridge login module.. can i get rid of login drop down box for session length?!
Kirjoitti: Kindred - kesäkuu 14, 2006, 10:00:48 AP
Mike, this area is specifically for support of the SMF forums bridged to Mambo (or Joomla) CMS...
Otsikko: Re: Bridge login module.. can i get rid of login drop down box for session length?!
Kirjoitti: Mike_B - kesäkuu 14, 2006, 10:04:35 AP
LOL

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

Mike