Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I customize the IP Restrictions template file? #66

Closed
jaswrks opened this issue Jan 27, 2015 · 1 comment
Closed

Can I customize the IP Restrictions template file? #66

jaswrks opened this issue Jan 27, 2015 · 1 comment
Assignees

Comments

@jaswrks
Copy link
Contributor

@jaswrks jaswrks commented Jan 27, 2015


KB Article Creation Checklist
  • Write initial draft for this KB Article; label this issue draft and either questions or tutorials
  • Add required YAML configuration
  • Add Tags for this KB Article to the YAML config (see YAML Keys (Explained))
  • Edit and finalize draft for publishing (remove draft label, add draft-finalized label)
  • Assign Issue to yourself and create Markdown file (remove draft-finalized label, add pending)
  • Project Lead: Review and Publish KB Article (remove pending label, add published label)

Additional TODO Items

  • Update the link which leads to the "Hacking s2Member" page once the KB is moved over.


Markdown File: http://wsharks.com/1EpYxqr
Published KB Article: http://s2member.com/kb-article/can-i-customize-the-ip-restrictions-template-file/


@ethanpil

This comment has been minimized.

Copy link

@ethanpil ethanpil commented Jan 27, 2015

I was able to get this working for me in s2-hacks.php:

//Redirect IP Restriction to pretty page
add_action('ws_plugin__s2member_during_ip_restrictions_ok_no', 's2hack_exit_503_func');
function s2hack_exit_503_func($vars)
{
    unset($__refs, $__v); # s2Member does this within /includes/classes/ip-restrictions.inc.php above it's exit(), so you should too.
    header("Location: http://url.com/access-restriction/");
}
@jaswrks jaswrks self-assigned this Mar 16, 2015
@jaswrks jaswrks closed this Mar 16, 2015
@jaswrks jaswrks added published and removed draft labels Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.