Page 1 of 1

new mebers get to the dashboard instead of the welcome page

PostPosted: October 24th, 2011, 1:15 pm
by xorred
New members on my site are sent directly to the dashboard instead of the welcome page,, althouth the welcome page is set.

They should not have access to the dashboard at all - they should only be allowed to see FRONT-END side of the website.

what should I check, and how can I prevent them from viewing the backend?

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 25th, 2011, 1:17 pm
by Cristián Lávaque

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 26th, 2011, 10:11 am
by xorred
I appreciate the video, but in my case I'm not using custom logins or anything like that. I'm just using a default woo theme, I'm using s2member, that's it. Users make a purchase, they get redirected from paypal directly to the dashboard instead of to the welcome page which is set in the s2member settings.

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 26th, 2011, 9:16 pm
by xorred
up

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 27th, 2011, 5:23 am
by xorred
up

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 27th, 2011, 10:06 am
by xorred
up

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 27th, 2011, 2:25 pm
by xorred
up again... tough topic or just no support?

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 27th, 2011, 4:45 pm
by xorred
I'm asking a mod to delete all the UPs, but really... can someone at least try to help me?

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 28th, 2011, 1:39 pm
by xorred
what the hell? Is that supposed to be a forum for support, or what? What is the reason nobody is replying to this simple question???? S2member does not work as it is supposed to!!!!!

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 28th, 2011, 1:53 pm
by Eduan
I'm sorry you're not getting a reply. I don't know the answer, but I'm sure Cristián or Jason knows, I've noticed they haven't been too active in the forums lately. Just have a little patience. ;)

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 28th, 2011, 6:44 pm
by Bruce C
Are they being redirected to the dashboard from PayPal, or after they sign up?

What do you have selected under Dashboard->s2Member->General Options->Member Profile Modifications->Redirect Members away from the Default Profile Panel?

Also, you may want to check to make sure you did not accidentally insert the dashboard URL under Dashboard->s2Member->General Options->Login Welcome Page At the bottom. Also, it might be a good idea to send a post with your current Theme and Plugins.

Also, it may be a function your theme is using. Search through your theme and see if it deals with the wp_create_user function, or if there are any hooks with 'admin_init' or 'init', and copy and paste them here.

Also, do you have anything in a s2hacks.php file?

Hope we get your problem fixed soon.

For a temporary fix, you can try this code snippet in your theme's functions.php file, or in the s2hacks.php file. (Under wp-content/mu-plugins/s2hacks.php ... create mu-plugins if you don't already have it.)

Code: Select all
function custom_dont_allow_wpadmin ()
   {
      if (strpos (realpath ($_SERVER["SCRIPT_FILENAME"]), 'wp-admin') && current_user_can('access_s2member_level0') && !current_user_can ('manage_options'))
         {
            header ('Location: ' . get_option ('siteurl'));
            exit ();
         }
   }
add_action ('init', 'custom_dont_allow_wpadmin');

This blocks access to /wp-admin if user is not an admin, and sends the user to the site home.

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 28th, 2011, 10:53 pm
by Cristián Lávaque
From PayPal to the dashboard? You mean from PayPal to the registration page and then after logging in to the dashboard?

Anyway, if the person is logging in and sent to the dashboard, then the video I pointed you to should help. the redirect_to parameter may not just be added by a plugin, it can be in the theme as well.

Could you post a link to your website to take a look? Do you have Open Registration enabled so I create a test account to see what happens?

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 30th, 2011, 12:27 pm
by xorred
Also, you may want to check to make sure you did not accidentally insert the dashboard URL under Dashboard->s2Member->General Options->Login Welcome Page - it says "redirect to welcome page". Yet it doesn't.

Anyway, I've fixed this by custom programming a function similar to the above. Just wanted you guys to know that it didn't work in my case. Can't give access here, it's a public forum.

Re: new mebers get to the dashboard instead of the welcome p

PostPosted: October 30th, 2011, 4:12 pm
by Bruce C
That's very strange. I would send in info on this to http://s2member.com/contact