Community Support Forums — WordPress® ( Users Helping Users ) — 2010-12-12T08:00:02-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1335 2010-12-12T08:00:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1335&p=5086#p5086 <![CDATA[Re: Index login disapeared after installing s2Member Plugin]]> Statistics: Posted by lufc4life — December 12th, 2010, 8:00 am


]]>
2010-12-11T09:20:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1335&p=5078#p5078 <![CDATA[Index login disapeared after installing s2Member Plugin]]>
Before I installed the plugin I created a login on my main page rather than having to go to the wp-login.php page to log in.

Below is my code to generate the login that is now being blocked out since installing this plugin.

Code:
<?php global $user_ID, $user_identity, $user_level ?>
      <?php if ( $user_ID ) : ?>
                    <div id="details">
      <h2>Control panel</h2>
      
         Identified as <strong><?php echo $user_identity ?></strong>.
       </div>

                    <div id="details1">
<a href="<?php bloginfo('url') ?>/wp-login.php?action=logout&amp;redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Log out</a>
       </div>

      <?php elseif ( get_option('users_can_register') ) : ?>
   
   <form action="<?php bloginfo('url') ?>/wp-login.php" method="post" class="post">
           
<label for="log"><input type="text" class="username" name="log" id="log" value="Username <?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" onfocus="if
(this.value==this.defaultValue) this.value='';"/></label><br />
<label for="pwd"><input type="password" class="password" name="pwd" id="pwd" value="Password" size="22" onfocus="if
(this.value==this.defaultValue) this.value='';"/></label><br />
            <input type="submit" class="press" name="" value="" />
         
            <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
         </form>
         
   <div id="login_wrap">
      <a href="<?php bloginfo('url') ?>/wp-register.php">Register</a>
         </div>
         <div id="login_wrap1">
         <a href="<?php bloginfo('url') ?>/wp-login.php?action=lostpassword">Recover password</a>
  </div>

      <?php endif // get_option('users_can_register') ?>


If any one has any ideas on how to enable me to login from my index page once more it would be greatly appreciated. Thank you

Statistics: Posted by lufc4life — December 11th, 2010, 9:20 am


]]>