Page 1 of 1

redirect not to register but subsciption page

PostPosted: January 25th, 2011, 4:22 am
by gvdsleen
if somebody tries to access a page/link on the site they do not have access to, they are redirected to the registration page (buddypress). Would like them to land on the memebrship options page as specified in S2Member?

How can I do that?

Re: redirect not to register but subsciption page

PostPosted: January 25th, 2011, 4:35 am
by gvdsleen
Just to elaborate on this question: what I mean is that users receiving a notification from the community (buddypress) and are not logged in, they are redirected to the registration page.

Re: redirect not to register but subsciption page

PostPosted: January 25th, 2011, 4:36 am
by gvdsleen
Actually, redirection to the membership option page stopped working altogether? Have not made any changes to the site, but redirection to the membership options page is no longer working????

Re: redirect not to register but subsciption page

PostPosted: January 25th, 2011, 4:58 am
by gvdsleen
Only change made was starting to use replacement code in Login welcome page:

http://www.mysite.com/registration/welcome-back-%%current_user_level%%

Changing the designated page in membership options page does not work. What happens is that restricted pages are showing page not found, buddypress pages (restricte URI) redirect to registration page.

Suggestions?

Re: redirect not to register but subsciption page

PostPosted: January 25th, 2011, 5:02 am
by gvdsleen
If I use /forums' this will redirect to the login page?!

Notice the ' at the end of the url. Suggestions?

Re: redirect not to register but subsciption page

PostPosted: January 25th, 2011, 10:42 am
by gvdsleen
oK, SOLVED. Don't know how I feel. Am using 2 additional plugins:

User Access Manager - makes posts only visible to correct user groups - redirects invisible pages to page not found. not an S2member issue. Although I personally would like to have the option to hide pages from view on top of restricting access.

Buddypress Registration Options: makes it possible to hold registrations until approves. Redirects Buddpress pages to registration page (and not membership options page).

Re: redirect not to register but subsciption page

PostPosted: January 28th, 2011, 12:11 pm
by Cristián Lávaque
Thanks for sharing how you solved it. :)