Kreatore.it

Sviluppo applicativi Lamp

mck_login: old version

Scritto da: | Categorie: ,

mck_login

Il vecchio plugin Mck_Login attualmente sostituito dalla versione 2.0 completamente riscritta da Jukka Svahn su l’idea del presente plugin.
La vecchia versione risultava valida ma con diversi bug, la nuova al contrario è completamente sicura e molto più completa.

This plugin allow user to login into Public Side and self register. Thanks to Jeremy Amos and his plugin ing_password_protect that inspired me.

Usage

After installing and activating the plugin you can insert function into page or form
This plugin use txp_user_public cookie, create also on Admin login.

Function and Attributes

<txp:mck_show_login />

This function show login form and logout link

class: login form class ()==> mck_login_form
remember: remember me with cookie (1/0) > 1+ *logout:* show logout? +(1/0)> 1
logout_user: show logout user as > name
wraplogout: logout wrap link ()=> p
classlogout: logout wrap class link ()=> mck_logout
reglink: link where show registration form
regtext: show text invite for register ()=> ‘No account? Register NOW
regclass: register link class ()=> ‘’
msgclass: error msg class ()=> ‘’

<txp:mck_if_logged_in />

Check if user is logged in

<txp:mck_user_public />

Output name or RealName of user logged in.

type: Value to output. > RealName
<txp:mck_register_form />

Output a simple register form

class: register form class ()=> mck_reg_form
msg: Show message before input field ()=> Compila i campi per registrarti
msgclass: Message class ()=> ‘’
confirm: ragistration confirm message ()=> Utente registrato. Abbiamo inviato al password alla tua mail
confirmclass: class for confirm messagedi conferma ()=> ‘’

Textpack

This plugin from 1.6 release use Textpack for traslation.Now there are 3 language:
it, fr, en
This is the en-gb version, if anyone wants to help me thank him

#@language en-gb
mck_login_name  => User Name
mck_name_surname  => Real Name
mck_user_already_exist  => User alredy exist
mck_register_now  => No account? Register now!
mck_site_registration_successfully => Registration made with in the website
mck_can_login_at  => You can login at
mck_your_login_name  => Your login name is: 
mck_your_password  => Your password is: 
mck_register  => Register
mck_user_password_send => Registered user. We have sent the password to your email.
mck_user_unknown => User unknow
mck_data_error => Error, check your data

Thanks

I have to thank Gocom for his help to fix some issue on sql injection and server-side code security and Textpattern comunity for textpack help

Articoli Simili

Cerca per tag

admin, ajax, android, apache, app, audio, backup, beta, blog, bordi, browser, caffè, calcolo, calibre, categorie, cd, chrome, clienti, cloud, cms, condivisione, css3, csv, database, debian, desktop, download, drive, driver, dump, e-reader, evolution, file, firefox, flash, font, foto, freelance, ftp, funzioni, gd, gedit, gimp, htc, html5, iexplorer, immagini, indirizzo, inkscape, internet, ip, iphone, java, javascript, jquery, kivy, kv, less, lettura, link, linux, live, mac, macchina, mail, menu, mobile, mod, mp3, mysql, nautilus, network, newsletter, ombra, open office, opera, os, paypal, pdf, picasa, plugin, python, safari, skype, smartphone, smf, ssh, stampante, tabs, tag, tastiera, terminale, test, testo, textile, textpattern, theme, ubuntu, upload, usb, video, web editor, website, windows, wysiwyg, xfce4, youtube

Cerca per categoria

© 2011 Kreatore.it :: Sito web realizzato da Marco Casalegno

TXP | Admin | Home | Back to Top

Tutte le informazioni e le immagini sono rilasciate sotto licenza secondo la Creative Commons License 2.0.