Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-12-16 19:52:38

pierlu
Member
Registered: 2014-08-12
Posts: 153

mck_login

I wanted to know if he could mck_login a good plugin to do the login form

Offline

#2 2014-12-17 17:10:22

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: mck_login

All txp plugins are good.
Some are simply awesome, some just do the job.
Personally I give them a try and then I decide according to my needs. Just try.

BTW: mck is an Italian developer and I guess this may help you.
I ask him for some help in the past and he is very helpful. Take a look on his site and you’ll find other useful plugins.

Last edited by candyman (2014-12-17 17:17:21)

Offline

#3 2014-12-18 08:41:06

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: mck_login

I’ve been checking out mck_login, cbe_frontauth and ign_protect.

My key requirements have been:

  • ease of styling the output with CSS,
  • ability for users to change their own passwords, and
  • password reset options.

For now, I’ve opted for mck_login but found that I have had to modify the code in a few places to firstly improve the ability to style the output and also fix some key issues. Which means my final requirement is ability to understand the code!

Offline

#4 2014-12-26 09:51:33

pierlu
Member
Registered: 2014-08-12
Posts: 153

Re: mck_login

I created the following form:

<div class="login">      
<form name="login" action="a href="<txp:section name="il-materiale" />"
<table border="0" cellspacing="5" cellpadding="5">
<tr>
<div class="utente"><td>Utente:</td><td><input type="text" name="nome" size="25" maxlength="25" value="pierlu" required></td>
</tr><tr></div>
<div class="password"><td>Password:</td><td><input type="password" size="25" value="pierlu" ></td>
</tr><tr></div>
<tr><td></td><td><input type=submit value="Invia i Dati" onClick="utente(this.form)"><input type=reset value="Annulla"></td></tr>
</table>
</form> </div>

I wish when I click on the button “invia i dati” go to “Restricted Area”
How can I do?
Thank You

Offline

#5 2014-12-26 18:51:01

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: mck_login

You need to make sure that your ‘restricted’ content is enclosed as follows:

<txp:mck_login_if>
 ...conditional statement...
</txp:mck_login_if>

In other words, the restricted content isn’t a separate area or page. It’s the same as all of your other content but the <txp:mck_login_if> tags means that this content will only show to logged in users.

Offline

#6 2015-01-01 14:04:55

pierlu
Member
Registered: 2014-08-12
Posts: 153

Re: mck_login

They nearly succeeded finally using the plugin ign_show_login, I created the following form:

<div class="login"> 
<txp:ign_show_login>
<form name="login" action="a href="<txp:section name="il-materiale" />"
<table border="0" cellspacing="5" cellpadding="5">
<tr>
<div class="utente"><td>Utente:</td><td><input type="text" name="nome" size="25" maxlength="25" value="pierlu" required></td>
</tr><tr></div>
<div class="password"><td>Password:</td><td><input type="password" size="25" value="pierlu" ></td>
</tr><tr></div>
<tr><td></td><td><input type=submit value="Invia i Dati" onClick="utente(this.form)"><input type=reset value="Annulla"></td></tr>
</table>
</form>
</txp:ign_show_login>
 </div>

But I entered username and password redirects the home and not to the section indicated in the code why?

{Edited to add Textile’s bc. for better readability. – Uli}

Last edited by uli (2015-01-01 16:09:37)

Offline

#7 2015-01-01 16:20:33

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: mck_login

pierlu, this is the wrong topic and sub-forum for ign_password_protect questions, you’ll most likely get an answer in the plugin’s own topic.

Please learn how to post code with Textile, it’s important for anybody here who likes to help you to be sure you’ve used straight quotes (" vs ) in your code. And only if you post code with the correct Textile your apostrophes are displayed exactly as you’ve typed them. I appreciate your acknowledging.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB