KK wrote: @kimheggen,
Please see 'extended-users'
http://www.couchcms.com/docs/extended-entities/post.htm).
You can use only the 'login' part of it (by setting only the
$t['login_tpl'] in its config) to use your custom template to show the login box.
In that custom template, you can set the <cms:process_login /> tag's 'redirect' parameter to '0' as discussed in the thread below to put in whatever redirect logic you wish -
viewtopic.php?p=20750#p20750The code @Bartonsweb suggested should work there.
Hope it helps.
In my config i have the login_tpl = member/login.php
so then i find this in login.php
<cms:form method="post" anchor='0'>
<cms:if k_success >
<!--
The 'member_process_login_form' tag below expects fields named
'member_name', 'member_password' and (optionally) 'member_remember'
-->
<cms:member_process_login_form />
</cms:if>
<cms:if k_error >
<h3><font color='red'><cms:show k_error /></font></h3>
</cms:if>
Username (your email): <br/>
<cms:input type='text' name='member_name' /> <br/>
Password: <br />
<cms:input type='password' name='member_password' /> <br/>
<!-- if 'remember me' function is not required, the following checkbox can be omitted -->
<cms:input type='checkbox' name="member_remember" opt_values='Remember me=1' /> <br/>
<input type="submit" value="Login" name="submit"/>
</cms:form>
And then i dont figuer out how to use code.