Community Support Forums — WordPress® ( Users Helping Users ) — 2010-09-14T09:40:48-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=730 2010-09-14T09:40:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3242#p3242 <![CDATA[Re: Integration with specific theme]]> Statistics: Posted by bluecafe — September 14th, 2010, 9:40 am


]]>
2010-09-14T05:23:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3235#p3235 <![CDATA[Re: Integration with specific theme]]>

Statistics: Posted by allwinners — September 14th, 2010, 5:23 am


]]>
2010-09-14T05:11:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3233#p3233 <![CDATA[Re: Integration with specific theme]]> wp-signup.php and not wp-login.php as I am offering blogs to clients. So your code would be....

<li><a href="http://www.aceslegacy.com/wp-signup.php?action=register">Register</a></li>

So this leads to another customization question you may be able to assist with....

With the theme I am using it has 3D shadows on the three sections of the page, which can be turned on or off. I have them on, but when the page wp-signup.php is called up, the data entry fields push the "Next" button so that it is sitting underneath the shadow and can't be seen.

Do you have any recommendations about how I would change this so that the "next" bar sits above the 3D shadow? I really don't want to switch the shadow effect off if at all possible. However when I do switch it off, the form fills the page as it should.

Thanks for all your help thus far, I really appreciate it :)

Statistics: Posted by allwinners — September 14th, 2010, 5:11 am


]]>
2010-09-14T04:38:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3232#p3232 <![CDATA[Re: Integration with specific theme]]>
the words "registration is not possible at this time" or something to that effect.

I will try it again now, and see what happens. I am actually using a different login form plugin now, so the code will be different, but I wanted to see if the problem may have been with the original login form plugin. This one is doing the same thing (not showing the "register" link) and this plugin specifically asks if I want to show a register link, which of course I have activated.

Statistics: Posted by allwinners — September 14th, 2010, 4:38 am


]]>
2010-09-14T04:34:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3231#p3231 <![CDATA[Re: Integration with specific theme]]> Did you replace the 'normal' register link (including the if-condition)

<?php if ( get_option('users_can_register') ) : ?>
<li><a href="<?php bloginfo('url') ?>/wp-register.php"><?php echo __('Register'); ?></a></li>
<?php endif; ?>

with:

<li><a href="http://www.aceslegacy.com/wp-login.php?action=register">Register</a></li>

Statistics: Posted by bluecafe — September 14th, 2010, 4:34 am


]]>
2010-09-14T01:52:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3230#p3230 <![CDATA[Re: Integration with specific theme]]>
Yes I have installed and uninstalled the plugin to see if anything has been done incorrectly. you must have seen the site when the plugin was disabled. I am in the process of reinstalling, so it will be back tom normal soon :)

okay so in a way I am happy that you saw the "register" link on the site previously, because I have ow installed and activated the s2Member system and the 'register" link has gone again.

I have s2member set to "blogfarm" and "allow registrations at level 0"

I have checked the "Super Admin" settings (options) and it is set to "registrations are accepted"

Statistics: Posted by allwinners — September 14th, 2010, 1:52 am


]]>
2010-09-14T01:09:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3229#p3229 <![CDATA[Re: Integration with specific theme]]> http://i56.tinypic.com/33a5vo6.png

Statistics: Posted by bluecafe — September 14th, 2010, 1:09 am


]]>
2010-09-13T18:20:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3226#p3226 <![CDATA[Re: Integration with specific theme]]>
I understand about the Multisite overriding the Admin settings, both were set (and still are) to "allow new registrations"

If someone could visit the site and let me know if they see a "regsiter" link on the login box, that would be cool. If there is one there, it would mean that it is an IP thing. (www.aceslegacy.com)

Thanks
Bryce

Statistics: Posted by allwinners — September 13th, 2010, 6:20 pm


]]>
2010-09-13T16:47:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3219#p3219 <![CDATA[Re: Integration with specific theme]]> Statistics: Posted by bluecafe — September 13th, 2010, 4:47 pm


]]>
2010-09-13T08:05:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3212#p3212 <![CDATA[Re: Integration with specific theme]]>
However, every time I clicked on the link it took me to the wp-login page and the message "registation is not allowed" appeared at the top of the box.

When I checked the Super Admin options and the Multisite options in s2member, the settings were correct reading "allow new registrations"

Statistics: Posted by allwinners — September 13th, 2010, 8:05 am


]]>
2010-09-13T07:43:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3211#p3211 <![CDATA[Re: Integration with specific theme]]>

Thanks heaps for the help.

bluecafe wrote:
Sorry, I didn't read your post thouroughly enough. I am quite new to s2member and discovered only now that s2member deactivates registration by default. Maybe you can set the link manually

by replacing this part
<?php if ( get_option('users_can_register') ) : ?>
<li><a href="<?php bloginfo('url') ?>/wp-register.php"><?php echo __('Register'); ?></a></li>
<?php endif; ?>

with:

<li><a href="http://www.aceslegacy.com/wp-login.php?action=register">Register</a></li>

Statistics: Posted by allwinners — September 13th, 2010, 7:43 am


]]>
2010-09-13T07:31:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3210#p3210 <![CDATA[Re: Integration with specific theme]]>
by replacing this part
<?php if ( get_option('users_can_register') ) : ?>
<li><a href="<?php bloginfo('url') ?>/wp-register.php"><?php echo __('Register'); ?></a></li>
<?php endif; ?>

with:

<li><a href="http://www.aceslegacy.com/wp-login.php?action=register">Register</a></li>

Statistics: Posted by bluecafe — September 13th, 2010, 7:31 am


]]>
2010-09-13T06:47:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3209#p3209 <![CDATA[Re: Integration with specific theme]]>
When s2member is activated, the membership option is set to "open and allow signups at level 0" which is then reflected in the "Super Admin" section on my back end dashboard.

Statistics: Posted by allwinners — September 13th, 2010, 6:47 am


]]>
2010-09-13T06:21:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3207#p3207 <![CDATA[Re: Integration with specific theme]]> Statistics: Posted by bluecafe — September 13th, 2010, 6:21 am


]]>
2010-09-13T00:22:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=730&p=3203#p3203 <![CDATA[Integration with specific theme]]>
Firstly let me say a big thumbs up for this member management system! It is awesome, and I am only starting to understand the power that it offers.

I have a site with a new theme that has been installed. I am using a pre-built login form that is available with the theme as a widget. So far all good - except,

when I activate the s2member plugin, it takes away the link in the form that says "register" - leaving only the login and recover password links. I am wanting to use this neat and tidy login form in my sidebar, but without the "register" link it seems worthless.

Can I integrate the two items to sync?

My site is http://www.aceslegacy.com

The widget code for the login form is:


<?php
/**
* Widget Name: Login Form Widget
* Description: A widget that allows a Login Form to be added to a sidebar.
* Version: 0.1
*
*/

/**
* Add function to widgets_init that'll load our widget.
* @since 0.1
*/
add_action( 'widgets_init', 'login_form_load_widgets' );

/**
* Register our widget.
* 'Login_Form_Widget' is the widget class used below.
*
* @since 0.1
*/
function login_form_load_widgets() {
register_widget( 'Login_Form_Widget' );
}

/**
* Login Form Widget class.
* This class handles everything that needs to be handled with the widget:
* the settings, form, display, and update. Nice!
*
* @since 0.1
*/
class Login_Form_Widget extends WP_Widget {

/**
* Widget setup.
*/
function Login_Form_Widget() {
/* Widget settings. */
$widget_ops = array( 'classname' => 'loginform', 'description' => __('A user login form.', 'business-success') );

/* Widget control settings. */
$control_ops = array( 'width' => 150, 'height' => 350, 'id_base' => 'loginform-widget' );

/* Create the widget. */
$this->WP_Widget( 'loginform-widget', __('Login Form', 'business-success'), $widget_ops, $control_ops );
}

/**
* How to display the widget on the screen.
*/
function widget( $args, $instance ) {
extract( $args );

/* Our variables from the widget settings. */
$title = apply_filters('widget_title', $instance['title'] );

/* Before widget (defined by themes). */
echo $before_widget;

/* Display the widget title if one was input (before and after defined by themes). */
if ( $title )
echo $before_title . $title . $after_title;



global $user_identity, $user_level;
$redirect = $_SERVER['REQUEST_URI']; ?>
<?phpif ( is_user_logged_in() ) : ?>
You are logged in as <strong><?php echo $user_identity ?></strong>.
<ul>
<li><?php wp_register(); ?></li>
<li><a href="<?php echo esc_url( wp_logout_url( $redirect ) ); ?>"><?php echo __('Logout'); ?></a></li>
</ul>
<?phpelse : ?>
<ul>
<div>
<form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
<p>
<label for="log">User<br />
<input type="text" name="log" id="log" value="<?php echo wp_specialchars( stripslashes($user_login), 1 ) ?>" size="20" />
</label><br />
<label for="pwd">Password<br />
<input type="password" name="pwd" id="pwd" size="20" />
</label>
<div>
<input type="submit" name="submit" value="Login" class="button" />
<label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label>
</div>
</p>
<input type="hidden" name="redirect_to" value="<?php echo esc_url( $redirect ); ?>"/>
</form>
</div>
<?phpif ( get_option('users_can_register') ) : ?>
<li><a href="<?php bloginfo('url') ?>/wp-register.php"><?php echo __('Register'); ?></a></li>
<?phpendif; ?>
<li><a href="<?php bloginfo('url') ?>/wp-login.php?action=lostpassword"><?php echo __('Recover password'); ?></a></li>
</ul>
<?phpendif;





/* After widget (defined by themes). */
echo $after_widget;
}

/**
* Update the widget settings.
*/
function update( $new_instance, $old_instance ) {
$instance = $old_instance;

/* Strip tags for title to remove HTML (important for text inputs). */
$instance['title'] = strip_tags( $new_instance['title'] );

return $instance;
}

/**
* Displays the widget settings controls on the widget panel.
* Make use of the get_field_id() and get_field_name() function
* when creating your form elements. This handles the confusing stuff.
*/
function form( $instance ) {

/* Set up some default widget settings. */
$defaults = array( 'title' => __('Login Form', 'business-success') );
$instance = wp_parse_args( (array) $instance, $defaults ); ?>

<!-- Widget Title: Text Input -->
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'business-success'); ?></label>
<input id="<?php echo $this->get_field_id( 'title' ); ?>" type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
</p>

<?php
}
}

Statistics: Posted by allwinners — September 13th, 2010, 12:22 am


]]>