-
Hi guys! Thanks for an awesome plugin! I would be really if you could point in the direction of how to make a login form – outside of the login.php template. In concrete I would like do login in a modal.. hope you can help!
Thanks!
A login in modal is so simple. It’s already built in UserPro! 🙂
You need a link that does it like this :
<a href="#" class="popup-login">Login</a>
That’s it, you now have a login via modal.
And if you want to use your own modal system, include the shortcode in it via php:
<?php echo do_shortcode('[userpro template=login]'); ?>
one more question :-). Hope you can help.
Can you help me were the login form is generated – can’t figure out from the login.php in templates folder. I’m trying to figure out how to assign new/other classes to some of the elements (I’m using bootstrap..)
//Jens
In your theme folder, create folder userpro
inside it copy/paste your login.php template and customize it anyway you want 🙂login.php is inside /userpro/templates/login.php
Thanks for your answer! It got me a little further 🙂
But can you tell me where actual form is created – say I want to put facebook login at the bottom. At this point I presume the form is generated here – in templates/login.php:
PHP123456789101112<?php foreach( userpro_fields_group_by_template( $template, $args["{$template}_group"] ) as $key => $array ) { ?><?php if ($array) echo userpro_edit_field( $key, $array, $i, $args ) ?><?php } ?><?php // Hook into fields $args, $user_idif (!isset($user_id)) $user_id = 0;$hook_args = array_merge($args, array('user_id' => $user_id));do_action('userpro_after_fields', $hook_args);?>but can you help figuring out how access each element?
yes got it solved – replaced the image for Facebook login button. But I never actual found out how to access the element – I would have preferred a HTML button instead of a img.. but it works fine noe 🙂
Thanks for checking up!
The topic ‘[Resolved] Custom login form’ is closed to new replies.