Statistics: Posted by beetle — October 5th, 2011, 4:00 am
Statistics: Posted by barefootango — October 5th, 2011, 3:20 am
Statistics: Posted by beetle — October 5th, 2011, 2:57 am
Statistics: Posted by beetle — October 5th, 2011, 2:55 am
Statistics: Posted by barefootango — October 5th, 2011, 2:50 am
Statistics: Posted by beetle — October 5th, 2011, 2:41 am
Statistics: Posted by beetle — October 5th, 2011, 2:38 am
Statistics: Posted by barefootango — October 5th, 2011, 2:36 am
<?php
$options = array(
"title" => "Membership Account Login",
"signup_url" => "/sign-up/",
"login_redirect" => "",
"profile_title" => "",
"display_gravatar" => "0",
"link_gravatar" => "0",
"display_name" => "1",
"logged_in_code" => "",
"logout_redirect" => "%%previous%%",
"my_account_url" => "%%automatic%%",
"my_profile_url" => "/my-membership-profile"
);
$args = array (
"before_widget" => "<div class=\"member_login_widget\">",
"after_widget" => "</div>",
"before_title" => "<h5>",
"after_title" => "</h5>"
);
echo s2member_pro_login_widget($options, $args);
?>
Statistics: Posted by beetle — October 5th, 2011, 2:30 am
barefootango wrote:
[php]
echo s2member_pro_login_widget(array("before_widget" => "echo '<table width=300><tr><td align=center'>", 'title' => 'Membership Login', 'signup_url' => 'http://xxxxxxxxxx.com/wp-login.php?action=register', "after_widget" => "echo '</tr></td></table>'"));
[/php]
The page runs without errors, but it also strangely enough IGNORES the HTML before AND after!
echo s2member_pro_login_widget(array('before_widget' => '<table width=300><tr><td align=center>', 'title' => 'Membership Login', 'signup_url' => 'http://xxxxxxxxxx.com/wp-login.php?action=register', 'after_widget' => '</tr></td></table>'));
Statistics: Posted by Cristián Lávaque — October 5th, 2011, 2:25 am
Statistics: Posted by beetle — October 5th, 2011, 1:40 am
function ls_business_login_widget() {
$options = array(
"title" => "Business Account Login", // Title when NOT logged in, or leave this blank if you'd prefer not to show a title.
"signup_url" => "/business/sign-up/", // Full Signup URL, or use %%automatic%% for the Membership Options Page. If you leave this blank, it will not be shown.
"login_redirect" => "/my-account/", // 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" => "", // Title when a User is logged in. Or you can leave this blank if you'd prefer not to show a title.
"display_gravatar" => "0", // Display Gravatar image when logged in? 1 = yes, 0 = no. Gravatars are based on email address.
"link_gravatar" => "0", // 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" => "%%previous%%", // 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" => "/my-business-profile" // Full URL of your own, or use %%automatic%% for a JavaScript popup. Leave empty to not show this at all.
);
$args = array (
"before_widget" => "<div class=\"bus_login_widget\">",
"after_widget" => "</div>",
"before_title" => "<h5>",
"after_title" => "</h5>"
);
echo s2member_pro_login_widget($options, $args);
}
Statistics: Posted by beetle — October 5th, 2011, 1:37 am
Statistics: Posted by barefootango — October 5th, 2011, 12:52 am
Statistics: Posted by barefootango — October 4th, 2011, 8:37 pm