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.

One Time Offer question

Home Forums Community Forum One Time Offer question

This topic contains 13 replies, has 4 voices. Last updated by  Frank Meroney 4 years, 8 months ago.

Topic Author Topic
Posted: Sunday Apr 15th, 2012 at 3:13 pm #10850

Im trying to use the one time offer feature to redirect first time users of Level1 to be redirected to their profile edit page, specifically a certain group.

Example:
1:1:http://mysite.com/members/profile/edit/group/1

any ideas?

List Of Topic Replies

Viewing 13 replies - 1 through 13 (of 13 total)
Author Replies
Author Replies
Posted: Sunday Apr 15th, 2012 at 5:03 pm #10862
Posted: Sunday Apr 15th, 2012 at 5:20 pm #10863

Philly,
Nice, worked great! Thanks for your help..

Posted: Monday Apr 16th, 2012 at 6:18 pm #10940
Raam Dev
Username: Raam
Staff Member

Frank, glad to hear it’s working now!

Philly, thank you for the help! :)

Posted: Monday Apr 16th, 2012 at 8:14 pm #10953

I have a similar issue, maybe you can help.

Im trying to redirect a member to his or her profile page when they land on a certain page…

Something like this.

<?php header ('location:bp_loggedin_user_domain()'); ?>
  • This reply was modified 4 years, 8 months ago by  Frank Meroney.
Posted: Monday Apr 16th, 2012 at 11:33 pm #10965
Bruce
Username: Bruce
Staff Member

Hi Frank,

The problem with that code lies within the fact that you put a PHP function ( bp_loggedin_user_domain() ) within parenthesis. So the correct code would look like this:

<?php header ('Location:'.bp_loggedin_user_domain()); ?>

However, because the page content is loaded into the page after the attribute, this code will throw an error. I recommend using a JavaScript redirect instead. You can pop this into the top of the post/page:

<script type="text/javascript"> window.location = "<?php echo bp_loggedin_user_domain();?>"; </script>

I hope that solves your problem.

Posted: Tuesday Apr 17th, 2012 at 12:13 am #10967

Throws a page error:

http://mysite.com/%3C?php%20echo%20bp_loggedin_user_domain();?%3E

I load this into the html section correct?

Posted: Tuesday Apr 17th, 2012 at 12:14 am #10968
Bruce
Username: Bruce
Staff Member

Hi Frank, thanks for the follow-up

Do you have a PHP Execution plugin installed?

Posted: Tuesday Apr 17th, 2012 at 12:17 am #10970

Yes i do, but need to activate it… I’ll try it.

Posted: Tuesday Apr 17th, 2012 at 12:22 am #10971

Bruce you are a genius! I owe you a beer…

Thanks,

Posted: Tuesday Apr 17th, 2012 at 12:23 am #10972
Bruce
Username: Bruce
Staff Member

Hi Frank,

Glad to hear you got it fixed.

Posted: Tuesday Apr 17th, 2012 at 12:32 am #10973

Hey Bruce, one other question.

Can you add a wait function before execute? Lets say 3 seconds or so?

Posted: Tuesday Apr 17th, 2012 at 12:33 am #10974
Bruce
Username: Bruce
Staff Member

Hi Frank,

Yes, you can check out how to do that here:

http://www.tizag.com/javascriptT/javascriptredirect.php

I hope that helps!

Posted: Tuesday Apr 17th, 2012 at 12:40 am #10976

Thanks!

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.