Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 3 replies, 2 voices, and was last updated 8 years, 6 months ago by
Steven Zahm.
-
AuthorPosts
-
07/31/2014 at 2:09 pm #299200
David Rogers
ParticipantHow can I add a login form to a template’s individual listing so that users can login to edit their listing? I’m using Tile-Plus for the directory listing and cMap for the individual listings. Thanks!
07/31/2014 at 6:18 pm #299284Steven Zahm
Keymaster@ David
Connections does not have a login feature as of yet. Not sure I’ll be adding one yet because there are some many freely available feature rich plugins that can handle this already. I would suggest finding one that has a configurable frontend login widget.
If you install the Code Snippets plugin, you can add the following code as a new snippet. Once saved and activated, you can use the
[connections_login_form]
shortcode on a page or in a Text widget to add a login form to widget that can placed in the theme’s sidebar.function cn_login_form_shortcode( $atts ) { if ( is_user_logged_in() ) return; $atts = shortcode_atts( array( 'echo' => FALSE, 'redirect' => get_permalink(), 'form_id' => 'loginform', 'label_username' => __( 'Username', 'connections' ), 'label_password' => __( 'Password', 'connections' ), 'label_remember' => __( 'Remember Me', 'connections' ), 'label_log_in' => __( 'Login', 'connections' ), 'id_username' => 'user_login', 'id_password' => 'user_pass', 'id_remember' => 'rememberme', 'id_submit' => 'wp-submit', 'remember' => TRUE, 'value_username' => NULL, 'value_remember' => FALSE ), $atts, 'connections_login_form' ); return wp_login_form( $atts ); } add_shortcode( 'connections_login_form', 'cn_login_form_shortcode' ); add_filter( 'widget_text', 'do_shortcode' );
I hope that helps!
07/31/2014 at 8:00 pm #299288David Rogers
ParticipantThat worked perfectly, thank you!
Curious, is it possible to only have the snippet work on an individual page, and not the full directory page?
-
This reply was modified 8 years, 6 months ago by
David Rogers.
08/02/2014 at 1:02 pm #299418Steven Zahm
Keymaster@ David
This inspired me to toss together a free extension for Connections named, very creatively, Login. I’ll post it to the .org plugin repository as soon as I can, but if you are familiar with Github, you can download it now from here:
https://github.com/Connections-Business-Directory/Login
If you do, to configure it you have two options.One, on the Connections : Settings admin page under the Display tab, you can enable it as a single entry contact block.
Two, this extension adds a new widget which can be placed in the theme’s sidebar. It will only display on the single entry page if the user is not logged in.
If I have not asked and if you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections -
This reply was modified 8 years, 6 months ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.