PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
chelle wrote:It is so hard to find a wordpress theme with something as simple as a login box, so widgets are definitely helpful
I was curious if there would be a template tag you can use to insert it in the theme or style it so it would be horizontal? (such as the login form on wordpress.org). If not yet maybe would be a nice feature to include in future updates/releases?
div.ws-plugin--s2member-pro-login-widget-username {
display: inline;
margin: 0 20px 0 0;
}
div.ws-plugin--s2member-pro-login-widget-password {
display: inline;
}
alargeau wrote:Hello,
I've searched a lot on the internet and haven't found what I'm looking for. Actually, I'd like a basic login form which could be included in a page because I don't want those sidebar widgets. Do you know anything like that?
Cheers.
<?php echo s2member_pro_login_widget(); ?>
This function allows for the inclusion of the Pro Login Widget directly into a theme/plugin file.
This API function will return the HTML output from the widget function call.
Example usage: <?php echo s2member_pro_login_widget($options, $args); ?>
The $options parameter (array) is completely optional ( i.e. NOT required ).
It can be passed in as an array of options; overriding some or all of these defaults:
"title" => "Membership Login" ——— Title when NOT logged in, or leave this blank if you'd prefer not to show a title.
"signup_url" => "%%automatic%%" ——— Full Signup URL, or use %%automatic%% for the Membership Options Page. If you leave this blank, it will not be shown.
"login_redirect" => "" ——— Empty ( i.e. "" ) = Login Welcome Page, %%previous%% = Previous Page, %%home%% = Home Page, or use a full URL of your own.
"logged_out_code" => "" ——— HTML/PHP code to display when logged out. May also contain WP Shortcodes if you like.
"profile_title" => "My Profile Summary" ——— Title when a User is logged in. Or you can leave this blank if you'd prefer not to show a title.
"display_gravatar" => "1" ——— Display Gravatar image when logged in? 1 = yes, 0 = no. Gravatars are based on email address.
"link_gravatar" => "1" ——— Link Gravatar image to Gravatar.com? 1 = yes, 0 = no. Allows Users to setup a Gravatar.
"display_name" => "1" ——— Display the current User's WordPress® `Display Name` when logged in? 1 = yes, 0 = no.
"logged_in_code" => "" ——— HTML/PHP code to display when logged in. May also contain WP Shortcodes if you like.
"logout_redirect" => "%%home%%" ——— Empty ( i.e. "" ) = Login Screen, %%previous%% = Previous Page, %%home%% = Home Page, or use a full URL of your own.
"my_account_url" => "%%automatic%%" ——— Full URL of your own, or use %%automatic%% for the Login Welcome Page. Leave empty to not show this at all.
"my_profile_url" => "%%automatic%%" ——— Full URL of your own, or use %%automatic%% for a JavaScript popup. Leave empty to not show this at all.
The $args parameter (array) is also completely optional ( i.e. NOT required ).
It can be passed in as an array of options: overriding some or all of these defaults:
"before_widget" => "" ——— HTML code to display before the widget.
"before_title" => "<h3>" ——— HTML code to display before the title.
"after_title" => "</h3>" ——— HTML code to display after the title.
"after_widget" => "" ——— HTML code to display after the widget.
div.ws-plugin--s2member-pro-login-widget-username {
display: inline !important;
margin: 0 20px 0 0 !important;
}
div.ws-plugin--s2member-pro-login-widget-password {
display: inline !important;
}
Users browsing this forum: Exabot [Bot], Google [Bot] and 2 guests