Page 1 of 1

Exactly how do I "configure a Special Redirection URL" here?

PostPosted: August 7th, 2011, 12:54 am
by shawnblog
I've read a few threads about this and I'm more confused now. I don't see the option in my pulldown menu from the dashboard as one of the instructions seems to indicate will exist...

Is this something I just need to write into the plugin somewhere? If so, where? And what?

So confused.

Re: Exactly how do I "configure a Special Redirection URL" h

PostPosted: August 7th, 2011, 12:16 pm
by Bruce C
Not sure what you're talking about, what do you mean by "Special Redirection URL"?

Can you clarify what you are trying to redirect?

As in, are you making different pages for different members, or a redirect after a person comes back from PayPal, etc.?

Re: Exactly how do I "configure a Special Redirection URL" h

PostPosted: August 7th, 2011, 12:50 pm
by shawnblog
Sorry... I was so deep in my confusion, I didn't give any details. This is when the user logs in.

From the Login Welcome Page section of S2Member Pro, I see dashboard instructions and a menu for picking a page to redirect users to after login. In that instruction set, I am shown a list of Replacement Codes for creating a "special redirection URL", presumably from that menu (?), but I am given no option there to enter anything - only to choose an existing page from my pages. This is a screen shot http://d.pr/1vl4

I read one thread here that indicated there would be an option in that pull down menu to choose special redirection URL (from which I guess one would enter the Replacement Codes/details of the URL

Is that something that must be coded directly in the plugin? If so, where?

Re: Exactly how do I "configure a Special Redirection URL" h

PostPosted: August 7th, 2011, 1:04 pm
by Bruce C
Oh, okay. I think I understand better now.

I believe there are two ways to do this.

1 would be to set up one page for all user levels, as shown under s2Member -> API/Scripting -> Custom Capabilities(Packages)

Which would look something like this:

Code: Select all
<?php if (current_user_can("access_s2member_level1")){ ?>
   
    Some premium content for all Level 1 Members.

    <?php } ?>

<?php } else { ?>
    Some public content.
<?php } ?>


Or, you could use the replacement code %%current_user_level%%, like this:

custom login.png


Then, you would have to set up a page for each one of the levels.

Does that help?

Re: Exactly how do I "configure a Special Redirection URL" h

PostPosted: August 7th, 2011, 1:40 pm
by shawnblog
ok, feeling pretty stupid now... I see clearly there is a form field below that instruction where I can enter my replacement string URL (somehow I didn't see that at 3am)

Re: Exactly how do I "configure a Special Redirection URL" h

PostPosted: August 7th, 2011, 1:42 pm
by Bruce C
:lol:

Happy you figured it out! :D