blackguerilla / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Login in widegt - html snippet #311

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi There

Is it possible to have a html snippet that shows a login box?

Arjun

Original issue reported on code.google.com by arjunn...@crosfields.com on 30 May 2013 at 7:50

GoogleCodeExporter commented 9 years ago
This should be easy to do (only a couple of html lines to make the form), but 
it's not available right now. Would you use it as a WordPress widget?

Original comment by i...@subwaydesign.com.ar on 2 Jun 2013 at 11:19

GoogleCodeExporter commented 9 years ago
Hi There

Thanks, but not as a wordpress widget but as HTML.

Original comment by arjunn...@crosfields.com on 3 Jun 2013 at 12:54

GoogleCodeExporter commented 9 years ago
To do something really fast, you could do this: (haven't tested it but it 
should work).
Remember to edit /projectsend/index.php with the path to your own index.php file

<!-- begin PS login -->
<form action="/projectsend/index.php" method="post" name="login_admin">
    <input type="hidden" name="sent_admin" id="sent_admin">
    <p>
        <input type="text" name="login_form_user" id="login_form_user" value="" class="field" placeholder="Username" />
    </p>
    <p>
        <input type="password" name="login_form_pass" id="login_form_pass" class="field" />
    </p>
    <p>
        <label for="login_form_remember"><input type="checkbox" name="login_form_remember" id="login_form_remember" value="on" /> Remember me</label>
    </p>
    <p>
        <button type="submit" name="Submit" id="button_login">Log in</button>
    </p>
</form>
<!-- end PS login -->

Of course you could add jQuery validations and so on, but as a base this should 
be ok :)

Original comment by i...@subwaydesign.com.ar on 3 Jun 2013 at 2:40