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 uywi

About: uywi

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


My Favorite Topics

Viewing 5 topics - 1 through 5 (of 5 total)
Topic Count Last Reply
Setting Up EOT Notifications

By:  Bruce in: Unofficial Extensions/Hacks

voices: 16
replies: 21

2 years, 11 months ago  Kristen Symonds

Renewing memberships

By:  Mark Lanch in: Community Forum

voices: 3
replies: 8

4 years, 1 month ago  Cristián Lávaque

Free Membership

By:  uywi in: Community Forum

voices: 2
replies: 3

4 years, 1 month ago  Cristián Lávaque

membership renewal mails

By:  Mark Wouters in: Community Forum

voices: 2
replies: 3

4 years, 4 months ago  Raam Dev

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

My Latest Replies (From Various Topics)

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Wednesday Mar 13th, 2013 at 3:43 pm #44526
uywi
Username: thomasjterry

Sorry, no that video did not help.

When I use the sidebar login box, there’s a bunch of configuration options, and one of them is where to send the person upon login, and I can select “Previous”. I select this option and everything works perfectly.

However, I’d rather have the login box in the middle of my page instead of in the sidebar, so for that I want to use the PHP widget. It has all the same configuration options, but you have to know a little more about coding to use them, and I don’t have enough knowledge about the proper syntax to use it properly.

This is the core of it.

<?php echo s2member_pro_login_widget(); ?>

This is the parameter I want to add:
“login_redirect” => “%%previous%%”

What’s the proper way to express that in the PHP code? I just don’t know whether to use the quotation marks, or where to put commas, or wether that “=>” belongs anywhere at all.

Thanks,
Julie

Posted: Tuesday Mar 12th, 2013 at 12:00 am #44316
uywi
Username: thomasjterry

That method didn’t work.

It represented small progress in this way: Your syntax is valid, and it didn’t cause errors on the page (as all my previous attempts had done.)

However, it was not successful at redirecting the user back to the post they were already on, which is what the login _redirect / %%previous%% is supposed to do. (Instead it directed them to a member dashboard page we previously created.)

Can you go ahead and ask Jason?

Thanks,
Julie

Posted: Monday Mar 11th, 2013 at 11:50 pm #44312
uywi
Username: thomasjterry

No, that would not achieve my goal. I’m not trying to send everyone to the same Thank You page upon success. It’s actually just the opposite of that. I’m trying to send them back to whichever post they started on when they encountered the login requirement.

Case:
A user visits Post A, sees teaser content, but the rest of the content is hidden with shortcodes, and they are prompted to login or join if they want to see it. They join, and then I want to send them BACK to Post A.

A different user visits Post B, sees the join/login requirement, joins, and is returned to Post B upon success.

Posted: Tuesday Nov 13th, 2012 at 9:23 pm #31528
uywi
Username: thomasjterry

Thank you. That worked.

Posted: Thursday Aug 30th, 2012 at 4:30 pm #23617
uywi
Username: thomasjterry

Thanks for your quick reply. Some of our renewals will be active Level 1 Members who will be paying for an extra year before their membership expires to extend it (thus never dropping to Level 0), and others will be expired (Level 0) members reactivating. It seems your hack would only email me when a Level 0 switched back to Level 1, but not when a Level 1 extended. Are there any other solutions that could help me?

In regard to to the text:
When I do a test as a standard user, and I complete the renewal page, it shows me a message in a yellow block at the top of the screen “Thank you. Your account has now been updated. Please log back in now.”
It also sends me (as the user) an email with basically the exact same wording. Is there any way to edit that language?

Viewing 5 replies - 1 through 5 (of 5 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.