
Extension for the Connections Business Directory that adds a shortcode and widget to display a login form.
This is an extension plugin for the Connections Business Directory Plugin please be sure to install and active it before adding this plugin.
What does this plugin do?
It adds an entry content block, a shortcode and a highly configurable widget which displays a login form when a user is not logged into your site.
Version 3.1 introduced a [user_] shortcode that allows you to display the currently logged-in user or specified user profile information, including user meta and the user avatar.
Version 3.2 introduced a [link_] shortcode that allows you to output a login, logout, edit profile, registration, forgot password, or a dynamic login/logout link on a page.
Ok, great, but how does this benefit me?
Well, if you have the directory setup to require login, you can add the [connections_login] shortcode to the login required message setting (or any page you want, the shortcode is not limited to this setting). When it is added and the user is not logged in and visit your directory, they’ll be shown your message plus the login form.
The content block login form and the login widget are best used with Link installed and activated. You can set up the login form content block to be shown on a single entry, that way when a user visits the page, and they are not logged in, they’ll be shown a login form right on their page. Alternatively, you could use the widget which will only be displayed on the single entry page when a user is not logged in. It’s your choice, you could use either one or both.
Here are some great free extensions (with more on the way) that enhance your experience with Connections Business Directory:
Utility
Custom Fields
Misc
Add New sub-page under the Plugins admin page.connections business directory login.Install Now link.Activate Plugin link to activate the plugin.Add New sub-page under the Plugins admin page.Upload link.Install Now button.Activate Plugin link to activate the plugin.connections-business-directory-login directory in the ../wp-content/plugins/ directory.
The login form rendered by the shortcode.
![The <code>[user_]</code> shortcode for the current logged-in in the Block Editor.](https://ps.w.org/connections-business-directory-login/assets/screenshot-2.png?rev=2988557)
The [user_] shortcode for the current logged-in in the Block Editor.
![The <code>[user_]</code> shortcode for a specific user in the Block Editor.](https://ps.w.org/connections-business-directory-login/assets/screenshot-3.png?rev=2988557)
The [user_] shortcode for a specific user in the Block Editor.
![The <code>[user_]</code> shortcode for the current logged-in in the Classic Editor.](https://ps.w.org/connections-business-directory-login/assets/screenshot-4.png?rev=2988557)
The [user_] shortcode for the current logged-in in the Classic Editor.
![The <code>[user_]</code> shortcode for a specific user in the Classic Editor.](https://ps.w.org/connections-business-directory-login/assets/screenshot-5.png?rev=2988557)
The [user_] shortcode for a specific user in the Classic Editor.
![The <code>[user_]</code> shortcode for the current logged-in rendered on a page.](https://ps.w.org/connections-business-directory-login/assets/screenshot-6.png?rev=2988557)
The [user_] shortcode for the current logged-in rendered on a page.
![The <code>[user_]</code> shortcode for a specific user rendered on a page.](https://ps.w.org/connections-business-directory-login/assets/screenshot-7.png?rev=2988557)
The [user_] shortcode for a specific user rendered on a page.
None yet…
.gitignore and .gitattributes for Composer.in_array(); supply true for $strict argument.[user_] shortcode.id attribute should check for a positive integer in case a user ID was specified in the [user_] shortcode.[link_] shortcode.[user_] shortcode.user_ shortcode.Connections_Directory/Loaded action hook.WPINC constant.Connections_Login class final.Connections_Login class properties.cnText_Domain class.getLoginFormDefaults() to use Request\Redirect to set the default redirect value.loginForm() to utilize Form\User_Login instead of wp_login_form().create_function().http to https.get_permalink() returns an empty URL, then default to get_home_url() for the login redirect parameter.http to https.cn_login_widget_link_anchor filter.cn_login_supported_tokens filter.cn_login_avatar_size filter.cn_login_logout_url filter.cn_login_login_url filter.cn_login_replace_tokens filter.cn_login_image_types filter.cn_login_widget_update_settings filter.cn_login_before_widget_common_settings action.cn_login_after_widget_common_settings action.cn_login_before_widget_logged_out_settings action.cn_login_after_widget_logged_out_settings action.cn_login_after_widget_logged_in_settings action.cn_login_widget_before action.cn_login_widget_logged_in_before action.cn_login_widget_logged_in_after action.cn_login_widget_logged_out_before action.cn_login_widget_logged_out_after action.cn_login_widget_after action.cn_login_display_image_{$type} action.cn_login_widget_lost_password_url filter.cn_login_widget_register_url filter.cn_login_widget_register_url action.cn_login_widget_{$context}_links filter.cn_login_widget_before_{$context}_links action.cn_login_widget_after_{$context}_links action.