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.

Home Forums Asif

About: Asif

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Measuring KPI's

By:  Asif in: Unofficial Extensions/Hacks

voices: 1
replies: 0

3 years, 7 months ago  Asif

Users being directed to wp-admin

By:  Asif in: Community Forum

voices: 2
replies: 7

3 years, 9 months ago  Bruce

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

Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Measuring KPI's

By:  Asif in: Unofficial Extensions/Hacks

voices: 1
replies: 0

3 years, 7 months ago  Asif

Users being directed to wp-admin

By:  Asif in: Community Forum

voices: 2
replies: 7

3 years, 9 months ago  Bruce

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

My Latest Replies (From Various Topics)

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Mar 21st, 2013 at 5:59 pm #45406
Asif
Username: asifmandozai

I was experimenting a bit & seem to have found a solution,
Thanks for pointing me in the right direction Bruce.

If there is anything else I should look into lease don’t hesitate to let me know.

I had removed the hidden field which seemed to have a redirect_to within it:

<form> ...
<input type="hidden" name="redirect_to" value="http://website.com/login/" />
... </form>
Posted: Thursday Mar 21st, 2013 at 1:56 pm #45369
Asif
Username: asifmandozai

Interesting. It seems to be working if I directly goto wp-login.php

Since that page is not an amazing one and for convenience purposes I have copied out the login form from the wp-login.php page and placed it directly into my html homepage in order to fit in with the design without much code bloat.

So the following form present on the homepage is what users are using. It seems to be not working with this code which was from the wp-login.php page. Any suggestions would be greatly appreciated if I need to do something with the snippet below.

<form name="loginform" id="loginform" action="http://www.website.com/login/wp-login.php" method="post">
      
<label for="user_login">Username</label>
<input type="text" name="log" id="user_login" class="input" value="" size="20" />

<label for="user_pass">Password</label>
<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" />

<label style="color:#fff;"><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> 
Remember Me  <a href="http://www.website.com/login/wp-login.php?action=lostpassword">Forgot Password</a></label>

<input type="submit" name="wp-submit" id="wp-submit" class="btn bbtn2 btn-large btn-info pull-right" value="Log In" />

<input type="hidden" name="redirect_to" value="http://website.com/login/" />
</form>
Posted: Monday Mar 18th, 2013 at 8:20 pm #45090
Asif
Username: asifmandozai

Hello Bruce,

thanks for the updated code. Unfortunately it seems to have no effect on where my users are redirected to after sining in. When having the edit_posts role permission enabled for users with role “access_s2member_level0” they all seem to be redirected to http://www.website.com/blog/wp-admin/

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

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.