latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

check for login then drop

Home Forums Community Forum check for login then drop

This topic contains 3 replies, has 2 voices. Last updated by  Bruce 4 years ago.

Topic Author Topic
Posted: Saturday Dec 29th, 2012 at 12:50 pm #35720

If I log in as an admin — I can see all areas of the site.

If I log in as a Level #1 — My login gets checked and then I’m sent a message that says “You are logged in click here to go to the homepage”.

I checked the Restriction Options URi’s — the page is set to Level 0. Why can’t I see it? How do I make the login check then pass me on to the page I’m trying to reach instead of cycling me back to the home page?

Thanks!

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Sunday Dec 30th, 2012 at 2:23 am #35778
Bruce
Username: Bruce
Staff Member

If I log in as a Level #1 — My login gets checked and then I’m sent a message that says “You are logged in click here to go to the homepage”.

I checked the Restriction Options URi’s — the page is set to Level 0. Why can’t I see it? How do I make the login check then pass me on to the page I’m trying to reach instead of cycling me back to the home page?

This is not something that s2Member’s doing, unless you have it set up to with Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals. Try disabling all plugins but s2Member, and see if that helps the issue. If it does, reactivate all of your plugins 1-by-1 and find the plugin that’s doing this. Then, if you can post the plugin’s name that’s doing this I’d be happy to take a look and see what may fix the issue.

Posted: Monday Dec 31st, 2012 at 11:38 am #35851

Here is the current code — and it worked as is until I upgraded wordpress to 3.5

<? if (!is_user_logged_in()) {  ?>
				<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); 
	$registermessage = get_post_meta($post->ID, 'Register_message', true); ?>

	<h2><? the_title() ?></h2>
			
			
			<?php the_content(); ?><br/>
			

<?php endwhile; ?>

				<?php endif; ?>
<div id="sink_login">
<? 	$homepage = get_option('home'); 
	wp_login_form('redirect='.$homepage); ?>
	<a href="<?php echo wp_lostpassword_url(); ?>" title="Lost Password">Lost Password?</a>
	
				</div>
				
			
				
				<div id="sink_register">
<h2>Register for WIPNYC</h2>

<p><? echo $registermessage ?></p>

<?php wp_register(); ?> 
				</div>
				
				<!-- <div id="one_testimonial_teaser">
<h3>Read What Others are Saying</h3>
<?php
 global $post;
 $myposts = get_posts('numberposts=1&category=87');
 foreach($myposts as $post) :
   setup_postdata($post);
 ?>


<?php the_content(); ?>

<?php endforeach; ?>
				
				
				</div> -->
			<? } else if (is_current_user_role('subscriber')) { ?>
			<ul class="sidebar-widget">
				<li class="widget">

<h2 style="text-align:center;font-size:20px">Gain Full Access!</h2>
<p style="text-align:center">First 7 days FREE</p>
</br>

<h2 style="text-align:center">Monthly Membership - $3/month</h2>
<h2 style="text-align:center"><?php echo do_shortcode('[s2Member-PayPal-Button level="1" ccaps="" desc="WIPNYC Monthly Subscription / $3 per month" ps="paypal" cc="USD" ns="1" custom="wipnyc.com" ta="0" tp="7" tt="D" ra="3.00" rp="1" rt="M" rr="1" image="http://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" output="button" /]') ?></h2>
<br/>

<h2 style="text-align:center">Annual Membership - $30/year</h2>
<h2 style="text-align:center"><?php echo do_shortcode('[s2Member-PayPal-Button level="1" ccaps="" desc="WIPNYC Annual Subscription / $30 per year" ps="paypal" cc="USD" ns="1" custom="wipnyc.com" ta="0" tp="7" tt="D" ra="30.00" rp="1" rt="Y" rr="1" image="http://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" output="button" /]') ?></h2>
<br/>
<hr/><br/>


<h1>Who are we?</h1><br/>

<p>Women in Production NYC (WIP) is a referral-only New York City-based community of women working in film, television, and media production. Through our website, email postings, and events, WIP fosters a vibrant and intimate support network to share resources and galvanize creative projects and careers.</p>
<br/>


<h1>Why subscribe?</h1><br/>
<p>Your subscription allows you to create and receive email postings related to jobs, events, housing, health insurance, and other production-related topics. You can search for and comment on postings. Comment threads are archived to create a cumulative, ever-accessible resource. Get to know your fellow WIP members through our online database.</p>
</br></br>

			<? } else { ?>
				<p>You're already logged in, <a href="<?php echo get_option('home'); ?>/">click here to proceed to the homepage</a></p>
			
			<? } ?>
    
Posted: Thursday Jan 3rd, 2013 at 4:43 pm #36132
Bruce
Username: Bruce
Staff Member

Yvette,

That code isn’t doing that either. Do you have any other customizations like this?

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.